summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/profile.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-06-02 00:29:35 +0000
committerobrien <obrien@FreeBSD.org>2003-06-02 00:29:35 +0000
commitf00e6d17daded665d13ee69b0ad13942b8ed294f (patch)
tree62a2055da12e0d8ba0023ed08bbe777b06636b6a /sys/amd64/include/profile.h
parent4bfad7cc80143b1753e87a4f92a13a50710a8df3 (diff)
downloadFreeBSD-src-f00e6d17daded665d13ee69b0ad13942b8ed294f.zip
FreeBSD-src-f00e6d17daded665d13ee69b0ad13942b8ed294f.tar.gz
Use C99 compatable asm statements.
Diffstat (limited to 'sys/amd64/include/profile.h')
-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 7330ae0..bffa0b7 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); \
}
OpenPOWER on IntegriCloud