diff options
| author | Roland McGrath <roland@gnu.org> | 1991-06-26 16:16:30 +0000 |
|---|---|---|
| committer | Roland McGrath <roland@gnu.org> | 1991-06-26 16:16:30 +0000 |
| commit | 18055ea85622d0914de03d3cf889b7d30f7faf55 (patch) | |
| tree | 1ff2d76c1179b0e486f60e309c35b75055b1a89a | |
| parent | 1b04525160d85abcda82d7ae0f5194f895d06fda (diff) | |
| download | glibc-18055ea85622d0914de03d3cf889b7d30f7faf55.tar.xz glibc-18055ea85622d0914de03d3cf889b7d30f7faf55.zip | |
Formerly unix/bsd/hp/m68k/sysdep.h.~22~
| -rw-r--r-- | sysdeps/unix/bsd/hp/m68k/sysdep.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sysdeps/unix/bsd/hp/m68k/sysdep.h b/sysdeps/unix/bsd/hp/m68k/sysdep.h index 4bcb7bd3a5..e02e5af50a 100644 --- a/sysdeps/unix/bsd/hp/m68k/sysdep.h +++ b/sysdeps/unix/bsd/hp/m68k/sysdep.h @@ -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, Cambridge, MA 02139, USA. */ +/* This code wants to be run through m4. */ + #include <sysdeps/unix/sysdep.h> +#define POUND(foo) (@@@Hash-Here@@@)foo + #ifdef __STDC__ #define ENTRY(name) \ .globl _##name; \ @@ -32,25 +36,21 @@ Cambridge, MA 02139, USA. */ #ifdef __STDC__ #define PSEUDO(name, syscall_name) \ - .set sysno, SYS_##syscall_name; \ - .set zero, 0; \ .even; \ .globl syscall_error; \ error: jmp syscall_error; \ - ENTRY (name): \ - movel sysno, d0; \ - trap zero; \ + ENTRY (name) \ + movel POUND(SYS_##syscall_name), d0; \ + trap POUND(0); \ bcs error #else #define PSEUDO(name, syscall_name) \ - .set sysno, SYS_/**/syscall_name; \ - .set zero, 0; \ .even; \ .globl syscall_error; \ error: jmp syscall_error; \ ENTRY (name) \ - movel sysno, d0; \ - trap zero; \ + movel POUND(SYS_/**/syscall_name), d0; \ + trap POUND(0); \ bcs error #endif |
