Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/cloudabi32/cloudabi32_sysvec.c
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | cloudabi32_fetch_syscall_args(struct thread *td) | ||||
struct syscall_args *sa; | struct syscall_args *sa; | ||||
int error; | int error; | ||||
frame = td->td_frame; | frame = td->td_frame; | ||||
sa = &td->td_sa; | sa = &td->td_sa; | ||||
/* Obtain system call number. */ | /* Obtain system call number. */ | ||||
sa->code = frame->tf_x[0]; | sa->code = frame->tf_x[0]; | ||||
sa->original_code = sa->code; | |||||
if (sa->code >= CLOUDABI32_SYS_MAXSYSCALL) | if (sa->code >= CLOUDABI32_SYS_MAXSYSCALL) | ||||
return (ENOSYS); | return (ENOSYS); | ||||
sa->callp = &cloudabi32_sysent[sa->code]; | sa->callp = &cloudabi32_sysent[sa->code]; | ||||
/* | /* | ||||
* Fetch system call arguments. | * Fetch system call arguments. | ||||
* | * | ||||
* The vDSO has already made sure that the arguments are | * The vDSO has already made sure that the arguments are | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |