From 1b810de65b7ebdfc0d554bf7da0ee87250b2dc52 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 4 Sep 2011 21:10:20 +0200 Subject: 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 . (bootstrap_create): Call vm_page_create on bootstrap modules content. --- vm/vm_resident.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vm/vm_resident.c') 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 -- cgit v1.2.3