diff options
author | 2013-11-16 21:00:02 +0000 | |
---|---|---|
committer | 2013-11-16 21:00:02 +0000 | |
commit | 1d478a2238c6b16a76b60386cec996ffe001c2bc (patch) | |
tree | 4cdc803a023a71d345b7b41b98b8420f9c8a4948 /sys | |
parent | Fix msgbuf_write() usage. (diff) | |
download | wireguard-openbsd-1d478a2238c6b16a76b60386cec996ffe001c2bc.tar.xz wireguard-openbsd-1d478a2238c6b16a76b60386cec996ffe001c2bc.zip |
Copied from amd64..
Use an explicit suffix for the "fld" instruction to shut up clang. The correct
instruction is fldl since we try to load a double-precision value.
GCC actually gets it wrong and emits "flds" (which is harmless).
ok guenther@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/isa/npx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c index db34f27fb6a..6ea986097f0 100644 --- a/sys/arch/i386/isa/npx.c +++ b/sys/arch/i386/isa/npx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npx.c,v 1.58 2013/05/08 15:36:30 tedu Exp $ */ +/* $OpenBSD: npx.c,v 1.59 2013/11/16 21:00:02 brad Exp $ */ /* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */ #if 0 @@ -688,7 +688,7 @@ npxdna_xmm(struct cpu_info *ci) * thus leaking other process's execution history. */ fnclex(); - __asm __volatile("ffree %%st(7)\n\tfld %0" : : "m" (zero)); + __asm __volatile("ffree %%st(7)\n\tfldl %0" : : "m" (zero)); fxrstor(&sfp->sv_xmm); } |