diff options
author | marcel <marcel@FreeBSD.org> | 2002-04-02 07:20:42 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-04-02 07:20:42 +0000 |
commit | dc856893255e042cf63790d720621bfb4da67e18 (patch) | |
tree | f2472176033946f98073023d06263bbb90d94239 /sys | |
parent | 66063ff556cbdba7f4f089521633b0b682c8f4bd (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/ia64/ia64/machdep.c | 16 |
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) { |