[rtems commit] nios2: Use NIOS2_CTLREG_INDEX_STATUS

Sebastian Huber sebh at rtems.org
Mon Mar 11 16:54:35 UTC 2013


Module:    rtems
Branch:    master
Commit:    0986294f893fc7630401602df690d7cc68715d42
Changeset: http://git.rtems.org/rtems/commit/?id=0986294f893fc7630401602df690d7cc68715d42

Author:    Jeffrey O. Hill <hill at wombat.lanl.gov>
Date:      Wed Feb  6 08:35:17 2013 +0100

nios2: Use NIOS2_CTLREG_INDEX_STATUS

---

 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 350c339..4058322 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));




More information about the vc mailing list