CPL and RPL

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
appusajeev
Posts: 3
Joined: Mon Aug 01, 2011 7:10 am

CPL and RPL

Post by appusajeev »

If CPL =3 , can we set RPL = 0 to access a segment?
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: CPL and RPL

Post by iansjack »

I presume that you are referring to a data segment? From the Intel manual:

"That is, if the RPL of a segment selector is numerically greater than the CPL, the RPL overrides the CPL, and vice versa."

So if the DPL is less than 3 then an RPL of 0 makes no difference as it doesn't override the CPL.
Post Reply