mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
Formerly unix/bsd/sony/newsos/m68k/sysdep.h.~4~
This commit is contained in:
parent
766f5a1716
commit
8cf99cec86
@ -39,23 +39,14 @@ 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) \
|
||||
#define DO_CALL(syscall, args) \
|
||||
movel syscall, d0; \
|
||||
linkw fp, POUND(0); \
|
||||
movel POUND(SYS_##syscall_name), d0; \
|
||||
trap POUND(0); \
|
||||
unlk fp; \
|
||||
bcs error
|
||||
#else
|
||||
#define DO_CALL(syscall_name, args) \
|
||||
linkw fp, POUND(0); \
|
||||
movel POUND(SYS_/**/syscall_name), d0; \
|
||||
trap POUND(0); \
|
||||
unlk fp; \
|
||||
bcs error
|
||||
#endif
|
||||
|
||||
#define ret rts
|
||||
#define r0 d0
|
||||
|
Loading…
Reference in New Issue
Block a user