summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-04-02 07:20:42 +0000
committermarcel <marcel@FreeBSD.org>2002-04-02 07:20:42 +0000
commitdc856893255e042cf63790d720621bfb4da67e18 (patch)
treef2472176033946f98073023d06263bbb90d94239 /sys/ia64
parent66063ff556cbdba7f4f089521633b0b682c8f4bd (diff)
downloadFreeBSD-src-dc856893255e042cf63790d720621bfb4da67e18.zip
FreeBSD-src-dc856893255e042cf63790d720621bfb4da67e18.tar.gz
o GC totalphysmem and resvmem.
o Rephrase comment describing that the memory region can contain the kernel.
Diffstat (limited to 'sys/ia64')
-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 51483d9..2fffbc5 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) {
OpenPOWER on IntegriCloud