Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- page_table = pmem_alloc();
- uint32_t* vtableAddr = ((1023 * PT_index) + PD_index) * 4096;
- kprintf("Allocation pagetable :%x\n",pmem_alloc());
- context->page_directory[PD_index]= (uint32_t) page_table | flags;
- for(int i = 0; i < 1024; i++) {
- vtableAddr[i]= 0;
- }
- kprintf("[OK]");
Advertisement
Add Comment
Please, Sign In to add comment