diff options
author | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-04-26 03:08:44 +0000 |
---|---|---|
committer | Brandon Creighton <bjc@cvs.openbsd.org> | 2000-04-26 03:08:44 +0000 |
commit | 45a8a1573c086203341f94a21561004a4cee6da7 (patch) | |
tree | 2123e70519f5f81d6c224cab62a3447af95422c2 /sys/arch/vax/include/asm.h | |
parent | 510a16a02bcefe3e18aa4ea1df737f2cdff509e6 (diff) |
vax resurrection, part 1: sync with early-april netbsd
many changes here, notable: uvm, ansi.h, more (and cleaner) vsbus support
Diffstat (limited to 'sys/arch/vax/include/asm.h')
-rw-r--r-- | sys/arch/vax/include/asm.h | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/sys/arch/vax/include/asm.h b/sys/arch/vax/include/asm.h index 6a0000328f1..73ad088e599 100644 --- a/sys/arch/vax/include/asm.h +++ b/sys/arch/vax/include/asm.h @@ -1,5 +1,5 @@ -/* $OpenBSD: asm.h,v 1.4 1997/05/29 00:04:35 niklas Exp $ */ -/* $NetBSD: asm.h,v 1.5 1996/11/30 02:49:06 jtc Exp $ */ +/* $OpenBSD: asm.h,v 1.5 2000/04/26 03:08:40 bjc Exp $ */ +/* $NetBSD: asm.h,v 1.9 1999/01/15 13:31:28 bouyer Exp $ */ /* * Copyright (c) 1982, 1993 * The Regents of the University of California. All rights reserved. @@ -54,31 +54,46 @@ #ifdef __STDC__ #ifdef GPROF #define ENTRY(x, regs) \ - .globl _ ## x ## ; .align 2; _ ## x ## : .word regs; \ + .globl _ ## x; .type _ ## x,@function ; .align 2; _ ## x: .word regs; \ .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount #define ASENTRY(x, regs) \ - .globl x; .align 2; x ## : .word regs; \ + .globl x; .type x,@function; .align 2; x: .word regs; \ .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount #else #define ENTRY(x, regs) \ - .globl _ ## x; .align 2; _ ## x ## : .word regs + .globl _ ## x; .type _ ## x,@function; \ + .align 2; _ ## x : .word regs #define ASENTRY(x, regs) \ - .globl x; .align 2; x ## : .word regs + .globl x; .type x,@function; .align 2; x: .word regs #endif +#define ALTENTRY(x) .globl _ ## x; _ ## x: # else #ifdef GPROF #define ENTRY(x, regs) \ - .globl _/**/x; .align 2; _/**/x: .word regs; \ + .globl _/**/x; .type _/**/x,@function; .align 2; _/**/x: .word regs; \ .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount #define ASENTRY(x, regs) \ - .globl x; .align 2; x: .word regs; \ + .globl x; .type x,@function; .align 2; x: .word regs; \ .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount #else #define ENTRY(x, regs) \ - .globl _/**/x; .align 2; _/**/x: .word regs + .globl _/**/x; .type _/**/x,@function; .align 2; _/**/x: .word regs #define ASENTRY(x, regs) \ - .globl x; .align 2; x: .word regs + .globl x; .type x,@function; .align 2; x: .word regs #endif +#define ALTENTRY(x) .globl _/**/x; _/**/x: #endif +#ifdef __STDC__ +#define __STRING(x) #x +#define WARN_REFERENCES(sym,msg) \ + .stabs msg ## ,30,0,0,0 ; \ + .stabs __STRING(_ ## sym) ## ,1,0,0,0 +#else +#define __STRING(x) "x" +#define WARN_REFERENCES(sym,msg) \ + .stabs msg,30,0,0,0 ; \ + .stabs __STRING(_/**/sym),1,0,0,0 +#endif /* __STDC__ */ + #endif |