Skip to content
Commit 9ce77abf authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

x86: ia32: jump to virtual address before calling z_x86_prep_c



We have been having the assumption that the physical memory
is identity-mapped to virtual address space. However, with
the ability to set CONFIG_KERNEL_VM_BASE separately from
CONFIG_SRAM_BASE_ADDRESS, the assumption is no longer valid.
This changes the boot code in x86 32-bit, so that once
the page table is loaded, we can proceed with executing in
the virtual address space. So do a long jump to virtual
address just before calling z_x86_prep_c. From this point on,
code execution is in virtual address space.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 991300e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment