Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>

* sysdeps/unix/alpha/sysdep.h: Include regdef.h.  Define LEAF macro
	to simplify declaration of leaf functions.
This commit is contained in:
Roland McGrath 1996-05-23 05:32:14 +00:00
parent 24c177a079
commit 92172913d2

View File

@ -20,6 +20,28 @@ Cambridge, MA 02139, USA. */
#ifdef ASSEMBLER
#ifdef __linux__
# include <alpha/regdef.h>
#else
# include <regdef.h>
#endif
#ifdef __STDC__
#define LEAF(name, framesize) \
.globl name; \
.align 3; \
.ent name, 0; \
name##: \
.frame sp, framesize, ra
#else
#define LEAF(name, framesize) \
.globl name; \
.align 3; \
.ent name, 0; \
name/**/: \
.frame sp, framesize, ra
#endif
#ifdef __STDC__
#define ENTRY(name) \
.globl name; \
@ -47,8 +69,7 @@ Cambridge, MA 02139, USA. */
\
1: br gp, 2f; \
2: ldgp gp, 0(gp); \
lda pv,syscall_error; \
jmp zero,(pv); \
jmp zero, syscall_error; \
\
name##: \
ldi v0, SYS_ify(syscall_name); \
@ -65,8 +86,7 @@ name##: \
\
1: br gp, 2f; \
2: ldgp gp, 0(gp); \
lda pv,syscall_error; \
jmp zero,(pv); \
jmp zero, syscall_error; \
\
name/**/: \
ldi v0, SYS_ify(syscall_name); \