Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/elf32_machdep.c
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Lines | default: | ||||
frame->tf_x[0] = error; | frame->tf_x[0] = error; | ||||
frame->tf_spsr |= PSR_C; | frame->tf_spsr |= PSR_C; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
freebsd32_setregs(struct thread *td, struct image_params *imgp, | freebsd32_setregs(struct thread *td, struct image_params *imgp, | ||||
u_long stack) | uintptr_t stack) | ||||
{ | { | ||||
struct trapframe *tf = td->td_frame; | struct trapframe *tf = td->td_frame; | ||||
memset(tf, 0, sizeof(struct trapframe)); | memset(tf, 0, sizeof(struct trapframe)); | ||||
/* | /* | ||||
* We need to set x0 for init as it doesn't call | * We need to set x0 for init as it doesn't call | ||||
* cpu_set_syscall_retval to copy the value. We also | * cpu_set_syscall_retval to copy the value. We also | ||||
Show All 16 Lines |