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/m68k/rtems/score/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/m68k/rtems') diff --git a/cpukit/score/cpu/m68k/rtems/score/cpu.h b/cpukit/score/cpu/m68k/rtems/score/cpu.h index fb0c60c27a..d2224657eb 100644 --- a/cpukit/score/cpu/m68k/rtems/score/cpu.h +++ b/cpukit/score/cpu/m68k/rtems/score/cpu.h @@ -479,7 +479,7 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored ); */ #if ( defined(__mcoldfire__) ) -#define _CPU_Fatal_halt( _error ) \ +#define _CPU_Fatal_halt( _source, _error ) \ { __asm__ volatile( "move.w %%sr,%%d0\n\t" \ "or.l %2,%%d0\n\t" \ "move.w %%d0,%%sr\n\t" \ @@ -491,7 +491,7 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored ); : "d0", "d1" ); \ } #else -#define _CPU_Fatal_halt( _error ) \ +#define _CPU_Fatal_halt( _source, _error ) \ { __asm__ volatile( "movl %0,%%d0; " \ "orw #0x0700,%%sr; " \ "stop #0x2700" : "=d" ((_error)) : "0" ((_error)) ); \ -- cgit v1.2.3