diff options
author | paul <paul@FreeBSD.org> | 1994-09-15 16:32:07 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 1994-09-15 16:32:07 +0000 |
commit | f302c712fe09d552e4b52f99faa9333d47bd5ba9 (patch) | |
tree | 9dcef2cda412c2b9e6aee794bea3feb7df61d029 /sys/amd64 | |
parent | 8c92b502be26553a5c8efed5f8a08ca339a9f834 (diff) | |
download | FreeBSD-src-f302c712fe09d552e4b52f99faa9333d47bd5ba9.zip FreeBSD-src-f302c712fe09d552e4b52f99faa9333d47bd5ba9.tar.gz |
Removed some macros that are now in cpufunc.h
Reviewed by: Bruce
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/fpu.c | 12 | ||||
-rw-r--r-- | sys/amd64/isa/npx.c | 12 |
2 files changed, 2 insertions, 22 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index fcc31ba..d071f26 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.10 1994/08/13 03:50:11 wollman Exp $ + * $Id: npx.c,v 1.11 1994/09/09 23:12:32 wollman Exp $ */ #include "npx.h" @@ -58,8 +58,6 @@ #ifdef __GNUC__ -#define disable_intr() __asm("cli") -#define enable_intr() __asm("sti") #define fldcw(addr) __asm("fldcw %0" : : "m" (*addr)) #define fnclex() __asm("fnclex") #define fninit() __asm("fninit") @@ -69,18 +67,12 @@ #define fp_divide_by_0() __asm("fldz; fld1; fdiv %st,%st(1); fwait") #define frstor(addr) __asm("frstor %0" : : "m" (*addr)) #define fwait() __asm("fwait") -#define read_eflags() ({u_long ef; \ - __asm("pushf; popl %0" : "=a" (ef)); \ - ef; }) #define start_emulating() __asm("smsw %%ax; orb %0,%%al; lmsw %%ax" \ : : "n" (CR0_TS) : "ax") #define stop_emulating() __asm("clts") -#define write_eflags(ef) __asm("pushl %0; popf" : : "a" ((u_long) ef)) #else /* not __GNUC__ */ -void disable_intr __P((void)); -void enable_intr __P((void)); void fldcw __P((caddr_t addr)); void fnclex __P((void)); void fninit __P((void)); @@ -90,10 +82,8 @@ void fnstsw __P((caddr_t addr)); void fp_divide_by_0 __P((void)); void frstor __P((caddr_t addr)); void fwait __P((void)); -u_long read_eflags __P((void)); void start_emulating __P((void)); void stop_emulating __P((void)); -void write_eflags __P((u_long ef)); #endif /* __GNUC__ */ diff --git a/sys/amd64/isa/npx.c b/sys/amd64/isa/npx.c index fcc31ba..d071f26 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.10 1994/08/13 03:50:11 wollman Exp $ + * $Id: npx.c,v 1.11 1994/09/09 23:12:32 wollman Exp $ */ #include "npx.h" @@ -58,8 +58,6 @@ #ifdef __GNUC__ -#define disable_intr() __asm("cli") -#define enable_intr() __asm("sti") #define fldcw(addr) __asm("fldcw %0" : : "m" (*addr)) #define fnclex() __asm("fnclex") #define fninit() __asm("fninit") @@ -69,18 +67,12 @@ #define fp_divide_by_0() __asm("fldz; fld1; fdiv %st,%st(1); fwait") #define frstor(addr) __asm("frstor %0" : : "m" (*addr)) #define fwait() __asm("fwait") -#define read_eflags() ({u_long ef; \ - __asm("pushf; popl %0" : "=a" (ef)); \ - ef; }) #define start_emulating() __asm("smsw %%ax; orb %0,%%al; lmsw %%ax" \ : : "n" (CR0_TS) : "ax") #define stop_emulating() __asm("clts") -#define write_eflags(ef) __asm("pushl %0; popf" : : "a" ((u_long) ef)) #else /* not __GNUC__ */ -void disable_intr __P((void)); -void enable_intr __P((void)); void fldcw __P((caddr_t addr)); void fnclex __P((void)); void fninit __P((void)); @@ -90,10 +82,8 @@ void fnstsw __P((caddr_t addr)); void fp_divide_by_0 __P((void)); void frstor __P((caddr_t addr)); void fwait __P((void)); -u_long read_eflags __P((void)); void start_emulating __P((void)); void stop_emulating __P((void)); -void write_eflags __P((u_long ef)); #endif /* __GNUC__ */ |