Formerly unix/bsd/sun/m68k/sysdep.h.~12~

This commit is contained in:
Roland McGrath 1992-03-11 02:10:11 +00:00
parent 3cf947268d
commit 030ac448d8

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc. /* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -16,8 +16,12 @@ License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave, not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */ Cambridge, MA 02139, USA. */
/* This code wants to be run through m4. */
#include <sysdeps/unix/sysdep.h> #include <sysdeps/unix/sysdep.h>
#define POUND(foo) (@@@Hash-Here@@@)foo
#ifdef __STDC__ #ifdef __STDC__
#define ENTRY(name) \ #define ENTRY(name) \
.globl _##name; \ .globl _##name; \
@ -32,26 +36,22 @@ Cambridge, MA 02139, USA. */
#ifdef __STDC__ #ifdef __STDC__
#define PSEUDO(name, syscall_name) \ #define PSEUDO(name, syscall_name) \
.set sysno, SYS_##syscall_name; \
.set zero, 0; \
.even; \ .even; \
.globl syscall_error; \ .globl syscall_error; \
error: jmp syscall_error; \ error: jmp syscall_error; \
ENTRY (name) \ ENTRY (name) \
pea sysno; \ pea SYS_##syscall_name; \
trap zero; \ trap POUND(0); \
bcs error \ bcs error
#else #else
#define PSEUDO(name, syscall_name) \ #define PSEUDO(name, syscall_name) \
.set sysno, SYS_/**/syscall_name; \
.set zero, 0; \
.even; \ .even; \
.globl syscall_error; \ .globl syscall_error; \
error: jmp syscall_error; \ error: jmp syscall_error; \
ENTRY (name) \ ENTRY (name) \
pea sysno; \ pea SYS_/**/syscall_name; \
trap zero; \ trap POUND(0); \
bcs error \ bcs error
#endif #endif
#define ret rts #define ret rts