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:
Daniel Leung 2021-02-20 11:11:24 -08:00 committed by Anas Nashif
commit d340afd456
3 changed files with 9 additions and 6 deletions

View file

@ -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