test map/unmap
This commit is contained in:
@@ -38,8 +38,14 @@ Thread::Thread (bool kernel, void * startframe, int num_pages): queue_link(null
|
||||
StackPointer.user = (void*)(0x61FF000+STACK_SIZE);
|
||||
|
||||
paging_tree = (four_lvl_paging_t*)PageFrameAllocator::alloc(true);
|
||||
memset(paging_tree, 0, 4096);
|
||||
create_basic_page_table(paging_tree, &identity_table);
|
||||
|
||||
appcode_table = (pagetable_t*) PageFrameAllocator::alloc(true);
|
||||
memset(appcode_table, 0, 4096);
|
||||
|
||||
appstack_table = (pagetable_t*) PageFrameAllocator::alloc(true);
|
||||
memset(appstack_table, 0, 4096);
|
||||
|
||||
assert(num_pages < 512); //limit for application code size is 2M
|
||||
for(uint8_t i=0; i<num_pages; i++){
|
||||
|
||||
Reference in New Issue
Block a user