summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-12 15:23:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-12 15:23:49 +0000
commit3d7fa72bc2ba2f723e6bcf84180637fb8c84f713 (patch)
tree4b542c612d352d8924e5ca59a921623d937ed754 /c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
parent2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-3d7fa72bc2ba2f723e6bcf84180637fb8c84f713.tar.bz2
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1257/bsps * sh7032/score/cpu_asm.c, sh7032/timer/timer.c, sh7045/score/cpu_asm.c, sh7045/timer/timer.c, sh7750/score/cpu_asm.c, sh7750/timer/timer.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 'c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c')
-rw-r--r--c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
index 0b9dae84b5..979a42e102 100644
--- a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
+++ b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c
@@ -256,9 +256,9 @@ __CPU_Context_restore:\n\
void __ISR_Handler( uint32_t vector)
{
- register uint32_t level;
+ ISR_Level level;
- _CPU_ISR_Disable( level );
+ _ISR_Disable( level );
_Thread_Dispatch_disable_level++;
@@ -274,13 +274,13 @@ void __ISR_Handler( uint32_t vector)
_ISR_Nest_level++;
- _CPU_ISR_Enable( level );
+ _ISR_Enable( level );
/* call isp */
if( _ISR_Vector_table[ vector])
(*_ISR_Vector_table[ vector ])( vector );
- _CPU_ISR_Disable( level );
+ _ISR_Disable( level );
_Thread_Dispatch_disable_level--;
@@ -293,7 +293,7 @@ void __ISR_Handler( uint32_t vector)
stack_ptr = _old_stack_ptr;
#endif
- _CPU_ISR_Enable( level );
+ _ISR_Enable( level );
if ( _ISR_Nest_level )
return;