diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2014-06-04 11:23:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-10 14:06:08 +0200 |
commit | f82752a474ee8157eafcb2f3192fb3ed8d3def9a (patch) | |
tree | 5aaa8ab0eb9676e90bf53ac15014c059ab93cc8b /cpukit/score/cpu/moxie/rtems/score/cpu.h | |
parent | bsps/arm: Fix get cache size (diff) | |
download | rtems-f82752a474ee8157eafcb2f3192fb3ed8d3def9a.tar.bz2 |
Let CPU/BSP Fatal handler have access to source
Without the source the error code does not say that much.
Let it be up to the CPU/BSP to determine the error code
reported on fatal shutdown.
This patch does not change the current behaviour, just
adds the option to handle the source of the fatal halt.
Diffstat (limited to 'cpukit/score/cpu/moxie/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/moxie/rtems/score/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/moxie/rtems/score/cpu.h b/cpukit/score/cpu/moxie/rtems/score/cpu.h index 2c72bf616d..cf226011d4 100644 --- a/cpukit/score/cpu/moxie/rtems/score/cpu.h +++ b/cpukit/score/cpu/moxie/rtems/score/cpu.h @@ -733,8 +733,8 @@ uint32_t _CPU_ISR_Get_level( void ); * * XXX */ -#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 */ |