summaryrefslogtreecommitdiffstats
path: root/sys/mips/rmi
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2010-12-09 07:01:03 +0000
committergonzo <gonzo@FreeBSD.org>2010-12-09 07:01:03 +0000
commit8ae51d5a21a1fc98aff0548e431f4a2892128289 (patch)
tree84bf289479a5756413146b50f58901a4d79802a1 /sys/mips/rmi
parent012e7effe8b74bcbabfe1dc56b95ee94e3ca056b (diff)
downloadFreeBSD-src-8ae51d5a21a1fc98aff0548e431f4a2892128289.zip
FreeBSD-src-8ae51d5a21a1fc98aff0548e431f4a2892128289.tar.gz
- Populate dump_avail with proper values from phys_avail
Diffstat (limited to 'sys/mips/rmi')
-rw-r--r--sys/mips/rmi/xlr_machdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/mips/rmi/xlr_machdep.c b/sys/mips/rmi/xlr_machdep.c
index 8f96633..5cc4fc2 100644
--- a/sys/mips/rmi/xlr_machdep.c
+++ b/sys/mips/rmi/xlr_machdep.c
@@ -363,6 +363,9 @@ xlr_mem_init(void)
(void *)phys_avail[0],
(void *)phys_avail[1]);
+ dump_avail[0] = boot_map->physmem_map[0].addr;
+ dump_avail[1] = boot_map->physmem_map[0].size;
+
} else {
/*
* Can't use this code yet, because most of the fixed allocations happen from
@@ -390,6 +393,10 @@ xlr_mem_init(void)
(void *)phys_avail[j],
(void *)phys_avail[j+1]);
}
+
+ dump_avail[j] = boot_map->physmem_map[j].addr;
+ dump_avail[j+1] = boot_map->physmem_map[j].size;
+
physsz += boot_map->physmem_map[i].size;
}
}
OpenPOWER on IntegriCloud