1 #ifndef XTF_X86_TRAPS_H 2 #define XTF_X86_TRAPS_H 21 static inline unsigned long cpu_regs_sp(
const struct cpu_regs *regs)
28 if ( (regs->cs & 3) > (cs & 3) )
31 return _u(regs) +
offsetof(
struct cpu_regs, _sp);
35 static inline unsigned int cpu_regs_ss(
const struct cpu_regs *regs)
42 if ( (regs->cs & 3) > (cs & 3) )
unsigned long exec_user_efl_and_mask
static unsigned int read_cs(void)
void arch_init_traps(void)
unsigned long exec_user_ss
#define _u(v)
Express an arbitrary value v as unsigned long.
unsigned long exec_user_efl_or_mask
static unsigned int cpu_regs_ss(const struct cpu_regs *regs)
uint8_t user_stack[PAGE_SIZE]
xen_pvh_start_info_t * pvh_start_info
uint8_t boot_stack[3 *PAGE_SIZE]
xen_pv_start_info_t * pv_start_info
static unsigned long cpu_regs_sp(const struct cpu_regs *regs)
unsigned long exec_user_cs
static unsigned int read_ss(void)