VM information interface

This commit is contained in:
David van Moolenbroek
2010-01-19 21:00:20 +00:00
parent 7d51b0cce1
commit 61bb82a44b
18 changed files with 412 additions and 64 deletions

View File

@@ -405,6 +405,8 @@ struct memory *chunks; /* list of free memory chunks */
addr_init(&addravl);
total_pages = 0;
/* Use the chunks of physical memory to allocate holes. */
for (i=NR_MEMS-1; i>=0; i--) {
if (chunks[i].size > 0) {
@@ -413,6 +415,7 @@ struct memory *chunks; /* list of free memory chunks */
if(first || from < mem_low) mem_low = from;
if(first || to > mem_high) mem_high = to;
FREE_MEM(chunks[i].base, chunks[i].size);
total_pages += chunks[i].size;
first = 0;
}
}