From aa809aac6f07723b3f67b9f44197c34bcc93a165 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 9 Apr 1993 00:56:41 +0000 Subject: [PATCH] entered into RCS --- sysdeps/unix/bsd/sequent/i386/sysdep.h | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/sysdeps/unix/bsd/sequent/i386/sysdep.h b/sysdeps/unix/bsd/sequent/i386/sysdep.h index 7a6aa0e..05fe24c 100644 --- a/sysdeps/unix/bsd/sequent/i386/sysdep.h +++ b/sysdeps/unix/bsd/sequent/i386/sysdep.h @@ -17,31 +17,21 @@ 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. */ -#include +#include /* Get the symbols for system call interrupts. */ #include - -#ifdef __STDC__ -#define ENTRY(name) \ - .globl _##name; \ - .align 4; \ - _##name##: -#else -#define ENTRY(name) \ - .globl _/**/name; \ - .align 4; \ - _/**/name/**/: -#endif /* Use the BSD versions of system calls, by setting the high 16 bits of the syscall number (see /usr/include/syscall.h). */ -#define SYS_HANDLER SYS_bsd##0000 +#define SYS_HANDLER (SYS_bsd << 16) /* Dynix uses an interrupt interface to system calls. "int $T_SVCn" are syscall interfaces for 0-6 arg functions. (see /usr/include/machine/trap.h). */ +#undef DO_CALL + #ifdef __STDC__ #define DO_CALL(syscall_name, args) \ movl $(SYS_HANDLER | SYS_##syscall_name), %eax; \ @@ -52,6 +42,7 @@ Cambridge, MA 02139, USA. */ int $T_SVC/**/args; #endif +#undef PSEUDO #define PSEUDO(name, syscall_name, args) \ .text; \ .globl syscall_error; \ @@ -81,7 +72,7 @@ Cambridge, MA 02139, USA. */ /* Dynix reverses %ecx and %edx relative to most i386 Unices. */ -#define r0 %eax /* Normal return-value register. */ +#undef r1 #define r1 %ecx /* Secondary return-value register. */ +#undef scratch #define scratch %edx /* Call-clobbered register for random use. */ -#define MOVE(x,y) movl x, y -- 2.7.4