diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-06-23 09:55:11 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-06-23 09:55:11 +0000 |
commit | 73922875bbccc65896ea40917fc8ece33269cea6 (patch) | |
tree | ba6d45f85e2fabfed83d27d4be7879e3238d9c16 /sys/arch/amd64/include | |
parent | fe69b4b73b00ffce54362518f740bf9540854a80 (diff) |
Unbreak profiling assembly functions in userland by defining the
correct prologue if compiled with -DPROF.
ok deraadt@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/asm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/asm.h b/sys/arch/amd64/include/asm.h index 989f98e5fc5..26156035ca3 100644 --- a/sys/arch/amd64/include/asm.h +++ b/sys/arch/amd64/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.6 2015/05/13 05:29:57 uebayasi Exp $ */ +/* $OpenBSD: asm.h,v 1.7 2017/06/23 09:55:10 mpi Exp $ */ /* $NetBSD: asm.h,v 1.2 2003/05/02 18:05:47 yamt Exp $ */ /*- @@ -85,7 +85,7 @@ #endif -#ifdef GPROF +#if defined(PROF) || defined(GPROF) # define _PROF_PROLOGUE \ pushq %rbp; leaq (%rsp),%rbp; call PIC_PLT(__mcount); popq %rbp #else |