mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-26 07:56:26 +08:00
2000-08-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c: Spacing issues. * rtems/score/cpu.h: Removed warning by setting _level.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems.h>
|
||||
#include <bspio.h>
|
||||
#include <bspIo.h>
|
||||
#include <rtems/score/isr.h>
|
||||
#include <rtems/score/wkspace.h>
|
||||
#include <rtems/score/thread.h>
|
||||
@@ -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);
|
||||
|
||||
@@ -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" ); \
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems.h>
|
||||
#include <bspio.h>
|
||||
#include <bspIo.h>
|
||||
#include <rtems/score/isr.h>
|
||||
#include <rtems/score/wkspace.h>
|
||||
#include <rtems/score/thread.h>
|
||||
@@ -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);
|
||||
|
||||
@@ -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" ); \
|
||||
|
||||
Reference in New Issue
Block a user