Formerly unix/bsd/hp/m68k/sysdep.h.~26~

This commit is contained in:
Roland McGrath 1993-11-09 12:19:23 +00:00
parent 53b4c8b8a4
commit 0a255fb6c1

View File

@ -39,19 +39,12 @@ Cambridge, MA 02139, USA. */
.globl syscall_error; \
error: jmp syscall_error; \
ENTRY (name) \
DO_CALL (syscall_name, args)
DO_CALL (POUND (SYS_ify (syscall_name), args)
#ifdef __STDC__
#define DO_CALL(syscall_name, args) \
movel POUND(SYS_##syscall_name), d0; \
#define DO_CALL(syscall, args) \
movel syscall, d0; \
trap POUND(0); \
bcs error
#else
#define DO_CALL(syscall_name, args) \
movel POUND(SYS_/**/syscall_name), d0; \
trap POUND(0); \
bcs error
#endif
#define ret rts
#define r0 d0