diff options
author | bde <bde@FreeBSD.org> | 2006-10-28 07:59:11 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-10-28 07:59:11 +0000 |
commit | 4aff3f8e666d40f068d978f4075f18f3acf222ef (patch) | |
tree | cbf5cb930de7ff4918dfcf29a207213e026173d5 /sys | |
parent | d8b61e2360f8627795ba6d4ccdabca959af5bfbf (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/include/profile.h | 2 | ||||
-rw-r--r-- | sys/i386/include/profile.h | 2 |
2 files changed, 2 insertions, 2 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:" \ diff --git a/sys/i386/include/profile.h b/sys/i386/include/profile.h index 06418eb..ba40512 100644 --- a/sys/i386/include/profile.h +++ b/sys/i386/include/profile.h @@ -61,7 +61,7 @@ #define MCOUNT_OVERHEAD(label) \ __asm __volatile("pushl %0; call __mcount; popl %%ecx" \ : \ - : "i" (profil) \ + : "i" (label) \ : "ax", "dx", "cx", "memory") #define MEXITCOUNT_OVERHEAD() \ __asm __volatile("call .mexitcount; 1:" \ |