From eeec72f8836336f497790a402c76612120a49680 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 29 Aug 2000 14:47:09 +0000 Subject: 2000-08-28 Joel Sherrill * cpu.c: Spacing issues. * rtems/score/cpu.h: Removed warning by setting _level. --- c/src/exec/score/cpu/arm/cpu.c | 9 +++++---- c/src/exec/score/cpu/arm/rtems/score/cpu.h | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'c/src/exec') diff --git a/c/src/exec/score/cpu/arm/cpu.c b/c/src/exec/score/cpu/arm/cpu.c index bb97346fe3..09caf9299e 100644 --- a/c/src/exec/score/cpu/arm/cpu.c +++ b/c/src/exec/score/cpu/arm/cpu.c @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include #include @@ -155,11 +155,12 @@ extern void _Exception_Handler_Abort(); void rtems_exception_init_mngt() { + ISR_Level level; _CPU_ISR_Disable(level); - _CPU_ISR_install_vector(ARM_EXCEPTION_UNDEF, _Exception_Handler_Undef_Swi, NULL); - _CPU_ISR_install_vector(ARM_EXCEPTION_SWI, _Exception_Handler_Undef_Swi, NULL); - _CPU_ISR_install_vector(ARM_EXCEPTION_PREF_ABORT, _Exception_Handler_Abort , NULL); + _CPU_ISR_install_vector(ARM_EXCEPTION_UNDEF, _Exception_Handler_Undef_Swi, NULL); + _CPU_ISR_install_vector(ARM_EXCEPTION_SWI, _Exception_Handler_Undef_Swi, NULL); + _CPU_ISR_install_vector(ARM_EXCEPTION_PREF_ABORT, _Exception_Handler_Abort , NULL); _CPU_ISR_install_vector(ARM_EXCEPTION_DATA_ABORT, _Exception_Handler_Abort , NULL); _CPU_ISR_install_vector(ARM_EXCEPTION_FIQ, _Exception_Handler_Abort , NULL); _CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, _Exception_Handler_Abort , NULL); diff --git a/c/src/exec/score/cpu/arm/rtems/score/cpu.h b/c/src/exec/score/cpu/arm/rtems/score/cpu.h index 820b72a0be..5e664818ea 100644 --- a/c/src/exec/score/cpu/arm/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/arm/rtems/score/cpu.h @@ -525,6 +525,7 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)(); */ #define _CPU_ISR_Disable( _level ) \ { \ + (_level) = 0; \ asm volatile ("MRS r0, cpsr \n" ); \ asm volatile ("ORR r0, r0, #0xc0 \n" ); \ asm volatile ("MSR cpsr, r0 \n" ); \ -- cgit v1.2.3