Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/ia32/ia32_reg.c
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
#include <machine/psl.h> | #include <machine/psl.h> | ||||
#include <machine/segments.h> | #include <machine/segments.h> | ||||
#include <machine/specialreg.h> | #include <machine/specialreg.h> | ||||
#include <machine/frame.h> | #include <machine/frame.h> | ||||
#include <machine/md_var.h> | #include <machine/md_var.h> | ||||
#include <machine/pcb.h> | #include <machine/pcb.h> | ||||
#include <machine/cpufunc.h> | #include <machine/cpufunc.h> | ||||
#define CS_SECURE(cs) (ISPL(cs) == SEL_UPL) | |||||
#define EFL_SECURE(ef, oef) ((((ef) ^ (oef)) & ~PSL_USERCHANGE) == 0) | |||||
int | int | ||||
fill_regs32(struct thread *td, struct reg32 *regs) | fill_regs32(struct thread *td, struct reg32 *regs) | ||||
{ | { | ||||
struct trapframe *tp; | struct trapframe *tp; | ||||
tp = td->td_frame; | tp = td->td_frame; | ||||
if (tp->tf_flags & TF_HASSEGS) { | if (tp->tf_flags & TF_HASSEGS) { | ||||
regs->r_gs = tp->tf_gs; | regs->r_gs = tp->tf_gs; | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |