lkml.org 
[lkml]   [2001]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: PROBLEM: Linux updates RTC secretly when clock synchronizes
From
Date
Riley Williams <rhw@MemAlpha.cx> writes:

> Hi Pavel.
>
> > It ... just is not that way. Kernel + modules run at ring 0,
> > userland at ring 3.
>
> I know that much. I was just curious whether there was any particular
> reason why it was that way.

Well, Unix has historically run on systems with at most two processor
privilege levels, "user" and "supervisor"; ie, you're either in user
or kernel mode.

ix86 is one of the few Linux platforms that offers more than two
levels, so having modules run in an in-between level would be a
portability headache as well as a lot of work.

Certainly not impossible, but you'd need to create task gates or
whatever they're called at every point where modules called into the
kernel (and vice versa as well I think). Might be a serious
performance hit...

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.081 / U:6.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site