Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/trap.c
Show First 20 Lines • Show All 661 Lines • ▼ Show 20 Lines | cpu_fetch_syscall_args(struct thread *td) | ||||
size_t argsz; | size_t argsz; | ||||
int error, n, narg, i; | int error, n, narg, i; | ||||
p = td->td_proc; | p = td->td_proc; | ||||
frame = td->td_frame; | frame = td->td_frame; | ||||
sa = &td->td_sa; | sa = &td->td_sa; | ||||
sa->code = frame->fixreg[0]; | sa->code = frame->fixreg[0]; | ||||
sa->original_code = sa->code; | |||||
params = (caddr_t)(frame->fixreg + FIRSTARG); | params = (caddr_t)(frame->fixreg + FIRSTARG); | ||||
n = NARGREG; | n = NARGREG; | ||||
if (sa->code == SYS_syscall) { | if (sa->code == SYS_syscall) { | ||||
/* | /* | ||||
* code is first argument, | * code is first argument, | ||||
* followed by actual args. | * followed by actual args. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 338 Lines • Show Last 20 Lines |