diff options
author | Jeffrey O. Hill <hill@wombat.lanl.gov> | 2013-02-06 08:35:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-03-11 17:57:41 +0100 |
commit | 0986294f893fc7630401602df690d7cc68715d42 (patch) | |
tree | 8c66f6291f4c7997daee2b645696040fba612f4b /cpukit | |
parent | nios2: Set CPU_ISR_PASSES_FRAME_POINTER to FALSE (diff) | |
download | rtems-0986294f893fc7630401602df690d7cc68715d42.tar.bz2 |
nios2: Use NIOS2_CTLREG_INDEX_STATUS
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/score/cpu/nios2/nios2-fatal-halt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/cpu/nios2/nios2-fatal-halt.c b/cpukit/score/cpu/nios2/nios2-fatal-halt.c index 350c3397de..4058322685 100644 --- a/cpukit/score/cpu/nios2/nios2-fatal-halt.c +++ b/cpukit/score/cpu/nios2/nios2-fatal-halt.c @@ -12,11 +12,12 @@ */ #include <rtems/score/cpu.h> +#include <rtems/score/nios2-utility.h> void _CPU_Fatal_halt( uint32_t _error ) { /* write 0 to status register (disable interrupts) */ - __builtin_wrctl( 0, 0 ); + __builtin_wrctl( NIOS2_CTLREG_INDEX_STATUS, 0 ); /* write error code to ET register */ __asm__ volatile ("mov et, %z0" : : "rM" (_error)); |