Paging

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Googles

Paging

Post by Googles »

Is it possible to have a user pagetable in a superuser pagedirectory and the other way around?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Paging

Post by Pype.Clicker »

you can have a USER=1 PTE in a USER=0 PDE, if that's what you mean. However, the access control that applies is

Code: Select all

if (CPL=3)
 if(!PTE.USER || !PDE.USER) throw new PageFault;
so as soon as one of the P*E entries has USER=0, you cannot access the page from userland.
Post Reply