zephyr/arch
Sudan Landge f2e115cca3 arch: arm: fix null pointer dereference check test
What is changed?
Updated the condition thats prevents mpu config for null dereference.
Added a new check so that mpu is configured for null dereference if
devicetree contains a memory-region node with:
 - node address starting at 0
 - size covered by the node is more than the null dereference page
   size (0x400) and
 - contains a memory-attr

Why is the change needed?
The check relied on flash base address to align with 0 for
configuring the mpu for null dereference but, a device tree
could have a flash starting at an address other than 0 and
still need the mpu config for null dereference.
The new extra check provides a way to connfigure mpu for
null dereference even if flash base address is not 0.

Note, though this change helps with mpu config for new boards having
flash address other than 0, this change does not change existing
behaviour for existing boards.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2024-10-26 03:58:05 +01:00
..
arc Revert "arch: arc: replace ARC_EARLY_SOC_INIT with PLATFORM_RESET_HOOK" 2024-10-22 18:28:37 -04:00
arm arch: arm: fix null pointer dereference check test 2024-10-26 03:58:05 +01:00
arm64
common Revert "arch: common: Add user can specify the nocache location" 2024-10-04 22:52:31 +01:00
mips
nios2
posix
riscv arch: riscv: smp: prevent nested #ifdef 2024-10-04 10:50:14 +01:00
sparc
x86 arch: x86_64: re-enable -mno-red-zone 2024-09-24 10:11:15 +02:00
xtensa llext: xtensa: fix relocations with multiple SLOT0_OP 2024-10-17 10:49:50 -04:00
archs.yml
CMakeLists.txt
Kconfig x86: add support for on-demand mappings 2024-09-23 18:10:38 -04:00
Kconfig.v1
Kconfig.v2