Sign in
android
/
platform
/
external
/
strace
/
2dc0c0dd40ce938d5a5240f3b163d0cec8f16853
/
.
/
linux
/
or1k
/
get_error.c
blob: f6a327132422138817e83c31062cd8a481f3484b [
file
] [
log
] [
blame
]
#include
"negated_errno.h"
static
void
get_error
(
struct
tcb
*
tcp
,
const
bool
check_errno
)
{
if
(
check_errno
&&
is_negated_errno
(
or1k_regs
.
gpr
[
11
]))
{
tcp
->
u_rval
=
-
1
;
tcp
->
u_error
=
-
or1k_regs
.
gpr
[
11
];
}
else
{
tcp
->
u_rval
=
or1k_regs
.
gpr
[
11
];
}
}