Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm64/arm64/machdep.c
Show First 20 Lines • Show All 430 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
td->td_frame->tf_spsr &= ~PSR_SS; | td->td_frame->tf_spsr &= ~PSR_SS; | ||||
td->td_pcb->pcb_flags &= ~PCB_SINGLE_STEP; | td->td_pcb->pcb_flags &= ~PCB_SINGLE_STEP; | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
exec_setregs(struct thread *td, struct image_params *imgp, u_long stack) | exec_setregs(struct thread *td, struct image_params *imgp, 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)); | ||||
tf->tf_x[0] = stack; | tf->tf_x[0] = stack; | ||||
tf->tf_sp = STACKALIGN(stack); | tf->tf_sp = STACKALIGN(stack); | ||||
tf->tf_lr = imgp->entry_addr; | tf->tf_lr = imgp->entry_addr; | ||||
▲ Show 20 Lines • Show All 852 Lines • Show Last 20 Lines |