From e9690b86ff2ec723c51efaddcb251efdd1d20bad Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 27 Aug 2022 08:26:15 +0000 Subject: [PATCH] Provide ENTRY_NB() for i386 ok guenther --- sys/arch/i386/include/asm.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/include/asm.h b/sys/arch/i386/include/asm.h index bed16be391f..baa6dfec34d 100644 --- a/sys/arch/i386/include/asm.h +++ b/sys/arch/i386/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.16 2018/04/11 15:44:08 bluhm Exp $ */ +/* $OpenBSD: asm.h,v 1.17 2022/08/27 08:26:15 tb Exp $ */ /* $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $ */ /*- @@ -93,8 +93,10 @@ # define _ALIGN_TEXT .align 2, 0x90 #endif -#define _ENTRY(x) \ - .text; _ALIGN_TEXT; .globl x; .type x,@function; x: +/* NB == No Binding: use .globl or .weak as necessary */ +#define _ENTRY_NB(x) \ + .text; _ALIGN_TEXT; .type x,@function; x: +#define _ENTRY(x) .globl x; _ENTRY_NB(x) #ifdef _KERNEL #define KUTEXT .section .kutext, "ax" @@ -118,6 +120,7 @@ #endif #define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE +#define ENTRY_NB(y) _ENTRY_NB(y); _PROF_PROLOGUE #define NENTRY(y) _ENTRY(_C_LABEL(y)) #define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE #define NASENTRY(y) _ENTRY(_ASM_LABEL(y)) -- 2.20.1