Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
552f2f62fd7ea37dd38342a5b2c865476661187f
/
.
/
linux
/
sparc
/
get_error.c
blob: 1b960ace73ac31e96d49e372350cd5fdb3b6a10f [
file
] [
log
] [
blame
]
static
void
get_error
(
struct
tcb
*
tcp
,
const
bool
check_errno
)
{
if
(
sparc_regs
.
psr
&
PSR_C
)
{
tcp
->
u_rval
=
-
1
;
tcp
->
u_error
=
sparc_regs
.
u_regs
[
U_REG_O0
];
}
else
{
tcp
->
u_rval
=
sparc_regs
.
u_regs
[
U_REG_O0
];
}
}