summaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2003-06-02 00:29:35 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2003-06-02 00:29:35 +0000
commit69bb404192e2264cf254d37fec55e35b3a1c958c (patch)
tree62a2055da12e0d8ba0023ed08bbe777b06636b6a /sys/amd64
parent778f8875c7422e5a3bf5e65e8739f940300eec1a (diff)
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/include/profile.h4
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); \
}