DMA state was not getting saved if dmaCurPhase was data-out. If the

message-in was a save data pointer, the driver would loop in the
interrupt routine.
This commit is contained in:
mhitch 1997-05-22 03:26:16 +00:00
parent 50820e9b86
commit 0db8e55935
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sii.c,v 1.21 1997/04/29 01:58:38 jonathan Exp $ */ /* $NetBSD: sii.c,v 1.22 1997/05/22 03:26:16 mhitch Exp $ */
/*- /*-
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -1061,7 +1061,7 @@ again:
* Note that the SII DMA address is not incremented * Note that the SII DMA address is not incremented
* as DMA proceeds. * as DMA proceeds.
*/ */
if (state->dmaCurPhase > 0) { if (state->dmaCurPhase >= 0) {
/* save dma registers */ /* save dma registers */
state->dmaPrevPhase = state->dmaCurPhase; state->dmaPrevPhase = state->dmaCurPhase;
state->dmaCurPhase = -1; state->dmaCurPhase = -1;