From f49d31942cf21d6d0e1a31f30776507cbe216638 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Fri, 24 Oct 2003 09:03:21 +0000 Subject: No need to have several implementations of {read,write}_eflags(), put it to cpufunc.h. ok weingart@ tedu@ --- sys/arch/i386/isa/npx.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/arch/i386/isa') 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) -- cgit v1.2.3