fixed mapping call and updated notes

This commit is contained in:
user
2026-02-23 15:55:19 +01:00
parent c18bd3b4ac
commit 7f0f04e48f
2 changed files with 5 additions and 5 deletions

View File

@@ -171,11 +171,11 @@ namespace Syscall {
// allocate each page with allocator
void* frame = PageFrameAllocator::alloc(false);
subbytable->entries[(( (uintptr_t) frame-64*1024*1024) /4096)] ={
subbytable->entries[(( (uintptr_t) ptr-64*1024*1024) /4096)+i] ={
.present = 1,
.write =1,
.user =1,
.address = i+((uintptr_t) ptr >> 12)
.address = ((uintptr_t) frame >> 12)
};
}