[parisc-linux] signal handling problems (32 bit kernel)

Alan Modra alan@linuxcare.com.au
Tue, 21 Nov 2000 22:26:14 +1100 (EST)


On Tue, 21 Nov 2000, Richard Hirst wrote:

> Time to try and work out what signal.c is really trying to do, I guess.

Maybe you should start by considering all the possible states a task can
be in when a signal is delivered, in regards to saved registers and stack
layout.  It would be a _very_ good idea to formalize this once you've
sorted it out by splitting up struct pt_regs appropriately.  ie. as other
architectures do, into struct pt_regs and struct switch_stack.  Actually,
parisc could go one further and have three structures, one corresponding
to registers saved on syscall entry (new pt_regs), one corresponding to
macro callee_save (switch_stack), and one corresponding more or less to
macro save_specials.  Quite a bit of work, but IMO well worth doing.

Alan Modra
-- 
Linuxcare.  Support for the Revolution.