Re: [PATCH 4/5 v2] SPARC: Fatal_halt use source and exit codes

2014-07-10 Thread Sebastian Huber
On 2014-07-04 22:07, Daniel Hellstrom wrote: On 07/04/2014 04:20 PM, Joel Sherrill wrote: On Jul 4, 2014 3:47 AM, Daniel Hellstrom wrote: > > On 07/03/2014 04:55 PM, Joel Sherrill wrote: > > I am wondering if I don't have a vision for what this > > series of patches is trying to accomplish i

Re: [PATCH 4/5 v2] SPARC: Fatal_halt use source and exit codes

2014-07-04 Thread Daniel Hellstrom
On 07/04/2014 04:20 PM, Joel Sherrill wrote: On Jul 4, 2014 3:47 AM, Daniel Hellstrom wrote: > > On 07/03/2014 04:55 PM, Joel Sherrill wrote: > > I am wondering if I don't have a vision for what this > > series of patches is trying to accomplish in whole. > * make exit-code propagate to debug

Re: [PATCH 4/5 v2] SPARC: Fatal_halt use source and exit codes

2014-07-04 Thread Joel Sherrill
On Jul 4, 2014 3:47 AM, Daniel Hellstrom wrote: > > On 07/03/2014 04:55 PM, Joel Sherrill wrote: > > I am wondering if I don't have a vision for what this > > series of patches is trying to accomplish in whole. > * make exit-code propagate to debugger/hypervisor. I though this would be > nice fo

Re: [PATCH 4/5 v2] SPARC: Fatal_halt use source and exit codes

2014-07-04 Thread Daniel Hellstrom
On 07/03/2014 04:55 PM, Joel Sherrill wrote: I am wondering if I don't have a vision for what this series of patches is trying to accomplish in whole. * make exit-code propagate to debugger/hypervisor. I though this would be nice for other architectures as well. * make SMP fatal exit work * ins

Re: [PATCH 4/5 v2] SPARC: Fatal_halt use source and exit codes

2014-07-03 Thread Sebastian Huber
On 2014-07-03 16:55, Joel Sherrill wrote: As an aside, should the _Internal_errors_What_happened structure be filled in earlier in _Terminate? How about just after disabling interrupts? I think we should remove _Internal_errors_What_happened. It makes no sense on SMP and the application can g

Re: [PATCH 4/5 v2] SPARC: Fatal_halt use source and exit codes

2014-07-03 Thread Joel Sherrill
I am wondering if I don't have a vision for what this series of patches is trying to accomplish in whole. And I am hung up on not wanting BSP references in score. So I would like an elegant solution. How does tweaking the bsp_reset() method not address all of this? It is invoked along the _Termin

[PATCH 4/5 v2] SPARC: Fatal_halt use source and exit codes

2014-07-03 Thread Daniel Hellstrom
PATCHv2: BSP_fatal_halt renamed to _BSP_Fatal_halt The Fatal_halt handler now have two options, either halt as before or enter system error state to return to debugger or simulator. The exit-code is now also propagated to the debugger which is very useful for testing. The CPU_Fatal_halt handler w