Quote:
>>hello to all,
>>can you tell me what in the x86 controls the supervisor(kernel)/user mode?
>>thank you
>Supervisor and User mode? You're one of those M68k dudes! :-)
>Protected and real mode are controlled by bit 0 of CR0, a 1 gets you
>into protected mode, a 0 into real mode.
While there is no Supervisor/User mode, there is such a thing as supervisor
and user levels. A program is executing at supervisor level if its privilege
level is 0, 1, or 2; user level is PL3.
This distinction is used by the page-level protection mechanism. In
particular, there is a specific bit in each page table and page directory
entry (the U/S bit) which controls whether (U/S=1) or not (U/S=0) this page
(directory) is accessible to User or Supervisor level processes.
--------------------------------
I've been getting too much junk e-mail, so I've
deliberately corrupted my return e-mail address.
To obtain the correct address, delete the trailing
".nospam" (note, this is Maps On spelled backwards).