summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-06-23 09:55:11 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-06-23 09:55:11 +0000
commit73922875bbccc65896ea40917fc8ece33269cea6 (patch)
treeba6d45f85e2fabfed83d27d4be7879e3238d9c16 /sys/arch/sparc64
parentfe69b4b73b00ffce54362518f740bf9540854a80 (diff)
Unbreak profiling assembly functions in userland by defining the
correct prologue if compiled with -DPROF. ok deraadt@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/include/asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/asm.h b/sys/arch/sparc64/include/asm.h
index ac3c003a8fb..21fda1a9c8d 100644
--- a/sys/arch/sparc64/include/asm.h
+++ b/sys/arch/sparc64/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.11 2016/09/25 14:58:00 fcambus Exp $ */
+/* $OpenBSD: asm.h,v 1.12 2017/06/23 09:55:10 mpi Exp $ */
/* $NetBSD: asm.h,v 1.15 2000/08/02 22:24:39 eeh Exp $ */
/*
@@ -81,7 +81,7 @@
#define _ENTRY(name) \
.align 4; .globl name; .proc 1; FTYPE(name); name:
-#ifdef GPROF
+#if defined(PROF) || defined(GPROF)
#define _PROF_PROLOGUE \
.data; .align 8; 1: .uaword 0; .uaword 0; \
.text; save %sp,-CC64FSZ,%sp; sethi %hi(1b),%o0; call _mcount; \