diff options
author | dim <dim@FreeBSD.org> | 2010-11-25 18:14:18 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2010-11-25 18:14:18 +0000 |
commit | 293f476720a15dfcd8a860e0c997ffd887987a35 (patch) | |
tree | 78c9adc51c5002e4e5985a24260666a71cfb8eca /sys/i386/isa | |
parent | f52e71a0c588de5c2713d90077ac3a595f57f431 (diff) | |
download | FreeBSD-src-293f476720a15dfcd8a860e0c997ffd887987a35.zip FreeBSD-src-293f476720a15dfcd8a860e0c997ffd887987a35.tar.gz |
Use unambiguous inline assembly to load a float variable. GNU as
silently converts 'fld' to 'flds', without taking the actual variable
type into account (!), but clang's integrated assembler rightfully
complains about it.
Discussed with: cperciva
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/npx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index f8dc11c..8d37562 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -938,7 +938,7 @@ fpu_clean_state(void) * the x87 stack, but we don't care since we're about to call * fxrstor() anyway. */ - __asm __volatile("ffree %%st(7); fld %0" : : "m" (dummy_variable)); + __asm __volatile("ffree %%st(7); flds %0" : : "m" (dummy_variable)); } #endif /* CPU_ENABLE_SSE */ |