From f82752a474ee8157eafcb2f3192fb3ed8d3def9a Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Wed, 4 Jun 2014 11:23:34 +0200 Subject: 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. --- cpukit/score/cpu/arm/rtems/score/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/cpu/arm/rtems') diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h index 089fc27fbb..a032d4aff9 100644 --- a/cpukit/score/cpu/arm/rtems/score/cpu.h +++ b/cpukit/score/cpu/arm/rtems/score/cpu.h @@ -455,7 +455,7 @@ void _CPU_Context_Initialize( *(*(_destination)) = _CPU_Null_fp_context; \ } while (0) -#define _CPU_Fatal_halt( _err ) \ +#define _CPU_Fatal_halt( _source, _err ) \ do { \ uint32_t _level; \ uint32_t _error = _err; \ -- cgit v1.2.3