1 #ifndef XEN_PUBLIC_ARCH_X86_XEN_X86_32_H 2 #define XEN_PUBLIC_ARCH_X86_XEN_X86_32_H 9 #define FLAT_RING1_CS 0xe019 10 #define FLAT_RING1_DS 0xe021 11 #define FLAT_RING1_SS 0xe021 12 #define FLAT_RING3_CS 0xe02b 13 #define FLAT_RING3_DS 0xe033 14 #define FLAT_RING3_SS 0xe033 16 #define MACH2PHYS_VIRT_START 0xF5800000UL 18 #define __HYPERVISOR_VIRT_START_PAE 0xF5800000UL 23 #define __DECL_REG_LO8(which) union { \ 24 uint32_t e ## which ## x; \ 25 uint16_t which ## x; \ 31 #define __DECL_REG_LO16(name) union { \ 32 uint32_t e ## name, _e ## name; \ 60 #undef __DECL_REG_LO16 69 return pfn << 12 | pfn >> 20;
74 return cr3 >> 12 | cr3 << 20;
88 #define INIT_XEN_CALLBACK(_cs, _ip) \ 89 ((xen_callback_t){ .cs = _cs, .eip = _ip }) static unsigned int xen_cr3_to_pfn(unsigned int cr3)
uint8_t saved_upcall_mask
static unsigned int xen_pfn_to_cr3(unsigned int pfn)