On 2/8/07, Atsushi Nemoto <anemo@xxxxxxxxxxxxx> wrote:
On Thu, 8 Feb 2007 16:39:42 +0100, "Franck Bui-Huu" <vagabon.xyz@xxxxxxxxx> wrote: > But the points are: > > - get rid of saving static registers in setup_sigcontext() > - get rid of restoring static registers in restore_sigcontext() > - free space in the signal frame I'm afraid of ABI compatibility. Someone might try to handle SIGSEGV and dump all registers to debug the program without debugger...
Yes that's the main issue with this change. We could make it configurable with an option which would depend on CONFIG_EMBEDDED or something. Therefore someone can turn on the optimization if he really wants it on his platform. But we would still lose the extra space gain in the signal frame. Note: I think that such programs can have trouble with current code anyway... What would happen if the sig handler is run when returning from a syscall ? In this case wouldn't sig context contain almost garbage ? -- Franck