diff options
-rw-r--r-- | sys/arch/i386/i386/locore.s | 3 | ||||
-rw-r--r-- | sys/arch/i386/include/cpufunc.h | 10 | ||||
-rw-r--r-- | sys/arch/i386/isa/debug.h | 24 |
3 files changed, 1 insertions, 36 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s index b7912d48a99..66f41ca8ede 100644 --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.29 1997/07/25 17:15:22 mickey Exp $ */ +/* $OpenBSD: locore.s,v 1.30 1997/09/11 10:45:43 deraadt Exp $ */ /* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */ /*- @@ -65,7 +65,6 @@ #include <machine/trap.h> #include <dev/isa/isareg.h> -#include <i386/isa/debug.h> #define ALIGN_DATA .align 2 #define ALIGN_TEXT .align 2,0x90 /* 4-byte boundaries, NOP-filled */ diff --git a/sys/arch/i386/include/cpufunc.h b/sys/arch/i386/include/cpufunc.h index 83147d4f268..fe8ac716e53 100644 --- a/sys/arch/i386/include/cpufunc.h +++ b/sys/arch/i386/include/cpufunc.h @@ -40,16 +40,6 @@ #include <sys/cdefs.h> #include <sys/types.h> -static __inline int bdb(void) -{ - extern int bdb_exists; - - if (!bdb_exists) - return (0); - __asm __volatile("int $3"); - return (1); -} - static __inline void invlpg(u_int addr) { diff --git a/sys/arch/i386/isa/debug.h b/sys/arch/i386/isa/debug.h deleted file mode 100644 index be0eee9959a..00000000000 --- a/sys/arch/i386/isa/debug.h +++ /dev/null @@ -1,24 +0,0 @@ -/* $NetBSD: debug.h,v 1.6 1994/10/27 04:17:06 cgd Exp $ */ - -#ifdef INTR_DEBUG -#define INTRLOCAL(label) label -#else /* not INTR_DEBUG */ -#define INTRLOCAL(label) L/**/label -#endif /* INTR_DEBUG */ - -#define BDBTRAP(name) \ - ss ; \ - cmpb $0,_bdb_exists ; \ - je 1f ; \ - testb $SEL_RPL_MASK,4(%esp) ; \ - jne 1f ; \ - ss ; \ -bdb_/**/name/**/_ljmp: ; \ - ljmp $0,$0 ; \ -1: - - .data - .globl _bdb_exists -_bdb_exists: - .long 0 - .text |