* from: debug.h, part of Bruce Evans interrupt code
* $Id: debug.h,v 1.2 1993/10/16 13:45:48 rgrimes Exp $
testb $SEL_RPL_MASK,4(%esp) ; \
bdb_/**/name/**/_ljmp: ; \
#define COUNT_EVENT(group, event) incl (group) + (event) * 4
#define COUNT_EVENT(group, event)
#define GREEN 0x27 /* 0x27 for true green, 0x07 for mono */
#define RED 0x47 /* 0x47 for true red, 0x70 for mono */
#define SHOW_BIT(bit) ; \
movb bit_colors(%eax),%al ; \
movb %al,bit * 2 + 1(%ebx)
#define SHOW_BITS(var, screen_offset) ; \
addl $screen_offset * 2,%ebx ; \
COUNT_EVENT(_intrcnt_show, 0) ; \
movb $RED,CLI_STI_X * 2 + 1(%eax) ; \
COUNT_EVENT(_intrcnt_show, 1) ; \
SHOW_BITS(cpl, CPL_X) ; \
COUNT_EVENT(_intrcnt_show, 2) ; \
COUNT_EVENT(_intrcnt_show, 3) ; \
SHOW_BITS(ipending, IPENDING_X)
COUNT_EVENT(_intrcnt_show, 4) ; \
movb $GREEN,CLI_STI_X * 2 + 1(%eax) ; \
#else /* not SHOW_A_LOT */
#define SHOW_CLI COUNT_EVENT(_intrcnt_show, 0)
#define SHOW_CPL COUNT_EVENT(_intrcnt_show, 1)
#define SHOW_IMEN COUNT_EVENT(_intrcnt_show, 2)
#define SHOW_IPENDING COUNT_EVENT(_intrcnt_show, 3)
#define SHOW_STI COUNT_EVENT(_intrcnt_show, 4)