[rtems commit] bsps/aarch64: Mask debug events from startup

Joel Sherrill joel at rtems.org
Mon Nov 1 13:34:58 UTC 2021


Module:    rtems
Branch:    master
Commit:    750bde8c78e4320609a0e8b128702cb712fc1fef
Changeset: http://git.rtems.org/rtems/commit/?id=750bde8c78e4320609a0e8b128702cb712fc1fef

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Mon Oct 25 09:56:32 2021 -0500

bsps/aarch64: Mask debug events from startup

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 bc6a855..f03c792 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



More information about the vc mailing list