fixed mapping call and updated notes
This commit is contained in:
@@ -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)
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user