summaryrefslogtreecommitdiff
path: root/linux/dev/init
diff options
context:
space:
mode:
Diffstat (limited to 'linux/dev/init')
-rw-r--r--linux/dev/init/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/dev/init/main.c b/linux/dev/init/main.c
index f5c4832..ecbd0b6 100644
--- a/linux/dev/init/main.c
+++ b/linux/dev/init/main.c
@@ -149,7 +149,7 @@ linux_init (void)
/*
* Free unused memory.
*/
- while (pages && pages->phys_addr < round_page (memory_start))
+ while (pages && phystokv(pages->phys_addr) < round_page (memory_start))
pages = (vm_page_t) pages->pageq.next;
if (pages)
free_contig_mem (pages);
@@ -296,7 +296,7 @@ alloc_contig_mem (unsigned size, unsigned limit,
kfree ((vm_offset_t) bits, bits_len);
if (pages)
*pages = page_list;
- return (m);
+ return phystokv(m);
}
/*