x86: use CONFIG_SRAM_OFFSET instead of CONFIG_X86_KERNEL_OFFSET
This changes x86 to use CONFIG_SRAM_OFFSET instead of arch-specific CONFIG_X86_KERNEL_OFFSET. This allows the common MMU macro Z_BOOT_VIRT_TO_PHYS() and Z_BOOT_PHYS_TO_VIRT() to function properly if we ever need to map the kernel into virtual address space that does not have the same starting physical address. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
ece9cad858
commit
d340afd456
3 changed files with 9 additions and 6 deletions
|
@ -24,6 +24,6 @@ CONFIG_X86_KPTI=n
|
|||
CONFIG_KERNEL_VM_SIZE=0x400000
|
||||
CONFIG_KERNEL_VM_BASE=0x0
|
||||
CONFIG_KERNEL_VM_OFFSET=0x100000
|
||||
CONFIG_X86_KERNEL_OFFSET=0
|
||||
CONFIG_SRAM_OFFSET=0
|
||||
CONFIG_DEMAND_PAGING=y
|
||||
CONFIG_BACKING_STORE_RAM=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue