Mail Archives: djgpp/1997/05/01/23:07:30
George Foot wrote:
>
> Thomas Harte (T DOT Harte AT btinternet DOT com DOT REMOVE_THIS_BIT) wrote:
> : > : Is there such a thing? If not, would anyone be
> : > interested in starting one?
> : >
> : > Who would get to be ring 0 though?
>
> : Umm, why is there a ring 0? I don't know much about these things, but
> : surely you pick up on the ring from whichever page you happen to come
> : across which is attached to it. Am I wrong?
>
> : -Thomas
>
> Sorry, it was a horrible pun... `Ring' is a term for an operating level in
> a protected mode system, and ring 0 is the `supervisor' level, which has
> the most priviledges (AFAIK, I'm no expert in it).
>
> --
> George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
> Merton College, Oxford
Thats right the ring 0 is where normally the kernel runs. The reason for
the existance of rings is simple, protection. As a program running in a
ring could not affect the programs in a more priviledged ring, then this
prevents a user program crash the whole system when it becomes unstable
(at least theorically). For example :
Let us supose that the kernel that manages the whole system is in ring 0
(most privileged), the devices that manages hardware in ring 1 and the
user programs in ring 2(less priviledged).
In this configuration the user programs cannot overwrite the devices and
kernel memory spaces as the processor itself won't allow it. so a
programm may crash and the devices and system will still be healthy
enought to continue the execution of the others programs running.
In the same way a device that crashed could damage a user program but
not the system kernel, so some recover is possible also.
All this ring stuff comes when multitasking OS are developed so one
program that crashes couldn't kill the entire system
I don't know how is the ring configuration for djgpp cause I 'm new with
it, anyone?. I guess that's all in ring 0 anyone knows this for sure?
Hope this explain more or less the concept, if not let me know.
Fernando Salas
- Raw text -