Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned int pageDir = (int)virt >> 22;
- unsigned int pageTab = ((int)virt << 10) >> 22;
- if ((context->pagedir[pageDir] & 1) == 0){
- unsigned int* tab = (unsigned int*)pmm_alloc();
- kprintf("(%d)",pageDir);
- //for(int i = 0;i<1024;i++) tab[i]=0 | 2;
- context->pagedir[pageDir] =(unsigned int)tab ;
- }
Advertisement
Add Comment
Please, Sign In to add comment