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

kernel: mmu: fix boot address translation macros



The Z_BOOT_VIRT_TO_PHYS() and Z_BOOT_PHYS_TO_VIRT() address
translation macros are flipped in their calculations.
The calculation is supposed to be:

  virt = phys + ((KERNEL_VM_BASE + KERNEL_VM_OFFSET) -
                 SRAM_BASE_ADDRESS)

So fix the them.

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