summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-04 20:36:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-04 20:36:38 +0000
commit9f170c9e84f4d6b8f2d6fc8aed14b8034c2c0696 (patch)
treeb3f26b588187d66a380a35bebf72f6dd8f29f6a6
parent2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-9f170c9e84f4d6b8f2d6fc8aed14b8034c2c0696.tar.bz2
2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1294/bsps * startup/spurious.c: Correct prototype and usage of sparc_disable_interrupts.
-rw-r--r--c/src/lib/libbsp/sparc/erc32/ChangeLog6
-rw-r--r--c/src/lib/libbsp/sparc/erc32/startup/spurious.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/ChangeLog b/c/src/lib/libbsp/sparc/erc32/ChangeLog
index 8ded76e9ae..ac83004ce4 100644
--- a/c/src/lib/libbsp/sparc/erc32/ChangeLog
+++ b/c/src/lib/libbsp/sparc/erc32/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ PR 1294/bsps
+ * startup/spurious.c: Correct prototype and usage of
+ sparc_disable_interrupts.
+
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/linkcmds: Add wildcard to gcc_except_table section so
diff --git a/c/src/lib/libbsp/sparc/erc32/startup/spurious.c b/c/src/lib/libbsp/sparc/erc32/startup/spurious.c
index 308fd3b1f8..c76831d31d 100644
--- a/c/src/lib/libbsp/sparc/erc32/startup/spurious.c
+++ b/c/src/lib/libbsp/sparc/erc32/startup/spurious.c
@@ -141,11 +141,11 @@ rtems_isr bsp_spurious_handler(
void bsp_spurious_initialize()
{
- uint32_t trap;
+ uint32_t trap;
uint32_t level = 15;
uint32_t mask;
- sparc_disable_interrupts(level);
+ level = sparc_disable_interrupts();
mask = ERC32_MEC.Interrupt_Mask;
for ( trap=0 ; trap<256 ; trap++ ) {