debug/0 address: Add 0 address access panic configuration

Implemented using up_debugpoint_add

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1
2025-02-18 15:39:15 +08:00
committed by Xiang Xiao
parent 4270235bfa
commit bdd3869d26
2 changed files with 23 additions and 0 deletions
+8
View File
@@ -2432,6 +2432,14 @@ endif # DEBUG_CORESIGHT
endif # DEBUG_FEATURES
config ARCH_PROTECT_ZERO_ADDRESS
bool "Protect address zero"
depends on ARCH_HAVE_DEBUG
default n
---help---
When the program accesses address 0, it will assert automatically.
Hardware support is required, such as ARM V8M DWT watchpoint
config ARCH_HAVE_STACKCHECK
bool
default n