Guest User

Untitled

a guest
Nov 28th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. page_table = pmem_alloc();
  2. uint32_t* vtableAddr = ((1023 * PT_index) + PD_index) * 4096;
  3. kprintf("Allocation pagetable :%x\n",pmem_alloc());
  4. context->page_directory[PD_index]= (uint32_t) page_table | flags;
  5. for(int i = 0; i < 1024; i++) {
  6.     vtableAddr[i]= 0;
  7. }
  8. kprintf("[OK]");
Advertisement
Add Comment
Please, Sign In to add comment