Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/dev/tc Pull up revision 1.22 (requested by mhitch i...



details:   https://anonhg.NetBSD.org/src/rev/943f7c799da1
branches:  netbsd-2-0
changeset: 564716:943f7c799da1
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Mar 16 19:52:30 2005 +0000

description:
Pull up revision 1.22 (requested by mhitch in ticket #1063):
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 4db17398ad25 -r 943f7c799da1 sys/dev/tc/px.c
--- a/sys/dev/tc/px.c   Wed Mar 16 19:17:25 2005 +0000
+++ b/sys/dev/tc/px.c   Wed Mar 16 19:52:30 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.21.2.1 2005/03/16 19:52:30 tron 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.21.2.1 2005/03/16 19:52:30 tron 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