Macros for symbols used in both ASM and C

-The macros take care of prepending the leading underscore when
 necessary.
This commit is contained in:
Arun Thomas
2010-08-17 16:44:07 +00:00
parent c8cfcab5db
commit 9a21d1a2fd
209 changed files with 1511 additions and 1863 deletions

View File

@@ -1,10 +1,9 @@
/ __setjmp.gnu.s
/
/ Created: Oct 14, 1993 by Philip Homburg <philip@cs.vu.nl>
#include <machine/asm.h>
.text
.globl ___setjmp
___setjmp:
ENTRY(__setjmp)
movl 4(%esp), %eax /* jmp_buf */
movl %edx, 28(%eax) /* save edx */
movl 0(%esp), %edx
@@ -22,7 +21,7 @@ ___setjmp:
jz 1f
leal 4(%eax), %edx /* pointer to sigset_t */
push %edx
call ___newsigset /* save mask */
call _C_LABEL(__newsigset) /* save mask */
addl $4, %esp
1:
movl $0, %eax

View File

@@ -1,16 +1,15 @@
/ longjmp.gnu.s
/
/ Created: Oct 15, 1993 by Philip Homburg <philip@cs.vu.nl>
#include <machine/asm.h>
.text
.globl _longjmp
_longjmp:
ENTRY(longjmp)
movl 4(%esp), %eax /* jmp_buf */
cmpl $0, 0(%eax) /* save mask? */
je 1f
leal 4(%eax), %edx /* pointer to sigset_t */
push %edx
call ___oldsigset /* restore mask */
call _C_LABEL(__oldsigset) /* restore mask */
addl $4, %esp
movl 4(%esp), %eax /* jmp_buf */
1: