Changeset View
Changeset View
Standalone View
Standalone View
head/sys/i386/i386/machdep.c
Show First 20 Lines • Show All 1,118 Lines • ▼ Show 20 Lines | setup_priv_lcall_gate(struct proc *p) | ||||
i386_set_ldt(curthread, &uap, &desc); | i386_set_ldt(curthread, &uap, &desc); | ||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
* Reset registers to default values on exec. | * Reset registers to default values on exec. | ||||
*/ | */ | ||||
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 *regs; | struct trapframe *regs; | ||||
struct pcb *pcb; | struct pcb *pcb; | ||||
register_t saved_eflags; | register_t saved_eflags; | ||||
regs = td->td_frame; | regs = td->td_frame; | ||||
pcb = td->td_pcb; | pcb = td->td_pcb; | ||||
▲ Show 20 Lines • Show All 2,118 Lines • Show Last 20 Lines |