summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/setjmp.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-30 21:43:47 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-30 21:43:47 +0000
commite6c08ea6437471b025b940944555ddc6f115c1b2 (patch)
treec2d7cc90e330bbc669ab167186b6fec1d0430e7a /libc/sysdeps/linux/i386/setjmp.S
parent643d28471fd2f87e85a06875754c57e122bb4848 (diff)
Remove need for the bloated sysdep.h -- we don't need it, so axe it.
Diffstat (limited to 'libc/sysdeps/linux/i386/setjmp.S')
-rw-r--r--libc/sysdeps/linux/i386/setjmp.S9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/i386/setjmp.S b/libc/sysdeps/linux/i386/setjmp.S
index d5139d7fe..466fed2ba 100644
--- a/libc/sysdeps/linux/i386/setjmp.S
+++ b/libc/sysdeps/linux/i386/setjmp.S
@@ -17,19 +17,22 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <sysdep.h>
#define _ASM
#define _SETJMP_H
#include <bits/setjmp.h>
-ENTRY (__setjmp)
+.globl __setjmp;
+.align 4; \
+__setjmp:
popl %eax /* Pop return address. */
popl %ecx /* Pop jmp_buf. */
pushl $0 /* Push zero argument. */
pushl %ecx /* Push jmp_buf. */
pushl %eax /* Push back return address. */
-ENTRY (__sigsetjmp)
+.globl __sigsetjmp;
+.align 4; \
+__sigsetjmp:
movl 4(%esp), %eax /* User's jmp_buf in %eax. */
/* Save registers. */
movl %ebx, (JB_BX*4)(%eax)