From 7301cb4cef64f9e5a5dce29cb477688eeb4f92e7 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 6 Dec 1994 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1994-12-06 --- pc/clock.c | 1 + pc/dma.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pc/clock.c b/pc/clock.c index 2edab72d7cc15f4081d4a4e345ed85afad09fa74..0125a5aaeb4cc3427962df263d20bb15b3d7e970 100644 --- a/pc/clock.c +++ b/pc/clock.c @@ -172,6 +172,7 @@ clockinit(void) /* find biggest loop that doesn't wrap */ incr = 16000000/(t->aalcycles*HZ*2); + x = 2000; for(loops = incr; loops < 64*1024; loops += incr) { /* diff --git a/pc/dma.c b/pc/dma.c index 0f720b10360d92794eea258fed070bd8be0c74fb..9e29a19e4dfe1efecd0986376fc5d794c8315ba5 100644 --- a/pc/dma.c +++ b/pc/dma.c @@ -182,7 +182,7 @@ dmaend(int chan) unlock(dp); xp = &dp->x[chan]; - if(xp->len == 0 || xp->isread) + if(xp->len == 0 || !xp->isread) return; /*