not working

This commit is contained in:
2026-01-19 17:18:12 +01:00
parent 30a48d25d2
commit f70f29cea3
5 changed files with 117 additions and 7 deletions

View File

@@ -4,6 +4,7 @@
#include "./types.h" // This is actually used
#include "arch/core_interrupt.h"
#include "memory/pageframealloc.h"
#include "memory/pagetable.h"
#include "object/outputstream.h"
#include "syscall/handler.h"
@@ -34,6 +35,8 @@ OutputStream* copyout = &copystream;
#include "./user/app1/appl.h"
#include "./user/app2/kappl.h"
alignas(4096) four_lvl_paging_t paging_tree;
static const uint32_t NUM_APPS = 9;
Application apps[NUM_APPS];
@@ -41,7 +44,11 @@ static KeyboardApplication kapp;
// Main function
extern "C" int main() {
PageFrameAllocator::init();
//PageFrameAllocator::init();
memset(&paging_tree, 0, sizeof(four_lvl_paging_t));
create_basic_page_table((uintptr_t)&paging_tree);
load_cr3((void*)&paging_tree.l4);
tout.reset();
tout.setPos(33, 0);