kmain: allocate first 16 pages for stack
This commit is contained in:
+5
-2
@@ -136,8 +136,11 @@ void kmain(unsigned int magic, unsigned int info)
|
||||
printf("test_str: %X, &test_str %X\n", test_str, &test_str);
|
||||
free_page(test_str);
|
||||
|
||||
alloc_page();//TODO: fix this this, because now we MUST allocate a page for checks of successfulness of allocation to pass
|
||||
//the first page is at 0x0 and in check we check by if(!<allocated page>) which returns 0 (false), yeah
|
||||
//reserve first 16 pages (64KB) for the stack whose top address is defined as 0xC0010000 in the boot.asm
|
||||
for(int i = 0; i < 16; i++)
|
||||
{
|
||||
alloc_page();
|
||||
}
|
||||
|
||||
|
||||
//while(1){}
|
||||
|
||||
Reference in New Issue
Block a user