Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tc Fix a 3 year old error which caused px_init() to ...
details: https://anonhg.NetBSD.org/src/rev/7eaf1c8630a7
branches: trunk
changeset: 572427:7eaf1c8630a7
user: mhitch <mhitch%NetBSD.org@localhost>
date: Sun Jan 02 19:25:56 2005 +0000
description:
Fix a 3 year old error which caused px_init() to fail. Fixes PR 28798.
diffstat:
sys/dev/tc/px.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6709891fdd29 -r 7eaf1c8630a7 sys/dev/tc/px.c
--- a/sys/dev/tc/px.c Sun Jan 02 19:08:35 2005 +0000
+++ b/sys/dev/tc/px.c Sun Jan 02 19:25:56 2005 +0000
@@ -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 @@
* 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");
Home |
Main Index |
Thread Index |
Old Index