working on new paging structure

This commit is contained in:
2026-02-24 02:15:36 +01:00
parent c644ba6e42
commit ec53b15ce1
5 changed files with 51 additions and 41 deletions

View File

@@ -42,7 +42,9 @@ OutputStream* copyout = &copystream;
#include "./user/app1/appl.h"
#include "./user/app2/kappl.h"
alignas(4096) four_lvl_paging_t paging_tree;
//alignas(4096) four_lvl_paging_t paging_tree;
//four_lvl_paging_t paging_tree;
pagetable_t identity_table[KERNEL_MEMORY_BORDER/4096/512];
//static const uint32_t NUM_APPS = 9;
//Application apps[NUM_APPS];
@@ -57,8 +59,8 @@ extern "C" int main() {
memcpy((void *)0x4000000, initrd->getStartAddress(), initrd->getSize());
mark_pageframes(0x4000000, 0x4000000 + initrd->getSize(), false);
memset(&paging_tree, 0, sizeof(four_lvl_paging_t));
create_basic_page_table(&paging_tree);
write_identity_map(identity_table, KERNEL_MEMORY_BORDER);
//create_basic_page_table(&paging_tree, identity_table);
//load_cr3((void*)&paging_tree.l4);
tout.reset();