Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 from openbsd:



details:   https://anonhg.NetBSD.org/src/rev/26fbe767a94f
branches:  trunk
changeset: 749685:26fbe767a94f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Dec 05 22:02:53 2009 +0000

description:
from openbsd:
>Don't use u_int to store a 64-bit address. Found with help from miod.
>Makes a Sun Fire V490 boot without spending ages in bus_dmamem_alloc(9).

diffstat:

 sys/arch/sparc64/sparc64/pmap.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 954147839676 -r 26fbe767a94f sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Sat Dec 05 20:54:40 2009 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Sat Dec 05 22:02:53 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.244 2009/11/27 03:23:14 rmind Exp $ */
+/*     $NetBSD: pmap.c,v 1.245 2009/12/05 22:02:53 mrg Exp $   */
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.244 2009/11/27 03:23:14 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.245 2009/12/05 22:02:53 mrg Exp $");
 
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
@@ -220,7 +220,6 @@
 extern int kernel_tlb_slots;
 
 static int npgs;
-static u_int nextavail;
 
 vaddr_t        vmmap;                  /* one reserved MI vpage for /dev/mem */
 
@@ -1153,8 +1152,7 @@
        /*
         * Set up bounds of allocatable memory for vmstat et al.
         */
-       nextavail = avail->start;
-       avail_start = nextavail;
+       avail_start = avail->start;
        for (mp = avail; mp->size; mp++)
                avail_end = mp->start+mp->size;
 



Home | Main Index | Thread Index | Old Index