arch/x86/ia32: Add option to reserve GDT entries

Some functions such as the ISH power management function needs to
reserve GDT entry place holders which are filled during runtime.
Add config option to define the number of GDT entry place holders
reserved and change the ia32 linker script accordingly.

Signed-off-by: Leifu Zhao <leifu.zhao@intel.com>
This commit is contained in:
Leifu Zhao 2023-04-11 14:11:40 +08:00 committed by Anas Nashif
commit 1cb259a43b
2 changed files with 9 additions and 0 deletions

View file

@ -39,6 +39,14 @@ config GDT_DYNAMIC
This option stores the GDT in RAM instead of ROM, so that it may
be modified at runtime at the expense of some memory.
config GDT_RESERVED_NUM_ENTRIES
int "Number of reserved GDT entry place holders"
depends on GDT_DYNAMIC
default 0
help
This option defines the number of GDT entry place holders revserved
that can be filled at runtime.
endmenu
menu "Processor Capabilities"