summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/lib/libbsp/nios2/nios2_iss/ChangeLog11
-rw-r--r--c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c4
2 files changed, 13 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog b/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog
index 522f75ec24..2cf76f0c92 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog
+++ b/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog
@@ -1,3 +1,14 @@
+2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ PR 1257/bsps
+ * startup/bspclean.c: Code outside of cpukit should use the public API
+ for rtems_interrupt_disable/rtems_interrupt_enable. By bypassing the
+ public API and directly accessing _CPU_ISR_Disable and
+ _CPU_ISR_Enable, they were bypassing the compiler memory barrier
+ directive which could lead to problems. This patch also changes the
+ type of the variable passed into these routines and addresses minor
+ style issues.
+
2007-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* bsp_specs: Remove qrtems_debug.
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c b/c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c
index b38f0e1d57..7d264f8505 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c
+++ b/c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c
@@ -25,7 +25,7 @@
void bsp_cleanup( void )
{
- int level;
- _CPU_ISR_Disable(level);
+ rtems_interrupt_level level;
+ rtems_interrupt_disable(level);
for(;;);
}