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/src/interr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src') diff --git a/cpukit/score/src/interr.c b/cpukit/score/src/interr.c index 97ca3c7731..f7d62744ca 100644 --- a/cpukit/score/src/interr.c +++ b/cpukit/score/src/interr.c @@ -49,7 +49,7 @@ void _Terminate( _System_state_Set( SYSTEM_STATE_TERMINATED ); - _CPU_Fatal_halt( the_error ); + _CPU_Fatal_halt( the_source, the_error ); /* will not return from this routine */ while (true); -- cgit v1.2.3