fix braino..

accidentally replaced PAGE_MASK with PAGE_SIZE.
(PAGE_MASK is PAGE_SIZE - 1)
bug does not manifest itself on our hardware.....
This commit is contained in:
Julian Elischer 1999-07-22 19:45:33 +00:00
parent a02be1be5b
commit 7530f1312b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49000

View file

@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: ide_pci.c,v 1.36 1999/07/20 22:43:53 julian Exp $
* $Id: ide_pci.c,v 1.37 1999/07/21 02:28:35 peter Exp $
*/
#include "wd.h"
@ -1835,7 +1835,7 @@ ide_pci_dmasetup(void *xcp, char *vaddr, u_long vcount, int dir)
/* Generate first PRD entry, which may be non-aligned. */
firstpage = DMA_PG_SZ - ((uintptr_t)vaddr & DMA_PG_SZ);
firstpage = DMA_PG_SZ - ((uintptr_t)vaddr & (DMA_PG_SZ - 1));
prd_base = vtophys(vaddr);
prd_count = MIN(count, firstpage);