linker: add CONFIG_KERNEL_LINK_IN_VIRT
This adds the kconfig CONFIG_KERNEL_LINK_IN_VIRT and supporting kconfigs to indicate that the linker script can link the kernel in virtual address space. This is needed for demand paging where the kernel can be bigger than physical address space. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
d340afd456
commit
3d457e1a36
1 changed files with 17 additions and 0 deletions
|
@ -183,6 +183,23 @@ config SRAM_OFFSET
|
||||||
|
|
||||||
If unsure, leave at the default value 0.
|
If unsure, leave at the default value 0.
|
||||||
|
|
||||||
|
config CAN_LINK_IN_VIRT
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
Hidden option to indicate that the architecture, SoC or board
|
||||||
|
linker script can link the kernel in virtual address space.
|
||||||
|
|
||||||
|
config KERNEL_LINK_IN_VIRT
|
||||||
|
bool "Link Kernel in Virtual Address Space"
|
||||||
|
depends on MMU
|
||||||
|
depends on CAN_LINK_IN_VIRT
|
||||||
|
help
|
||||||
|
Enable linking the kernel in virtual address space defined by
|
||||||
|
KERNEL_VM_BASE, KERNEL_VM_SIZE and KERNEL_VM_OFFSET.
|
||||||
|
|
||||||
|
Requires linker script support. If unsure, says N and the kernel
|
||||||
|
will be linked in physical address space.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Compiler Options"
|
menu "Compiler Options"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue