[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Shutdown() discussion



On Wed, 10 Dec 2003, Petr Stehlik wrote:

> On Wed, 2003-12-10 at 17:01, Odd Skancke wrote:
> >  I think perhaps the kernel should have generic shutdown code, and rely on
> > some sort of XDD to actually perform the shutdown. This is a hardware
> > specific thing, right?
>
> Right. The question is how much of the hardware specific things belong
> to the kernel and how much should be loadable modules.
>
> Let's take the Linux, for example: there is a module called "apm" that
> does the very thing we are discussing here - turns off the ATX PSU.
> Without this module loaded the OS just halts.
>
> So I think it's a smart idea.
>
> But the question of implementation is still the same: are you OK with
> having ARAnyM specific code in APM.XDD or do you want us to develop
> APM-ARANYM.XDD? If the former, what is the difference between this and
> implementing it in the kernel itself? The CVS tree is the same, after
> all. And if the latter (APM-machine.XDD) - can the kernel load the right
> XDD at boot time automagically? Or is user required to enable/disable
> the XDDs with an XBOOT style tool? That would be a step back, IMHO.

 I have nothing against the former method. This is an ARAnyM specific XDD,
and the ARAnyM specific code is where it belongs. If I were to put an ATX
PSU into my hades, and in some way connect it, I would have to make an
APM-HADE.XDD. And the same for the Milan. You do see the difference
between having this separately in an XDD rather than having it in the
kernel itself? Dangerous to think "Only two things use this, so lets do it
the easy-but-wrong way", as this may change.

-- 
 Regards,

 Odd Skancke - ozk.atari.org - http://assemsoft.atari.org