diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-15 02:33:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-15 02:33:46 +0000 |
commit | 4e5fa6064091f4f4e4bc82f8f935199314ab15f2 (patch) | |
tree | 9beba0aa475bdd31a7bddb4897cce9a3e544be8a /lib/libc/arch/vax/SYS.h | |
parent | 90c4b314e6cb11fa077ce5890bb16b8aa0288fea (diff) |
from ragge; Add defs to understand K&R cpp
Diffstat (limited to 'lib/libc/arch/vax/SYS.h')
-rw-r--r-- | lib/libc/arch/vax/SYS.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libc/arch/vax/SYS.h b/lib/libc/arch/vax/SYS.h index 8057b70a969..f39bf6f8da4 100644 --- a/lib/libc/arch/vax/SYS.h +++ b/lib/libc/arch/vax/SYS.h @@ -1,4 +1,4 @@ -/* $NetBSD: SYS.h,v 1.1 1995/04/17 12:23:34 ragge Exp $ */ +/* $NetBSD: SYS.h,v 1.2 1995/12/12 15:21:31 ragge Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -36,6 +36,20 @@ #include <sys/syscall.h> +#ifndef __STDC__ +#ifdef PROF +#define ENTRY(x) .globl _/**/x; .align 2; _/**/x/**/: .word 0; \ + .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount +#else +#define ENTRY(x) .globl _/**/x; .align 2; _/**/x/**/: .word 0 +#endif PROF +#define SYSCALL(x) err: jmp cerror; ENTRY(x); chmk $ SYS_/**/x; jcs err +#define RSYSCALL(x) SYSCALL(x); ret +#define PSEUDO(x,y) ENTRY(x); chmk $ SYS_/**/y; ret +#define CALL(x,y) calls $/**/x, _/**/y + +#else + #ifdef PROF #define ENTRY(x) .globl _ ## x; .align 2; _ ## x ## : .word 0; \ .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount @@ -46,6 +60,7 @@ #define RSYSCALL(x) SYSCALL(x); ret #define PSEUDO(x,y) ENTRY(x); chmk $ SYS_ ## y; ret #define CALL(x,y) calls $ ## x, _ ## y +#endif #define ASMSTR .asciz |