added mm/stack module; initializing "permanent" stack for kernel use while paging, crashing when calling k_main() though...
git-svn-id: svn://anubis/hos/trunk@52 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
1 parent
cf2d28f5ce
commit
bf9c7d74eb
7 files changed
+36
-12
No files matched your search
Executable
+14
@@ -0,0 +1,14 @@
|
||||
|
||||
#include "stack.h"
|
||||
#include "mm.h"
|
||||
#include "hos_defines.h"
|
||||
|
||||
void stack_bootstrap()
|
||||
{
|
||||
/*
|
||||
* running from our temporary stack while segmentation is enabled,
|
||||
* set up the "permanent" stack for use while paging
|
||||
*/
|
||||
u32_t first_stack_page_base = mm_page_alloc();
|
||||
mm_map(KERNEL_STACK_TOP - PAGE_SIZE, first_stack_page_base, 0, 1);
|
||||
}
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
|
||||
#ifndef STACK_H
|
||||
#define STACK_H
|
||||
|
||||
void stack_bootstrap();
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user