diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-12 15:16:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-12 15:16:16 +0000 |
commit | 47d88b705f6b1d93607c28975df6f4e1a12260c8 (patch) | |
tree | 1acb518c804cec77c0a6510d62e49accbe0fcdef /c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c | |
parent | 2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-47d88b705f6b1d93607c28975df6f4e1a12260c8.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(;;); } |