Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/ia32/ia32_reg.c
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | fill_regs32(struct thread *td, struct reg32 *regs) | ||||
regs->r_edx = tp->tf_rdx; | regs->r_edx = tp->tf_rdx; | ||||
regs->r_ecx = tp->tf_rcx; | regs->r_ecx = tp->tf_rcx; | ||||
regs->r_eax = tp->tf_rax; | regs->r_eax = tp->tf_rax; | ||||
regs->r_eip = tp->tf_rip; | regs->r_eip = tp->tf_rip; | ||||
regs->r_cs = tp->tf_cs; | regs->r_cs = tp->tf_cs; | ||||
regs->r_eflags = tp->tf_rflags; | regs->r_eflags = tp->tf_rflags; | ||||
regs->r_esp = tp->tf_rsp; | regs->r_esp = tp->tf_rsp; | ||||
regs->r_ss = tp->tf_ss; | regs->r_ss = tp->tf_ss; | ||||
regs->r_err = 0; | |||||
regs->r_trapno = 0; | |||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
set_regs32(struct thread *td, struct reg32 *regs) | set_regs32(struct thread *td, struct reg32 *regs) | ||||
{ | { | ||||
struct trapframe *tp; | struct trapframe *tp; | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |