diff options
author | 1995-12-30 08:15:54 +0000 | |
---|---|---|
committer | 1995-12-30 08:15:54 +0000 | |
commit | 71304c28182c2a85c5bf728db42de473b3550494 (patch) | |
tree | 94372e295669d64cde22d1bc5318006149d98686 /lib/libc | |
parent | from netbsd: Use <machine/asm.h> instead of DEFS.h (diff) | |
download | wireguard-openbsd-71304c28182c2a85c5bf728db42de473b3550494.tar.xz wireguard-openbsd-71304c28182c2a85c5bf728db42de473b3550494.zip |
from netbsd: Removed unused CALL macro
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/arch/i386/SYS.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/arch/i386/SYS.h b/lib/libc/arch/i386/SYS.h index 59563092ba6..03c2b891647 100644 --- a/lib/libc/arch/i386/SYS.h +++ b/lib/libc/arch/i386/SYS.h @@ -34,15 +34,24 @@ * SUCH DAMAGE. * * from: @(#)SYS.h 5.5 (Berkeley) 5/7/91 - * $Id: SYS.h,v 1.1.1.1 1995/10/18 08:41:23 deraadt Exp $ + * $Id: SYS.h,v 1.2 1995/12/30 08:15:54 deraadt Exp $ */ #include <machine/asm.h> #include <sys/syscall.h> +#ifdef __STDC__ + +#define SYSCALL(x) .text; .align 2; 2: jmp PIC_PLT(cerror); ENTRY(x); movl $(SYS_ ## x),%eax; int $0x80; jc 2b +#define RSYSCALL(x) SYSCALL(x); ret +#define PSEUDO(x,y) ENTRY(x); movl $(SYS_ ## y),%eax; int $0x80; ret + +#else /* !__STDC__ */ + #define SYSCALL(x) .text; .align 2; 2: jmp PIC_PLT(cerror); ENTRY(x); movl $(SYS_/**/x),%eax; int $0x80; jc 2b #define RSYSCALL(x) SYSCALL(x); ret #define PSEUDO(x,y) ENTRY(x); movl $(SYS_/**/y),%eax; int $0x80; ret -#define CALL(x,y) call PIC_PLT(_/**/y); addl $4*x,%esp + +#endif .globl cerror |