summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2022-01-01 23:47:15 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2022-01-01 23:47:15 +0000
commit3e049e7efbe8faf255ec296f1178c1c9ad9a695f (patch)
treeae32310391fe1a97ae2944bb0fc4409ee5dff6f8 /sys/arch/sparc64
parent40cde7d140c052d443457fe79ea1818d4d673234 (diff)
Add ENTRY_NB() macro for doing an ASM function entry without setting
the binding to global (NB == "no binding"), as clang 13 is now warning about changing the binding from global to weak. This first pass does amd64 and sparc64 and pulls DEFS.h out of the per-arch directory to a common directory; others to follow ok kettenis@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/include/asm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sparc64/include/asm.h b/sys/arch/sparc64/include/asm.h
index 45c79b88aa6..c94c4d12fcc 100644
--- a/sys/arch/sparc64/include/asm.h
+++ b/sys/arch/sparc64/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.13 2017/06/29 17:36:16 deraadt Exp $ */
+/* $OpenBSD: asm.h,v 1.14 2022/01/01 23:47:14 guenther Exp $ */
/* $NetBSD: asm.h,v 1.15 2000/08/02 22:24:39 eeh Exp $ */
/*
@@ -78,8 +78,9 @@
#define FTYPE(x) .type x,@function
#define OTYPE(x) .type x,@object
-#define _ENTRY(name) \
- .align 4; .globl name; .proc 1; FTYPE(name); name:
+#define _ENTRY_NB(name) \
+ .align 4; .proc 1; FTYPE(name); name:
+#define _ENTRY(name) .globl name; _ENTRY_NB(name)
#if defined(PROF) || defined(GPROF)
#define _PROF_PROLOGUE \
@@ -92,6 +93,7 @@
#define ENTRY(name) _ENTRY(_C_LABEL(name)); _PROF_PROLOGUE
#define NENTRY(name) _ENTRY(_C_LABEL(name))
+#define ENTRY_NB(name) _ENTRY_NB(name); _PROF_PROLOGUE
#define ASENTRY(name) _ENTRY(_ASM_LABEL(name)); _PROF_PROLOGUE
#define FUNC(name) ASENTRY(name)
#define END(y) .size y, . - y