linux-mips
[Top] [All Lists]

Re: [PATCH 9/10] signal: do not use save_static_function() anymore

To: vagabon.xyz@gmail.com
Subject: Re: [PATCH 9/10] signal: do not use save_static_function() anymore
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 09 Feb 2007 01:35:07 +0900 (JST)
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <cda58cb80702080739y18d31a34gc184a0cc96c86fb0@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cda58cb80702080053m6f22dc15td3b8c447e2abbda1@mail.gmail.com> <20070208.223637.108120499.anemo@mba.ocn.ne.jp> <cda58cb80702080739y18d31a34gc184a0cc96c86fb0@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On Thu, 8 Feb 2007 16:39:42 +0100, "Franck Bui-Huu" <vagabon.xyz@gmail.com> 
wrote:
> You're right the patch I sent is not sufficient. However, we actually
> could restore save_static_function (well if we do it, I think it's
> much better to do it in assembly code...) for sys_sigreturn() _only_.
> In that case RESTORE_STATIC should load correct values, shouldn't it ?

Yes.  I think you are right.

> 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...

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>