Rings 1 and 2

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Rings 1 and 2

Post by Love4Boobies »

xlq wrote:As I see it, rings 1 and 2 were designed to run code at a privilege level that could have absolute power over ring 3 processes but keeping the kernel protected from it. But if you're going to run drivers outside ring 0, then it's worth providing a simple API to the kernel rather than letting ring 1 code mess around with ring 3 bits itself.
I still fail to see any reason for having this. Besides, this can be very well implemented with only rings 0 and 3 + paging, thus making the code more portable across diferent CPU architectures.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
xlq
Member
Member
Posts: 36
Joined: Mon Dec 11, 2006 7:51 am

Re: Rings 1 and 2

Post by xlq »

Yeah, exactly.

The only case where ring 1 (or ring 2) would be useful (being isolated from the kernel but being able to control ring 3) has no useful applications.
Marionette the flexible kernel
User avatar
yemista
Member
Member
Posts: 299
Joined: Fri Dec 26, 2008 12:31 pm
Location: Boston
Contact:

Re: Rings 1 and 2

Post by yemista »

Im pretty sure its because Intel thought that theoretically it could be really useful, but in practice it turned out all you needed was 2. I remember
reading this somewhere in some discussion, but unfortunatley I cannot back this up with a link.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Rings 1 and 2

Post by jal »

yemista wrote:Im pretty sure its because Intel thought that theoretically it could be really useful, but in practice it turned out all you needed was 2. I remember reading this somewhere in some discussion, but unfortunatley I cannot back this up with a link.
Also remember that the 4 privilige levels were introduced in a time before paging, so all arguments against that include 'paging' as part of the argument are invalid.


JAL
Post Reply