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:
Joel Sherrill
2007-09-12 15:16:16 +00:00
parent c83c3254d4
commit 47d88b705f
2 changed files with 13 additions and 2 deletions

View File

@@ -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> 2007-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* bsp_specs: Remove qrtems_debug. * bsp_specs: Remove qrtems_debug.

View File

@@ -25,7 +25,7 @@
void bsp_cleanup( void ) void bsp_cleanup( void )
{ {
int level; rtems_interrupt_level level;
_CPU_ISR_Disable(level); rtems_interrupt_disable(level);
for(;;); for(;;);
} }