summaryrefslogtreecommitdiff
path: root/sys/arch/sh
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/sh
parentfe69b4b73b00ffce54362518f740bf9540854a80 (diff)
Unbreak profiling assembly functions in userland by defining the
correct prologue if compiled with -DPROF. ok deraadt@
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/include/asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sh/include/asm.h b/sys/arch/sh/include/asm.h
index 3429ba67bc8..01468d29e7b 100644
--- a/sys/arch/sh/include/asm.h
+++ b/sys/arch/sh/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.5 2016/05/27 16:32:38 deraadt Exp $ */
+/* $OpenBSD: asm.h,v 1.6 2017/06/23 09:55:10 mpi Exp $ */
/* $NetBSD: asm.h,v 1.25 2006/01/20 22:02:40 christos Exp $ */
/*-
@@ -61,7 +61,7 @@
.type x,@function ;\
x:
-#ifdef GPROF
+#if defined(PROF) || defined(GPROF)
#define _PROF_PROLOGUE \
mov.l 1f,r1 ; \
mova 2f,r0 ; \