comp.lang.ada
 help / color / mirror / Atom feed
From: Ole-Hjalmar Kristensen <ohk@clustra.com>
Subject: Re: Ada OS Kernel features
Date: 06 Sep 2001 08:48:30 +0200
Date: 2001-09-06T08:48:30+02:00	[thread overview]
Message-ID: <umqk7zcolvl.fsf@maestro.clustra.com> (raw)
In-Reply-To: 9n61dg$h3k$1@slb5.atl.mindspring.net

"Brian Catlin" <briancatlin@mindspring.com> writes:

> "chris.danx" <chris.danx@ntlworld.com> wrote in message
> news:3%ul7.3362$9z1.440040@news6-win.server.ntlworld.com...
> >
> > > > You should be able to "overload" a driver. What I mean ?  Lets assume
> > > > you have a simple grafic driver on bootup, then you load a "better"
> > > > (more complex, higher resolution, 3D excelerator ...) one. If this one
> > > > crashes, then it should simply be unloaded and the system should
> > > > continue work with the (simple) default driver - instead of showing a
> > > > "blue screen" ;-)
> > >
> > > My first reaction to this was "Not Possible".  However, that isn't
> > > entirely true; it is just *VERY VERY* difficult.
> >
> > Only in the "drivers in supervisor mode" model.
> >
> > > A driver runs in kernel mode,
> >
> > Why?  Why not just have it in user mode?  It makes more sense to have them
> > in user mode, at least to me.  They can only corrupt themselves then, etc.
> >
> > > and has access to system data structures.
> >
> > Why should it?  In your model a driver can screw a system up good and
> > proper, but if you put the driver in user mode then the associated problems
> > go away.  New ones do crop up, but there's ways and means to deal with them.
> 
>  This has been well studied and the reasons will show up in just about any
> search of the relevant literature (in case my explanation does not make sense,
> or are not complete enough for you).  A driver typically runs in two contexts,
> the context of the requesting process, because it needs to access the user's
> buffers, and "system" context (strictly, arbitrary process context) where the
> driver does not need access to the requesting process' address space.  If a
> driver is running in its own process, how can it gain efficient access to the
> requesting process' buffers?  Also, drivers spend most of their time running at

It is possible (and has been done) to associate privileges with the
memory segment you are currently executing in, not which process you
are running in. In this way it is possible to get both speed and
safety, by having special libraries with sufficient privileges. Kind
of like the monitor/protected object idea, which lets you execute
code within it without process switching.

<stuff deleted>

-- 
Kabelsalat ist gesund.

Ole-Hj. Kristensen



  reply	other threads:[~2001-09-06  6:48 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-05  5:58 Ada OS Kernel features Brian Catlin
2001-09-05 10:15 ` Jacob Sparre Andersen
2001-09-05 11:16 ` Larry Kilgallen
2001-09-05 17:06   ` Brian Catlin
2001-09-06 14:35     ` Marin David Condic
2001-09-07  9:31       ` Tarjei T. Jensen
2001-09-05 17:55   ` David Starner
2001-09-05 18:42     ` Darren New
2001-09-12  6:47   ` Mats Karlssohn
2001-09-05 14:04 ` Ted Dennison
2001-09-05 17:23   ` Brian Catlin
2001-09-05 20:17     ` Ted Dennison
2001-09-05 21:10       ` Brian Catlin
2001-09-06  6:45         ` Tarjei T. Jensen
2001-09-06  6:56           ` Brian Catlin
2001-09-06 14:05             ` Ted Dennison
2001-09-05 16:02 ` Alfred Hilscher
2001-09-05 16:19   ` Jacob Sparre Andersen
2001-09-05 17:58     ` Brian Catlin
2001-09-05 17:44   ` Brian Catlin
2001-09-05 17:58     ` Darren New
2001-09-05 18:51     ` Larry Kilgallen
2001-09-05 19:25     ` chris.danx
2001-09-05 20:07       ` Darren New
2001-09-05 20:14       ` Larry Kilgallen
2001-09-06 13:45         ` Alfred Hilscher
2001-09-06 18:06         ` chris.danx
2001-09-06 19:41           ` Larry Kilgallen
2001-09-06 22:32             ` chris.danx
2001-09-07 11:04               ` Larry Kilgallen
2001-09-07  8:04           ` Dmitry Kazakov
2001-09-07  8:18             ` Mattias Svensson
2001-09-07 12:40               ` Dmitry Kazakov
2001-09-12  7:12               ` Mats Karlssohn
2001-09-05 20:18       ` Brian Catlin
2001-09-06  6:48         ` Ole-Hjalmar Kristensen [this message]
2001-09-06  6:59           ` Brian Catlin
2001-09-10  7:32             ` Ole-Hjalmar Kristensen
2001-09-06 13:42     ` Alfred Hilscher
2001-09-07  8:13       ` Dmitry Kazakov
2001-09-08  3:55     ` Kenneth Almquist
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox