summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-01-30 19:04:09 +0000
committerwollman <wollman@FreeBSD.org>1996-01-30 19:04:09 +0000
commit212c3eba091c449ada760e94396c1d08a828ea7f (patch)
tree340b0055d21faa807cadc14900ae8ffd095b818d /sys/pci
parent0f051dbe15584dfdb04ee0ce3c0f2e9164097280 (diff)
downloadFreeBSD-src-212c3eba091c449ada760e94396c1d08a828ea7f.zip
FreeBSD-src-212c3eba091c449ada760e94396c1d08a828ea7f.tar.gz
Fix a logic error in determining whether something is page-aligned
that became evident while I was thinking about something else. (No, I am not working on the wd driver itself.)
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/wd82371.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/wd82371.c b/sys/pci/wd82371.c
index 34aac8f..b078a5b 100644
--- a/sys/pci/wd82371.c
+++ b/sys/pci/wd82371.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: wd82371.c,v 1.1 1996/01/28 22:15:47 wollman Exp $
*/
#include "pci.h"
@@ -190,7 +190,7 @@ piix_dmasetup(void *xcp, char *vaddr, u_long count, int dir)
* Deal with transfers that don't start on a page
* boundary.
*/
- pgresid = (u_long)vaddr & ~NBPG;
+ pgresid = (u_long)vaddr % NBPG;
if (pgresid) {
prd[i].prd_base = vtophys(vaddr);
if (count >= (NBPG - pgresid))
OpenPOWER on IntegriCloud