diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/vax/include/asm.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/vax/include/asm.h b/sys/arch/vax/include/asm.h index 6b6345ae5ff..aef8f8f2f23 100644 --- a/sys/arch/vax/include/asm.h +++ b/sys/arch/vax/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.8 2003/06/02 23:27:57 millert Exp $ */ +/* $OpenBSD: asm.h,v 1.9 2008/05/21 20:33:39 miod Exp $ */ /* $NetBSD: asm.h,v 1.9 1999/01/15 13:31:28 bouyer Exp $ */ /* * Copyright (c) 1982, 1993 @@ -76,10 +76,12 @@ # endif #endif +#define _ALTENTRY(x) \ + .globl x; .type x,@function; x: #define _ENTRY(x, regs) \ - .text; _ALIGN_TEXT; .globl x; .type x,@function; x: .word regs + .text; _ALIGN_TEXT; _ALTENTRY(x) .word regs -#ifdef GPROF +#if defined(PROF) || defined(GPROF) # ifdef __ELF__ # define _PROF_PROLOGUE \ .data; 1:; .long 0; .text; moval 1b,r0; jsb _ASM_LABEL(__mcount) @@ -95,7 +97,7 @@ #define NENTRY(x, regs) _ENTRY(_C_LABEL(x), regs) #define ASENTRY(x, regs) _ENTRY(_ASM_LABEL(x), regs); _PROF_PROLOGUE -#define ALTENTRY(x) .globl _C_LABEL(x); _C_LABEL(x): +#define ALTENTRY(x) _ALTENTRY(_C_LABEL(x)) #define RCSID(x) .text; .asciz x #ifdef __ELF__ |