diff options
Diffstat (limited to 'cpukit/score/cpu/mips/rtems/score/mips.h')
-rw-r--r-- | cpukit/score/cpu/mips/rtems/score/mips.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/score/cpu/mips/rtems/score/mips.h b/cpukit/score/cpu/mips/rtems/score/mips.h index f95175d362..e85540f892 100644 --- a/cpukit/score/cpu/mips/rtems/score/mips.h +++ b/cpukit/score/cpu/mips/rtems/score/mips.h @@ -23,6 +23,22 @@ extern "C" { #endif /* + * SR bits that enable/disable interrupts + * + * NOTE: XXX what about SR_ERL? + */ + +#if __mips == 3 +#ifdef ASM +#define SR_INTERRUPT_ENABLE_BITS 0x03 +#else +#define SR_INTERRUPT_ENABLE_BITS SR_IE|SR_EXL +#endif +#else +#define SR_INTERRUPT_ENABLE_BITS SR_IEC +#endif + +/* * This file contains the information required to build * RTEMS for a particular member of the "no cpu" * family when executing in protected mode. It does |