NASM - The Netwide Assembler
NASM Forum => Other Discussion => Topic started by: junior_study on July 20, 2012, 02:16:36 PM
-
hi,
when I access a memory page, what is the procedure of RPL check?
cpu will compare what with the segment's RPL ?
thank you!
-
RPL is specified in the selector INSTEAD OF THE SEGMENT DESCRIPTOR.CPU will check if RPL>=CPL and RPL<=DPL (For data segments). Note that CPL is "current privilege level" and DPL is "descriptor privilege level".
See also: http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html
Volume 3, Chapter 5 Protection