Program around the Fastlane's DMA hardware shortcomings.

Fix by Matthias Scheler (PR #2672), based on information provided by Ralph
Schmidt/Reinhard Grams (Phase 5), forwarded by Jerome Lovy. Thanks to all.
This commit is contained in:
is 1996-08-04 11:25:36 +00:00
parent 89f4fddbfe
commit 480910aa2e
1 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: flsc.c,v 1.7 1996/06/10 16:11:26 is Exp $ */ /* $NetBSD: flsc.c,v 1.8 1996/08/04 11:25:36 is Exp $ */
/* /*
* Copyright (c) 1995 Daniel Widenfalk * Copyright (c) 1995 Daniel Widenfalk
@ -341,14 +341,13 @@ flsc_need_bump(sc, ptr, len)
{ {
int p; int p;
p = (int)ptr & 0x03; if (((int)ptr & 0x03) || (len & 0x03)) {
if (p) {
p = 4-p;
if (len < 256) if (len < 256)
p = len; p = len;
} else
p = 256;
} else
p = 0;
return(p); return(p);
} }