Module Name: src
Committed By: mrg
Date: Sat Dec 5 22:02:53 UTC 2009
Modified Files:
src/sys/arch/sparc64/sparc64: pmap.c
Log Message:
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).
To generate a diff of this commit:
cvs rdiff -u -r1.244 -r1.245 src/sys/arch/sparc64/sparc64/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/sparc64/pmap.c
diff -u src/sys/arch/sparc64/sparc64/pmap.c:1.244 src/sys/arch/sparc64/sparc64/pmap.c:1.245
--- src/sys/arch/sparc64/sparc64/pmap.c:1.244 Fri Nov 27 03:23:14 2009
+++ src/sys/arch/sparc64/sparc64/pmap.c Sat Dec 5 22:02:53 2009
@@ -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;