diff options
author | jkim <jkim@FreeBSD.org> | 2010-07-26 23:02:18 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-07-26 23:02:18 +0000 |
commit | b8fb3921fac102fa6e1a35746ccc9870b28b0c8b (patch) | |
tree | 8ded21daabd94b3cbb3b7fd6f8be97ca3c7c8fe7 /sys/amd64 | |
parent | 17403db2b5c9af11ec961331f05f225254625208 (diff) | |
download | FreeBSD-src-b8fb3921fac102fa6e1a35746ccc9870b28b0c8b.zip FreeBSD-src-b8fb3921fac102fa6e1a35746ccc9870b28b0c8b.tar.gz |
Add missing ldmxcsr() prototype for lint case.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/fpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index 03e3b33..20f94eb 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -72,7 +72,7 @@ __FBSDID("$FreeBSD$"); #define fnstsw(addr) __asm __volatile("fnstsw %0" : "=am" (*(addr))) #define fxrstor(addr) __asm __volatile("fxrstor %0" : : "m" (*(addr))) #define fxsave(addr) __asm __volatile("fxsave %0" : "=m" (*(addr))) -#define ldmxcsr(r) __asm __volatile("ldmxcsr %0" : : "m" (r)) +#define ldmxcsr(csr) __asm __volatile("ldmxcsr %0" : : "m" (csr)) #define start_emulating() __asm __volatile( \ "smsw %%ax; orb %0,%%al; lmsw %%ax" \ : : "n" (CR0_TS) : "ax") @@ -87,6 +87,7 @@ void fnstcw(caddr_t addr); void fnstsw(caddr_t addr); void fxsave(caddr_t addr); void fxrstor(caddr_t addr); +void ldmxcsr(u_int csr); void start_emulating(void); void stop_emulating(void); |