Page 1 of 1

CPL and RPL

Posted: Thu May 24, 2012 11:33 pm
by appusajeev
If CPL =3 , can we set RPL = 0 to access a segment?

Re: CPL and RPL

Posted: Fri May 25, 2012 2:02 am
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.