Request Privellege Level (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
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Request Privellege Level (RPL)?

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:59 pm, edited 2 times in total.
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:Request Privellege Level (RPL)?

Post by Pype.Clicker »

iirc, the Requested Priviledge Level (rPL) is the small 2-bits tag that comes with every selector in the segment registers.

What the weird things from the manual extract means is that if you have a data descriptor at index 0x18 in your GDT which is a DPL3 segment, you cannot use mov ds,0x18 but you must use mov ds,0x1b instead, so that the RPL reflects the DPL. If this isn't the case, then the segment loading operation will raise a GPF.

The only situation where you could possibly "choose" your DPL level would be the case where you're calling/jumping to a conforming code segment, but as i haven't really used them so far, i can't be sure :-(
Post Reply