dashboard
repositories
activity
search
login
lzh
/
A133
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
feat(Calculator): add DevicetTest call 000.
huangcm
2025-04-26
2868c607307b8de19383692485d1cbe1b64eb94d
[~lzh/A133.git]
/
android
/
external
/
strace
/
linux
/
arc
/
get_syscall_args.c
1
2
3
4
5
6
7
8
9
10
11
/* Return -1 on error or 1 on success (never 0!). */
static int
get_syscall_args(struct tcb *tcp)
{
unsigned long *arc_args = &arc_regs.scratch.r0;
unsigned int i;
for (i = 0; i < MAX_ARGS; ++i)
tcp->u_arg[i] = *arc_args--;
return 1;
}