summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/profile.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-10-28 07:59:11 +0000
committerbde <bde@FreeBSD.org>2006-10-28 07:59:11 +0000
commit4aff3f8e666d40f068d978f4075f18f3acf222ef (patch)
treecbf5cb930de7ff4918dfcf29a207213e026173d5 /sys/amd64/include/profile.h
parentd8b61e2360f8627795ba6d4ccdabca959af5bfbf (diff)
downloadFreeBSD-src-4aff3f8e666d40f068d978f4075f18f3acf222ef.zip
FreeBSD-src-4aff3f8e666d40f068d978f4075f18f3acf222ef.tar.gz
In MCOUNT_OVERHEAD(label), actually use the `label' parameter. We were
still using the global label named "profil", and this worked accidentally because all callers use the same name.
Diffstat (limited to 'sys/amd64/include/profile.h')
-rw-r--r--sys/amd64/include/profile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index 44bb6e7..b13920a 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -61,7 +61,7 @@
#define MCOUNT_OVERHEAD(label) \
__asm __volatile("pushq %0; call __mcount; popq %%rcx" \
: \
- : "i" (profil) \
+ : "i" (label) \
: "ax", "dx", "cx", "di", "si", "r8", "r9", "memory")
#define MEXITCOUNT_OVERHEAD() \
__asm __volatile("call .mexitcount; 1:" \
OpenPOWER on IntegriCloud