31 #ifndef CPU_X86_MM_SWSEG_PROT_DOMAINS_H_
32 #define CPU_X86_MM_SWSEG_PROT_DOMAINS_H_
37 #include "ldt-layout.h"
39 #include "segmentation.h"
40 #include "syscalls-int.h"
42 struct dom_kern_data {
53 uintptr_t orig_ret_addr;
63 #include "multi-segment.h"
65 #define PROT_DOMAINS_ENTER_ISR(exc) \
66 MULTI_SEGMENT_ENTER_ISR(exc) \
67 PROT_DOMAINS_ENTER_ISR_COMMON(exc)
68 #define PROT_DOMAINS_LEAVE_ISR(exc) \
69 PROT_DOMAINS_LEAVE_ISR_COMMON(exc) \
70 MULTI_SEGMENT_LEAVE_ISR(exc)
72 #define prot_domains_impl_init syscalls_int_init
74 #define prot_domains_set_wp(en)
83 #define PROT_DOMAINS_ALLOC_IMPL(nm) \
84 static segment_desc_t ATTR_BSS_GDT_MID _gdt_storage_##nm