summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/npx.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-04-15 18:58:09 +0000
committerbde <bde@FreeBSD.org>1998-04-15 18:58:09 +0000
commit23694650fbdb60acd84a172cb58580fac9ea8b14 (patch)
tree731cc7cdadf8a04a86c7b45f0339984ee4afd5c9 /sys/i386/isa/npx.c
parenteb926b31caa43e1019410739686d348df06d65ab (diff)
downloadFreeBSD-src-23694650fbdb60acd84a172cb58580fac9ea8b14.zip
FreeBSD-src-23694650fbdb60acd84a172cb58580fac9ea8b14.tar.gz
Finish supporting compiling with `gcc -ansi'. Fix missing `volatile's
in __asm() statements while I'm here.
Diffstat (limited to 'sys/i386/isa/npx.c')
-rw-r--r--sys/i386/isa/npx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index 6bc1871..337df62 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)npx.c 7.2 (Berkeley) 5/12/91
- * $Id: npx.c,v 1.57 1998/02/15 06:25:26 bde Exp $
+ * $Id: npx.c,v 1.58 1998/04/06 15:50:29 peter Exp $
*/
#include "npx.h"
@@ -103,9 +103,9 @@ int i586_copyout __P((const void *kaddr, void *udaddr, size_t len));
#define fnclex() __asm("fnclex")
#define fninit() __asm("fninit")
#define fnop() __asm("fnop")
-#define fnsave(addr) __asm("fnsave %0" : "=m" (*(addr)))
-#define fnstcw(addr) __asm("fnstcw %0" : "=m" (*(addr)))
-#define fnstsw(addr) __asm("fnstsw %0" : "=m" (*(addr)))
+#define fnsave(addr) __asm __volatile("fnsave %0" : "=m" (*(addr)))
+#define fnstcw(addr) __asm __volatile("fnstcw %0" : "=m" (*(addr)))
+#define fnstsw(addr) __asm __volatile("fnstsw %0" : "=m" (*(addr)))
#define fp_divide_by_0() __asm("fldz; fld1; fdiv %st,%st(1); fnop")
#define frstor(addr) __asm("frstor %0" : : "m" (*(addr)))
#define start_emulating() __asm("smsw %%ax; orb %0,%%al; lmsw %%ax" \
@@ -164,7 +164,7 @@ static volatile u_int npx_traps_while_probing;
*/
inthand_t probeintr;
-asm
+__asm
("
.text
.p2align 2,0x90
@@ -182,7 +182,7 @@ asm
");
inthand_t probetrap;
-asm
+__asm
("
.text
.p2align 2,0x90
OpenPOWER on IntegriCloud