x86: generate RAM-based GDT dynamically
We will need this for stack memory protection scenarios where a writable GDT with Task State Segment descriptors will be used. The addresses of the TSS segments cannot be put in the GDT via preprocessor magic due to architecture requirments that the address be split up into different fields in the segment descriptor. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
8a102e44ed
commit
08c291306e
7 changed files with 160 additions and 42 deletions
3
Makefile
3
Makefile
|
@ -898,6 +898,9 @@ include $(srctree)/arch/x86/Makefile.idt
|
|||
ifeq ($(CONFIG_X86_MMU),y)
|
||||
include $(srctree)/arch/x86/Makefile.mmu
|
||||
endif
|
||||
ifeq ($(CONFIG_GDT_DYNAMIC),y)
|
||||
include $(srctree)/arch/x86/Makefile.gdt
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_GEN_ISR_TABLES),y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue