summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/i386/sysdep.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-13 13:29:55 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-13 13:29:55 +0000
commit44129238a240efd600340fbe42a0f7140e5f5b0f (patch)
treec2d813dc2d2514922df0cb1de4bd495157626c12 /sysdeps/unix/sysv/linux/i386/sysdep.h
parentd7b88214f60b24730261f179983aa411e4b1ed91 (diff)
Update.
1999-01-13 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/syscalls.list: Add __syscall_fork alias. * sysdeps/unix/sysv/linux/vfork.c: Use vfork syscall if available, otherwise use fork. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add vfork. * sysdeps/unix/sysv/linux/sparc32/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/sparc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/i386/sysdep.h: Correct handling of INLINE_SYSCALL for syscall without parameters.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/sysdep.h')
-rw-r--r--sysdeps/unix/sysv/linux/i386/sysdep.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
index a6971ff45f..8b758fa469 100644
--- a/sysdeps/unix/sysv/linux/i386/sysdep.h
+++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
@@ -1,6 +1,6 @@
-/* Copyright (C) 1992, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 93, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
This file is part of the GNU C Library.
- Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>, August 1995.
+ Contributed by Ulrich Drepper, <drepper@gnu.org>, August 1995.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -243,11 +243,10 @@ asm (".L__X'%ebx = 1\n\t"
({ \
unsigned int resultvar; \
asm volatile ( \
- "bpushl .L__X'%k2, %k2\n\t" \
- "bmovl .L__X'%k2, %k2\n\t" \
+ LOADARGS_##nr \
"movl %1, %%eax\n\t" \
"int $0x80\n\t" \
- "bpopl .L__X'%k2, %k2\n\t" \
+ RESTOREARGS_##nr \
: "=a" (resultvar) \
: "i" (__NR_##name) ASMFMT_##nr(args) : "memory", "cc"); \
if (resultvar >= 0xfffff001) \
@@ -257,6 +256,23 @@ asm (".L__X'%ebx = 1\n\t"
} \
(int) resultvar; })
+#define LOADARGS_0
+#define LOADARGS_1 \
+ "bpushl .L__X'%k2, %k2\n\t" \
+ "bmovl .L__X'%k2, %k2\n\t"
+#define LOADARGS_2 LOADARGS_1
+#define LOADARGS_3 LOADARGS_1
+#define LOADARGS_4 LOADARGS_1
+#define LOADARGS_5 LOADARGS_1
+
+#define RESTOREARGS_0
+#define RESTOREARGS_1 \
+ "bpopl .L__X'%k2, %k2\n\t"
+#define RESTOREARGS_2 RESTOREARGS_1
+#define RESTOREARGS_3 RESTOREARGS_1
+#define RESTOREARGS_4 RESTOREARGS_1
+#define RESTOREARGS_5 RESTOREARGS_1
+
#define ASMFMT_0()
#define ASMFMT_1(arg1) \
, "acdSD" (arg1)