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

Re: [MiNT] Shutdown() discussion

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.