Re: [hatari-devel] natfeats installing __NF cookie

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 15.7.2022 17.34, Thorsten Otto wrote:
On Freitag, 15. Juli 2022 16:11:20 CEST Miro Kropáček wrote:
with reasoning that this is a cookie meant for system usage, not user space.

But thats wrong.  Although most of the NatFeats are for driver usage, not all
them are. Things like NF_NAME, NF_STDERR are also meant to be used from user
space.

Having that said: usefulness of the __NF cookie is doubtful anyway. All
programs (including MiNT) check for the availability by checking whether the
NF_ID opcode throws an illegal exception.
Thanks!

Maybe you could you add some note of above also to Aranym NatFeats Wiki docs, and update the FreeMiNT info here ("-DARANYM" -> "-DWITH_NATIVE_FEATURES"):
https://github.com/aranym/aranym/wiki/natfeats-example
?


> The cookie would only make sense in
> the case of coldfire, where that opcode is
> a legal mvs instruction, but that is only
> hypothetical, because it would assume
> an emulator emulating a ColdFire.



	- Eero

I think that cookie is just a relict from STonX, where it what first
introduced IIRC.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/