Calculation of unibus map register size was wrong.

This commit is contained in:
ragge 2001-07-27 12:57:20 +00:00
parent 5b827e1fa6
commit 39a7595b28
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uba_dma.c,v 1.5 2000/06/29 07:14:22 mrg Exp $ */ /* $NetBSD: uba_dma.c,v 1.6 2001/07/27 12:57:20 ragge Exp $ */
/*- /*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -114,7 +114,7 @@ uba_dma_init(sc)
pte = sc->uv_uba->uba_map; pte = sc->uv_uba->uba_map;
} else { } else {
pte = (struct pte *)vax_map_physmem(sc->uv_addr, pte = (struct pte *)vax_map_physmem(sc->uv_addr,
sc->uv_size/(VAX_NBPG/sizeof(struct pte))); vax_btoc(vax_btoc(sc->uv_size) * sizeof(struct pte)));
if (pte == 0) if (pte == 0)
panic("uba_dma_init"); panic("uba_dma_init");
} }