Subject: Re: Performance tweak for m68k signal delivery
To: None <thorpej@wasabisystems.com>
From: ITOH Yasufumi <itohy@netbsd.org>
List: port-m68k
Date: 07/04/2002 10:25:49
Jason R Thorpe writes:
> On Wed, Jul 03, 2002 at 08:46:48PM +0900, ITOH Yasufumi wrote:
> 
>  > The pointer to "struct sigcontext" already in sigframe when sending
>  > a signal, and we can reuse it.
>  > This saves 6 bytes in the trampoline.
> 
> Yes.  But is the handler allowed to clobber its argument slots?  If so,
> then the address of the sigcontext must be recomputed.

Oh, I see.  You mean the change includes allowing signal handler to use
the third parameter.

	void handler(int signo, int code, struct sigcontext *scp) {...}

If so, yes, we should recompute the pointer to sigcontext.
-- 
ITOH Yasufumi