[rtems commit] or1k: Let CPU/BSP Fatal handler have access to source

Sebastian Huber sebh at rtems.org
Wed Sep 10 13:02:17 UTC 2014


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

Author:    Hesham ALMatary <heshamelmatary at gmail.com>
Date:      Wed Sep 10 15:08:52 2014 +0200

or1k: Let CPU/BSP Fatal handler have access to source

This patchs follows the latest commit by Daniel Hellstrom that
requires _CPU_Fatal_halt to have _source passed to it along with
_error number.

---

 cpukit/score/cpu/or1k/rtems/score/cpu.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/cpu/or1k/rtems/score/cpu.h b/cpukit/score/cpu/or1k/rtems/score/cpu.h
index 01e07a2..0be9bca 100644
--- a/cpukit/score/cpu/or1k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/or1k/rtems/score/cpu.h
@@ -721,8 +721,8 @@ void _CPU_Context_Initialize(
  *
  */
 
-#define _CPU_Fatal_halt( _error ) \
-        printk("Fatal Error %d Halted\n",_error); \
+#define _CPU_Fatal_halt(_source, _error ) \
+        printk("Fatal Error %d.%d Halted\n",_source, _error); \
         for(;;)
 
 /* end of Fatal Error manager macros */



More information about the vc mailing list