commit | 47c592cd32b3d6ba146ac2d90d55b67c3d284055 | [log] [tgz] |
---|---|---|
author | Carlo Caione <ccaione@baylibre.com> | Fri Oct 23 16:59:32 2020 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Oct 23 16:24:04 2020 -0400 |
tree | 4c3eecd97170be6a86f654d9aa5b914fc0f7e237 | |
parent | e5f0571cbcdc7dca7c0260e612056d48fa3837cc [diff] |
mmu: Fix mapping_pos calculation In the MMU code mapping_pos is miscalculated when for example SRAM_BASE_ADDRESS==0x40000000 and KERNEL_VM_SIZE==0xc0000000 getting a mapping_pos of 0x0. The problem is that we must cast the two values to uintptr_t before casting the result to avoid the rollover to 0. Signed-off-by: Carlo Caione <ccaione@baylibre.com>