fixed mm bug, now crashing because IDT isn't mapped via paging
git-svn-id: svn://anubis/hos/trunk@97 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
1 parent
1027b8c346
commit
5ac343a2e8
2 files changed
+6
-4
No files matched your search
+4
-2
@@ -192,10 +192,11 @@ void mm_bootstrap()
|
||||
/* set the page directory base register */
|
||||
write_cr3(page_directory_phys);
|
||||
|
||||
/* set up permanent stack before enabling paging */
|
||||
stack_bootstrap();
|
||||
|
||||
/* turn on paging */
|
||||
write_cr0(read_cr0() | (1 << 31));
|
||||
|
||||
stack_bootstrap();
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
@@ -210,6 +211,7 @@ static void record_phys_page(u32_t base_address)
|
||||
last_page_alloc_page++;
|
||||
page_alloc_pages_index++;
|
||||
page_alloc_page_numbers[last_page_alloc_page] = base_address;
|
||||
page_alloc_page_index = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user