Fix a 3 year old error which caused px_init() to fail. Fixes PR 28798.
This commit is contained in:
parent
f95f6051ed
commit
c2f973c445
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: px.c,v 1.21 2003/10/27 07:07:35 chs Exp $ */
|
||||
/* $NetBSD: px.c,v 1.22 2005/01/02 19:25:56 mhitch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.21 2003/10/27 07:07:35 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.22 2005/01/02 19:25:56 mhitch Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -202,7 +202,7 @@ px_init(struct stic_info *si, int bootstrap)
|
|||
* directly from vm_physmem[].
|
||||
*/
|
||||
bva = (caddr_t)uvm_pageboot_alloc(PX_BUF_SIZE + PX_BUF_ALIGN);
|
||||
bpa = (STIC_KSEG_TO_PHYS(kva) + PX_BUF_ALIGN - 1) &
|
||||
bpa = (STIC_KSEG_TO_PHYS(bva) + PX_BUF_ALIGN - 1) &
|
||||
~(PX_BUF_ALIGN - 1);
|
||||
if (bpa + PX_BUF_SIZE > 8192*1024)
|
||||
panic("px_init: allocation out of bounds");
|
||||
|
|
Loading…
Reference in New Issue