diff options
author | bde <bde@FreeBSD.org> | 1998-04-15 18:58:09 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-04-15 18:58:09 +0000 |
commit | 23694650fbdb60acd84a172cb58580fac9ea8b14 (patch) | |
tree | 731cc7cdadf8a04a86c7b45f0339984ee4afd5c9 /sys | |
parent | eb926b31caa43e1019410739686d348df06d65ab (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/amd64/fpu.c | 12 | ||||
-rw-r--r-- | sys/amd64/isa/npx.c | 12 | ||||
-rw-r--r-- | sys/i386/isa/npx.c | 12 |
3 files changed, 18 insertions, 18 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index 6bc1871..337df62 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.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 diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c index 6bc1871..337df62 100644 --- a/sys/amd64/isa/npx.c +++ b/sys/amd64/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 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 |