summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/debug.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
commitd6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch)
treeece253b876159b39c620e62b6c9b1174642e070e /sys/arch/i386/isa/debug.h
initial import of NetBSD tree
Diffstat (limited to 'sys/arch/i386/isa/debug.h')
-rw-r--r--sys/arch/i386/isa/debug.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/arch/i386/isa/debug.h b/sys/arch/i386/isa/debug.h
new file mode 100644
index 00000000000..be0eee9959a
--- /dev/null
+++ b/sys/arch/i386/isa/debug.h
@@ -0,0 +1,24 @@
+/* $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