1994-04-02 12:04:26 +04:00
|
|
|
/* $Id: debug.h,v 1.5 1994/04/02 08:04:31 mycroft Exp $ */
|
1993-06-06 08:14:01 +04:00
|
|
|
|
1993-07-03 13:43:11 +04:00
|
|
|
#ifdef INTR_DEBUG
|
|
|
|
#define INTRLOCAL(label) label
|
|
|
|
#else /* not INTR_DEBUG */
|
|
|
|
#define INTRLOCAL(label) L/**/label
|
|
|
|
#endif /* INTR_DEBUG */
|
|
|
|
|
1993-06-06 08:14:01 +04:00
|
|
|
#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
|