Page 1 of 1

Rings 1 and 2

Posted: Fri Jun 14, 2013 12:57 pm
by lopidas
Is there some privilege difference between these two?
And of course then privilege difference between 0 and 1, 2 and 3?

My thoughts (maybe I am absolutely wrong): It is for combining user-mode in ring 3 with driver in ring 2 and kernel mode ring 0 with driver in ring 1
Edited thoughts: ring 2 seems to be in kernel-mode too

Re: Rings 1 and 2

Posted: Fri Jun 14, 2013 1:01 pm
by AJ
Hi,

Yes there are privilege differences, but the reasons for using rings 1 and 2 evaporate when you start using paging, which only has the concept of 'User' and 'Supervisor' levels and you therefore only use rings 0 and 3.

Cheers,
Adam

Re: Rings 1 and 2

Posted: Fri Jun 14, 2013 1:09 pm
by lopidas
Hi,
does anyone know link to exact description of differences?

Re: Rings 1 and 2

Posted: Fri Jun 14, 2013 2:11 pm
by AJ

Re: Rings 1 and 2

Posted: Fri Jun 14, 2013 3:10 pm
by lopidas

Re: Rings 1 and 2

Posted: Thu Jun 27, 2013 11:43 am
by Casm
lopidas wrote:Is there some privilege difference between these two?
And of course then privilege difference between 0 and 1, 2 and 3?

My thoughts (maybe I am absolutely wrong): It is for combining user-mode in ring 3 with driver in ring 2 and kernel mode ring 0 with driver in ring 1
Edited thoughts: ring 2 seems to be in kernel-mode too
The original reason for having four privilege levels was that the American military wanted it. Only ring 0 counts as kernel mode. You will get a general protection error if you try to execute privileged instructions in rings 1 or 2.