Re: [PATCH 1/5] Let CPU/BSP Fatal handler have access to source

2014-07-04 Thread Daniel Hellstrom
Hello Joel, Thanks for your comments. On 07/03/2014 04:27 PM, Joel Sherrill wrote: This looks mostly mechanical and the biggest issue is what to do with the source in the generic shutdown case. The first thing is that I think this is already handled and the information is stored in _Internal_

Re: [PATCH 1/5] Let CPU/BSP Fatal handler have access to source

2014-07-03 Thread Joel Sherrill
This looks mostly mechanical and the biggest issue is what to do with the source in the generic shutdown case. The first thing is that I think this is already handled and the information is stored in _Internal_errors_What_happened in score/src/interr.c before _CPU_Fatal_halt() is invoked. I would

[PATCH 1/5] Let CPU/BSP Fatal handler have access to source

2014-07-03 Thread Daniel Hellstrom
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