Sign in
android
/
platform
/
external
/
strace.git
/
bef8f95a369420766987eed0aa98c4736400870f
/
.
/
linux
/
sh
/
set_error.c
blob: bad76ede24364fa8c105345f285dd6fc5a55ed98 [
file
] [
log
] [
blame
]
static
int
arch_set_error
(
struct
tcb
*
tcp
)
{
sh_r0
=
-
tcp
->
u_error
;
return
upoke
(
tcp
,
4
*
REG_REG0
,
sh_r0
);
}
static
int
arch_set_success
(
struct
tcb
*
tcp
)
{
sh_r0
=
tcp
->
u_rval
;
return
upoke
(
tcp
,
4
*
REG_REG0
,
sh_r0
);
}