Sign in
android
/
platform
/
external
/
strace.git
/
bef8f95a369420766987eed0aa98c4736400870f
/
.
/
linux
/
sh64
/
get_scno.c
blob: bda2cd263fa7f04828c3906128090736508d1717 [
file
] [
log
] [
blame
]
/* Return codes: 1 - ok, 0 - ignore, other - error. */
static
int
arch_get_scno
(
struct
tcb
*
tcp
)
{
if
(
upeek
(
tcp
,
REG_SYSCALL
,
&
tcp
->
scno
)
<
0
)
return
-
1
;
tcp
->
scno
&=
0xffff
;
return
1
;
}