Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/exec_machdep.c
Show First 20 Lines • Show All 403 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct trapframe *tf = td->td_frame; | struct trapframe *tf = td->td_frame; | ||||
struct pcb *pcb = td->td_pcb; | struct pcb *pcb = td->td_pcb; | ||||
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_elr = imgp->entry_addr; | tf->tf_elr = imgp->entry_addr; | ||||
td->td_pcb->pcb_tpidr_el0 = 0; | td->td_pcb->pcb_tpidr_el0 = 0; | ||||
td->td_pcb->pcb_tpidrro_el0 = 0; | td->td_pcb->pcb_tpidrro_el0 = 0; | ||||
WRITE_SPECIALREG(tpidrro_el0, 0); | WRITE_SPECIALREG(tpidrro_el0, 0); | ||||
WRITE_SPECIALREG(tpidr_el0, 0); | WRITE_SPECIALREG(tpidr_el0, 0); | ||||
#ifdef VFP | #ifdef VFP | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |