loader: remove shouting from ORB's variable name
[hvf.git] / cp / mm / page.c
blobc798c5869fa9a41ccba808a22bcf4e16bc4808c5
1 /*
2 * (C) Copyright 2007-2010 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
5 * details.
6 */
8 #include <list.h>
9 #include <page.h>
10 #include <mm.h>
13 * Main storage size
15 u64 memsize;
18 * Initialize fields in a struct page
20 static void __init_page(struct page *page)
22 INIT_LIST_HEAD(&page->buddy);
26 * Initialize struct page for each available page
28 void init_pages(void)
30 u64 pnum;
32 for(pnum=0; pnum < (memsize>>PAGE_SHIFT); pnum++)
33 __init_page(page_num_to_ptr(pnum));