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

x86: mmu: cast to uintptr_t for page table using Z_X86_PHYS_ADDR



When feeding &z_shared_kernel_page_start directly to
Z_X86_PHYS_ADDR(), the compiler would complain array subscript
out of bound if linking in virtual address space. So cast it
into uintptr_t first before translation.

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