Re: [hatari-devel] natfeats installing __NF cookie

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


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. 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.

 

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/