aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2002-04-02 07:20:42 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2002-04-02 07:20:42 +0000
commit6cb7cf58267592a8f96a5cc5be08b2f8c7bd7ea8 (patch)
treef2472176033946f98073023d06263bbb90d94239
parent990fa6b68a3d922b5cca5a33dcf1545978c74211 (diff)
Notes
-rw-r--r--sys/ia64/ia64/machdep.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index 51483d9a7c7f..2fffbc54f3f7 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -144,9 +144,7 @@ struct msgbuf *msgbufp=0;
int Maxmem = 0;
long dumplo;
-int totalphysmem; /* total amount of physical memory in system */
-int physmem; /* physical memory used by NetBSD + some rsvd */
-int resvmem; /* amount of memory reserved for PROM */
+int physmem; /* Physical conventional memory. */
vm_offset_t phys_avail[100];
@@ -584,17 +582,13 @@ ia64_init(u_int64_t arg1, u_int64_t arg2)
if (pfn1 <= pfn0)
continue;
- if (mdp->Type != EfiConventionalMemory) {
- resvmem += (pfn1 - pfn0);
+ if (mdp->Type != EfiConventionalMemory)
continue;
- }
-
- totalphysmem += (pfn1 - pfn0);
/*
- * We have a memory descriptors available for system
- * software use. We must determine if this cluster
- * holds the kernel.
+ * We have a memory descriptor that describes conventional
+ * memory that is for general use. We must determine if the
+ * loader has put the kernel in this region.
*/
physmem += (pfn1 - pfn0);
if (pfn0 <= kernendpfn && kernstartpfn <= pfn1) {