[Freemint-list] Generic power-off functionality

Adam Klobukowski adamklobukowski at gmail.com
Mon Jan 9 21:40:06 MSK 2017


2017-01-09 18:56 GMT+01:00 Jo Even Skarstein <joska at online.no>:

> On ma., 2017-01-09 at 10:49 +0100, Adam Klobukowski wrote:
>
>
> > Please don't do cookies with a function pointer. It is soo 85' :P
>
> You mean 1990 I think ;) But seriously, if you have a suggestion for a
> cleaner approach I'd like to hear it. No code has been written yet.
>
>
Write it as 0x151 Gemdos function handler.


> > There is already Shutdown 0x151 FreeMiNT Gemdos function for that. I
> > think it is best that EmuTOS implements it the same way.
> >
> The idea here is to provide the shutdown-functionality *used by* GEMDOS
> 0x151, so GEMDOS (in MiNT in this case) does not have to implement this
> for every kind of hardware out there but can simply call a user provided
> function.
>
> I think it's a bit overkill to create a kernel module just for this.
>
>
Kernel module is the proper way to do this.

If the kernel module is loaded, it can handle this. If not, the default
would be calling underlying ROM x151 Gemdos function. If that returns,
kernel halts forever.

AdamK


> Jo Even
>
>
> _______________________________________________
> Freemint-list mailing list
> Freemint-list at mail.atariforge.org
> http://mail.atariforge.org/mailman/listinfo/freemint-list
>



-- 
Semper Fidelis

Adam Klobukowski
adamklobukowski at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.atariforge.org/pipermail/freemint-list/attachments/20170109/1440e52a/attachment.html 


More information about the Freemint-list mailing list