summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/debug.h
blob: be0eee9959ac11dc3513344321832bd9acb2d6e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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