Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/isa don't bother providing duplicate code for ...



details:   https://anonhg.NetBSD.org/src/rev/f0b88039a24e
branches:  trunk
changeset: 510024:f0b88039a24e
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu May 17 16:35:06 2001 +0000

description:
don't bother providing duplicate code for {read,write}_eflags() since it's in cpufuncs.h anyway

diffstat:

 sys/arch/i386/isa/npx.c |  7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diffs (21 lines):

diff -r 7f2a2a15bc46 -r f0b88039a24e sys/arch/i386/isa/npx.c
--- a/sys/arch/i386/isa/npx.c   Thu May 17 14:53:54 2001 +0000
+++ b/sys/arch/i386/isa/npx.c   Thu May 17 16:35:06 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npx.c,v 1.75 2001/04/26 17:56:37 thorpej Exp $ */
+/*     $NetBSD: npx.c,v 1.76 2001/05/17 16:35:06 lukem Exp $   */
 
 #if 0
 #define IPRINTF(x)     printf x
@@ -99,11 +99,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)
 



Home | Main Index | Thread Index | Old Index