Subject: Re: __sigreturn14
To: ITOH Yasufumi <yasufu-i@is.aist-nara.ac.jp>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-m68k
Date: 11/20/1998 14:03:58
On Sat, 21 Nov 1998 06:53:39 +0900 (JST)
yasufu-i@is.aist-nara.ac.jp (ITOH Yasufumi) wrote:
That can't work... it clobbers the value of d0 (which breaks
longjmp).
> code from lib/libc/arch/m68k/sys/__sigreturn14.S:
>
> | ENTRY(__sigreturn14)
> | trap #3 /* special sigreturn syscall entry point */
> | jra cerror
>
> Is there any reason we don't do like this?
>
> > ENTRY(__sigreturn14)
> > movel #SYS___sigreturn14,d0 /* syscall number: ADDED */
> > trap #3 /* special sigreturn syscall entry point */
> > jra cerror
>
> This makes future changes much easier.
>
> Regards,
> --
> ITOH, Yasufumi <yasufu-i@is.aist-nara.ac.jp>, <itohy@netbsd.org>
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-5 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 650 940 5942