inline call to sigreturn original idea from jason downs <downsj@CSOS.ORST.EDU>
we want this to be done for everything including non-PIC code as longjmp() does non-standard things with regs and wouldn't like it if the user replaced the sigreturn() stub.
This commit is contained in:
parent
0bbe483464
commit
03dbf74333
|
@ -38,7 +38,7 @@
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
.text
|
.text
|
||||||
/*.asciz "from: @(#)setjmp.s 5.1 (Berkeley) 5/12/90"*/
|
/*.asciz "from: @(#)setjmp.s 5.1 (Berkeley) 5/12/90"*/
|
||||||
.asciz "$Id: setjmp.S,v 1.2 1994/05/10 08:15:57 chopps Exp $"
|
.asciz "$Id: setjmp.S,v 1.3 1994/08/04 05:00:50 chopps Exp $"
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -86,8 +86,8 @@ ENTRY(longjmp)
|
||||||
moveq #1,d0 /* else make non-zero */
|
moveq #1,d0 /* else make non-zero */
|
||||||
ok:
|
ok:
|
||||||
moveml a0@(28),#0x3CFC /* restore non-scratch regs */
|
moveml a0@(28),#0x3CFC /* restore non-scratch regs */
|
||||||
movl a0,sp@- /* let sigreturn */
|
trap #1 /* let sigreturn finish job */
|
||||||
jbsr _sigreturn /* finish for us */
|
jbsr cerror /* set errno */
|
||||||
|
|
||||||
botch:
|
botch:
|
||||||
jbsr _longjmperror
|
jbsr _longjmperror
|
||||||
|
|
Loading…
Reference in New Issue