From: Philip Homburg Date: Thu, 12 Jan 2006 14:41:40 +0000 (+0000) Subject: Print masked IRQs. X-Git-Tag: v3.1.2a~454 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.html?a=commitdiff_plain;h=21163c8da2380d48b5d2bf38cd570ac7f01817c9;p=minix.git Print masked IRQs. --- diff --git a/servers/is/dmp_kernel.c b/servers/is/dmp_kernel.c index 6b564d686..12ae2aef8 100644 --- a/servers/is/dmp_kernel.c +++ b/servers/is/dmp_kernel.c @@ -133,6 +133,7 @@ PUBLIC void irqtab_dmp() { int i,r; struct irq_hook irq_hooks[NR_IRQ_HOOKS]; + int irq_actids[NR_IRQ_VECTORS]; struct irq_hook *e; /* irq tab entry */ char *irq[] = { "clock", /* 00 */ @@ -157,6 +158,15 @@ PUBLIC void irqtab_dmp() report("IS","warning: couldn't get copy of irq hooks", r); return; } + if ((r = sys_getirqactids(irq_actids)) != OK) { + report("IS","warning: couldn't get copy of irq mask", r); + return; + } + +#if 0 + for (i= 0; iproc_nr); printf(" %9.9s (%02d) ", irq[e->irq], e->irq); printf(" %s", (e->policy & IRQ_REENABLE) ? "reenable" : " - "); - printf(" %d\n", e->notify_id); + printf(" %d", e->notify_id); + if (irq_actids[e->irq] & (1 << i)) + printf("masked"); + printf("\n"); } printf("\n"); }