diff options
| author | Bruce Evans <bde@FreeBSD.org> | 2006-10-28 13:12:06 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 2006-10-28 13:12:06 +0000 |
| commit | 91b4d1bfc23769e27e10bfab034632291d339727 (patch) | |
| tree | 70ed94756d403036e926a98315c25aef0be36e53 /sys/amd64/include/profile.h | |
| parent | 0f0eddbb01a4bc825e422d26f82003b4f2821bdc (diff) | |
Notes
Diffstat (limited to 'sys/amd64/include/profile.h')
| -rw-r--r-- | sys/amd64/include/profile.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h index 6f66e452aa53..0083091daf2c 100644 --- a/sys/amd64/include/profile.h +++ b/sys/amd64/include/profile.h @@ -114,11 +114,11 @@ static void _mcount #ifdef __GNUCLIKE_ASM #define MCOUNT __asm(" \n\ + .text \n\ + .p2align 4,0x90 \n\ .globl .mcount \n\ - .type .mcount @function \n\ + .type .mcount,@function \n\ .mcount: \n\ - pushq %rbp \n\ - movq %rsp,%rbp \n\ pushq %rdi \n\ pushq %rsi \n\ pushq %rdx \n\ @@ -126,9 +126,8 @@ static void _mcount pushq %r8 \n\ pushq %r9 \n\ pushq %rax \n\ - movq 8(%rbp),%rsi \n\ - movq (%rbp),%rdi \n\ - movq 8(%rdi),%rdi \n\ + movq 8(%rbp),%rdi \n\ + movq 7*8(%rsp),%rsi \n\ call _mcount \n\ popq %rax \n\ popq %r9 \n\ @@ -137,7 +136,6 @@ static void _mcount popq %rdx \n\ popq %rsi \n\ popq %rdi \n\ - leave \n\ ret \n\ .size .mcount, . - .mcount"); #if 0 |
