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/sh/rtems/score/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/sh') diff --git a/cpukit/score/cpu/sh/rtems/score/cpu.h b/cpukit/score/cpu/sh/rtems/score/cpu.h index cb899539fb..217eb7da96 100644 --- a/cpukit/score/cpu/sh/rtems/score/cpu.h +++ b/cpukit/score/cpu/sh/rtems/score/cpu.h @@ -675,9 +675,9 @@ SCORE_EXTERN void _CPU_Context_Initialize( #ifdef BSP_FATAL_HALT /* we manage the fatal error in the board support package */ void bsp_fatal_halt( uint32_t _error); -#define _CPU_Fatal_halt( _error ) bsp_fatal_halt( _error) +#define _CPU_Fatal_halt( _source, _error ) bsp_fatal_halt( _error) #else -#define _CPU_Fatal_halt( _error)\ +#define _CPU_Fatal_halt( _source, _error)\ { \ __asm__ volatile("mov.l %0,r0"::"m" (_error)); \ __asm__ volatile("mov #1, r4"); \ -- cgit v1.2.3