forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
void bsp_cleanup( void )
|
||||
{
|
||||
int level;
|
||||
_CPU_ISR_Disable(level);
|
||||
rtems_interrupt_level level;
|
||||
rtems_interrupt_disable(level);
|
||||
for(;;);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user