[PATCH v1 7/8] bsps/aarch64: Mask debug events from startup

Kinsey Moore kinsey.moore at oarcorp.com
Fri Oct 29 21:17:20 UTC 2021


Debug events should be masked at least until after the first context
switch and should usually be masked until a debugger is attached for
application debugging.
---
 bsps/aarch64/shared/start/start.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bsps/aarch64/shared/start/start.S b/bsps/aarch64/shared/start/start.S
index bc6a855217..f03c7921ca 100644
--- a/bsps/aarch64/shared/start/start.S
+++ b/bsps/aarch64/shared/start/start.S
@@ -201,8 +201,8 @@ _el1_start:
 #endif
   add x3, x1, x2
 
-  /* Disable interrupts */
-  msr DAIFSet, #0x2
+  /* Disable interrupts and debug */
+  msr DAIFSet, #0xa
 
 #ifdef BSP_START_NEEDS_REGISTER_INITIALIZATION
   mov x8, XZR
-- 
2.30.2



More information about the devel mailing list