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

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to