summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-06-09 16:55:21 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-06-09 16:55:21 +0000
commit9757da292e5539dcd9f611d9f6563525bca1c332 (patch)
treef1f46e3badb7c48607e7ff87b71ec17538ff001b
parente993f1a6895647f23b8e942683d13abe975cc7b7 (diff)
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).
-rw-r--r--sys/arch/sparc64/sparc64/pmap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c
index 835430c0028..ee521ca528d 100644
--- a/sys/arch/sparc64/sparc64/pmap.c
+++ b/sys/arch/sparc64/sparc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.60 2008/05/21 19:23:15 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.61 2008/06/09 16:55:20 kettenis Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
/*
@@ -287,7 +287,6 @@ vaddr_t ekdata;
paddr_t ekdatap;
static int npgs;
-static u_int nextavail;
static struct mem_region memlist[8]; /* Pick a random size here */
vaddr_t vmmap; /* one reserved MI vpage for /dev/mem */
@@ -1454,8 +1453,7 @@ remap_data:
/*
* 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;
BDPRINTF(PDB_BOOT1, ("Finished pmap_bootstrap()\r\n"));