From 21ca4819872bc1c8ea8a99829dfcf984f50e819c Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 2 Nov 2001 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2001-11-02 --- pc/devlml.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pc/devlml.c b/pc/devlml.c index bddbf1feb25df6ce72392416814fe0f716d32a68..208077667c9577e6408cfc8e5a5f49a2e6ef5ab5 100644 --- a/pc/devlml.c +++ b/pc/devlml.c @@ -141,6 +141,7 @@ lmlreset(void) void *grabbuf; ulong grablen; ISAConf isa; + uchar ipin, intl; if(isaconfig("lml", 0, &isa) == 0) { if (debug) print("lml not in plan9.ini\n"); @@ -150,6 +151,7 @@ lmlreset(void) if (pcidev == nil) { return; } + cdsize = CODEDATASIZE; codeData = (CodeData*)(((ulong)xalloc(cdsize+ BY2PG) + BY2PG-1) & ~(BY2PG-1)); if (codeData == nil) { @@ -216,6 +218,9 @@ lmlreset(void) return; } + iprint("%.8uX: %.8uX\n", pciBaseAddr + INTR_STAT, + *((unsigned long *)(pciBaseAddr + INTR_STAT))); + // Interrupt handler intrenable(pcidev->intl, lmlintr, nil, pcidev->tbdf, "lml");