diff options
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/include/profile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h index 7330ae080c1c..bffa0b7992d6 100644 --- a/sys/amd64/include/profile.h +++ b/sys/amd64/include/profile.h @@ -94,14 +94,14 @@ mcount() \ * \ * selfpc = pc pushed by call to mcount \ */ \ - asm("movq 8(%%rbp),%0" : "=r" (selfpc)); \ + __asm("movq 8(%%rbp),%0" : "=r" (selfpc)); \ /* \ * frompc = pc pushed by call to mcount's caller. \ * The caller's stack frame has already been built, so %ebp is \ * the caller's frame pointer. The caller's raddr is in the \ * caller's frame following the caller's caller's frame pointer.\ */ \ - asm("movq (%%rbp),%0" : "=r" (frompc)); \ + __asm("movq (%%rbp),%0" : "=r" (frompc)); \ frompc = ((uintfptr_t *)frompc)[1]; \ _mcount(frompc, selfpc); \ } |
