From 0cd3f0fdd2dd9a158fa48581a9b10764bf6fd6e5 Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 20 Dec 1993 09:08:11 +0000 Subject: [PATCH] Remove some things which should not be here. --- sys/arch/i386/include/cpufunc.h | 53 ++------------------------------- 1 file changed, 2 insertions(+), 51 deletions(-) diff --git a/sys/arch/i386/include/cpufunc.h b/sys/arch/i386/include/cpufunc.h index d21270769044..dcd20faa0604 100644 --- a/sys/arch/i386/include/cpufunc.h +++ b/sys/arch/i386/include/cpufunc.h @@ -2,14 +2,12 @@ * Functions to provide access to special i386 instructions. * XXX - bezillions more are defined in locore.s but are not declared anywhere. * - * $Id: cpufunc.h,v 1.2 1993/08/02 17:52:24 mycroft Exp $ + * $Id: cpufunc.h,v 1.3 1993/12/20 09:08:11 mycroft Exp $ */ #include #include -#ifdef __GNUC__ - static __inline int bdb(void) { extern int bdb_exists; @@ -32,53 +30,6 @@ enable_intr(void) __asm __volatile("sti"); } -/* - * This roundabout method of returning a u_char helps stop gcc-1.40 from - * generating unnecessary movzbl's. - */ -#define inb(port) ((u_char) u_int_inb(port)) - -static __inline u_int -u_int_inb(u_int port) -{ - u_char data; - /* - * We use %%dx and not %1 here because i/o is done at %dx and not at - * %edx, while gcc-2.2.2 generates inferior code (movw instead of movl) - * if we tell it to load (u_short) port. - */ - __asm __volatile("inb %%dx,%0" : "=a" (data) : "d" (port)); - return data; -} - -static __inline void -outb(u_int port, u_char data) -{ - register u_char al asm("ax"); - - al = data; /* help gcc-1.40's register allocator */ - __asm __volatile("outb %0,%%dx" : : "a" (al), "d" (port)); -} - -#else /* not __GNUC__ */ - -int bdb __P((void)); -void disable_intr __P((void)); -void enable_intr __P((void)); -u_char inb __P((u_int port)); -void outb __P((u_int port, u_int data)); /* XXX - incompat */ - -#endif /* __GNUC__ */ - -#define really_u_int int /* XXX */ -#define really_void int /* XXX */ - -void load_cr0 __P((u_int cr0)); -really_u_int rcr0 __P((void)); - #ifdef notyet -really_void setidt __P((int idx, /*XXX*/caddr_t func, int typ, int dpl)); +void setidt __P((int idx, /*XXX*/caddr_t func, int typ, int dpl)); #endif - -#undef really_u_int -#undef really_void