summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-08-27 08:26:16 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-08-27 08:26:16 +0000
commit8bdb5c76808b8fd3ce54b16945dff6706f9fb79c (patch)
treefacd554a8f39707d7650f1f0f804d3d716e2f743
parent643a03d5ac6ec220f395c8d21dff456190abd253 (diff)
Provide ENTRY_NB() for i386
ok guenther
-rw-r--r--sys/arch/i386/include/asm.h9
1 files 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))