From d57736a746b0989bb28b4e00acee889e27fb23c4 Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 2 Apr 2003 01:09:19 +0000 Subject: [PATCH] Use PAGE_SIZE rather than NBPG. --- sys/arch/mac68k/dev/mac68k5380.c | 5 ++++- sys/arch/mac68k/dev/ncr5380.c | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/arch/mac68k/dev/mac68k5380.c b/sys/arch/mac68k/dev/mac68k5380.c index 509ba18f8757..715534be5272 100644 --- a/sys/arch/mac68k/dev/mac68k5380.c +++ b/sys/arch/mac68k/dev/mac68k5380.c @@ -1,4 +1,4 @@ -/* $NetBSD: mac68k5380.c,v 1.37 2002/09/27 15:36:16 provos Exp $ */ +/* $NetBSD: mac68k5380.c,v 1.38 2003/04/02 01:09:19 thorpej Exp $ */ /* * Copyright (c) 1995 Allen Briggs @@ -40,6 +40,9 @@ #include #include #include + +#include + #include #include #include diff --git a/sys/arch/mac68k/dev/ncr5380.c b/sys/arch/mac68k/dev/ncr5380.c index b58c69b0d586..260fd504a475 100644 --- a/sys/arch/mac68k/dev/ncr5380.c +++ b/sys/arch/mac68k/dev/ncr5380.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr5380.c,v 1.50 2002/10/02 05:52:32 thorpej Exp $ */ +/* $NetBSD: ncr5380.c,v 1.51 2003/04/02 01:09:19 thorpej Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -1839,7 +1839,8 @@ SC_REQ *reqp; */ dm->dm_addr = phy_buf = kvtop(req_addr); while (req_len) { - if (req_len < (phy_len = NBPG - m68k_page_offset(req_addr))) + if (req_len < + (phy_len = PAGE_SIZE - m68k_page_offset(req_addr))) phy_len = req_len; req_addr += phy_len;