diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-10-24 09:03:21 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-10-24 09:03:21 +0000 |
commit | f49d31942cf21d6d0e1a31f30776507cbe216638 (patch) | |
tree | 1a3472bcfc925e0f144569a2e194956ba5dd51a4 /sys/arch/i386/isa | |
parent | 45a92588bf4369748a3b9d7b473fae9ac8a1b532 (diff) |
No need to have several implementations of {read,write}_eflags(),
put it to cpufunc.h.
ok weingart@ tedu@
Diffstat (limited to 'sys/arch/i386/isa')
-rw-r--r-- | sys/arch/i386/isa/npx.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c index a8cde08d0ef..8a78c542c9c 100644 --- a/sys/arch/i386/isa/npx.c +++ b/sys/arch/i386/isa/npx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npx.c,v 1.28 2003/07/25 18:31:25 jason Exp $ */ +/* $OpenBSD: npx.c,v 1.29 2003/10/24 09:03:20 grange Exp $ */ /* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */ #if 0 @@ -93,11 +93,6 @@ #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() ({register u_long ef; \ - __asm("pushfl; popl %0" : "=r" (ef)); \ - ef;}) -#define write_eflags(x) ({register u_long ef = (x); \ - __asm("pushl %0; popfl" : : "r" (ef));}) #define clts() __asm("clts") #define stts() lcr0(rcr0() | CR0_TS) |