[rtems commit] SPARC BSPs: disable interrupts as early as possible

Sebastian Huber sebh at rtems.org
Thu Oct 31 14:24:37 UTC 2013

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

Author:    Daniel Hellstrom <daniel at gaisler.com>
Date:      Thu Oct 31 15:23:23 2013 +0100

SPARC BSPs: disable interrupts as early as possible

There is no point having interrupts enabled before reaching
boot_card() that disables interrupt. We better have it off
all the time.

It is required to turn off interrupt on secondary CPUs in an
SMP system.


 c/src/lib/libbsp/sparc/shared/start.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/start.S b/c/src/lib/libbsp/sparc/shared/start.S
index 83cfab4..721336d 100644
--- a/c/src/lib/libbsp/sparc/shared/start.S
+++ b/c/src/lib/libbsp/sparc/shared/start.S
@@ -226,8 +226,8 @@ SYM(hard_reset):
 	sll	%g3, %g2, %g3
         mov     %g3, %wim
-	or	%g1, 0x20, %g1
-        wr      %g1, %psr		! enable traps
+	or	%g1, 0xf20, %g1
+        wr      %g1, %psr		! enable traps and disable ints

More information about the vc mailing list