moved call to stack_bootstrap() into mm_bootstrap() since stack_bootstrap() relies on calling mm_map() and mm_use_virtual_offset was getting unset at the end of mm_bootstrap(); calling k_main() now works!
git-svn-id: svn://anubis/hos/trunk@54 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
1 parent
118021a0f6
commit
1dd8250048
3 files changed
+5
-3
No files matched your search
@@ -2,6 +2,7 @@
|
||||
#include <stddef.h>
|
||||
|
||||
#include "mm.h"
|
||||
#include "stack.h"
|
||||
#include "boot/k_early_panic.h"
|
||||
#include "lang/string.h"
|
||||
|
||||
@@ -156,6 +157,8 @@ void mm_bootstrap()
|
||||
/* set the page directory base register */
|
||||
set_cr3(page_directory);
|
||||
|
||||
stack_bootstrap();
|
||||
|
||||
mm_use_virtual_offset = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user