summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-04 21:10:20 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-05 00:57:59 +0200
commit1b810de65b7ebdfc0d554bf7da0ee87250b2dc52 (patch)
treea9fbc8c19f424d685b8a4f11e3c5a7f1ca200dc3 /vm
parentc405e5ecfa016a069c854353b4435c38398cf507 (diff)
Free memory used by boot modules
* vm/vm_resident.c (pmap_startup): Warn when some pages could not be included in the allocator due to bad estimation. * kern/bootstrap.c: Include <vm/pmap.h>. (bootstrap_create): Call vm_page_create on bootstrap modules content.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_resident.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index a6334989..96354a45 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -393,6 +393,11 @@ void pmap_startup(
vm_page_init(&pages[i], paddr);
pages_initialized++;
}
+ i = 0;
+ while (pmap_next_page(&paddr))
+ i++;
+ if (i)
+ printf("%d memory page(s) left away\n", i);
/*
* Release pages in reverse order so that physical pages