[rtems commit] bsp/leon3: Fix trap table initialization

Sebastian Huber sebh at rtems.org
Thu Dec 4 14:20:04 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Dec  4 15:15:52 2014 +0100

bsp/leon3: Fix trap table initialization

Fixes bug introduced with dff1803cfbec3775fff1b9c34cc707c05494dc3b.

---

 c/src/lib/libbsp/sparc/leon3/startup/spurious.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c
index 8801f6e..f4b02e3 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c
+++ b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c
@@ -155,7 +155,8 @@ void bsp_spurious_initialize()
     if (( trap == 5 ) || ( trap == 6 ) ||
         (( trap >= 0x11 ) && ( trap <= 0x1f )) ||
         (( trap >= 0x70 ) && ( trap <= 0x83 )) ||
-        ( trap == SPARC_SWTRAP_IRQDIS ) || ( trap == SPARC_SWTRAP_IRQEN ))
+        ( trap == 0x80 + SPARC_SWTRAP_IRQDIS ) ||
+        ( trap == 0x80 + SPARC_SWTRAP_IRQEN ))
       continue;
 
     set_vector(



More information about the vc mailing list