~kris/9p

9hist

21ca4819872bc1c8ea8a99829dfcf984f50e819c — David du Colombier 24 years ago 0d94198
Plan 9 from Bell Labs 2001-11-02
1 files changed, 5 insertions(+), 0 deletions(-)

M pc/devlml.c
M pc/devlml.c => pc/devlml.c +5 -0
@@ 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");