summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/include/asm.h')
-rw-r--r--sys/arch/amd64/include/asm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/amd64/include/asm.h b/sys/arch/amd64/include/asm.h
index 110beb7c5c3..0ef11752c02 100644
--- a/sys/arch/amd64/include/asm.h
+++ b/sys/arch/amd64/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.13 2018/07/01 16:02:12 guenther Exp $ */
+/* $OpenBSD: asm.h,v 1.14 2018/07/10 16:01:26 deraadt Exp $ */
/* $NetBSD: asm.h,v 1.2 2003/05/02 18:05:47 yamt Exp $ */
/*-
@@ -66,6 +66,8 @@
#define _ALIGN_TRAPS .align 16, 0xcc
#define _ENTRY(x) \
+ .text; _ALIGN_TRAPS; .globl x; .type x,@function; x:
+#define _NENTRY(x) \
.text; _ALIGN_TEXT; .globl x; .type x,@function; x:
#ifdef _KERNEL
@@ -137,8 +139,8 @@
#endif
#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
-#define NENTRY(y) _ENTRY(_C_LABEL(y))
-#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
+#define NENTRY(y) _NENTRY(_C_LABEL(y))
+#define ASENTRY(y) _NENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
#define END(y) .size y, . - y
#define STRONG_ALIAS(alias,sym) \