Mvalidate()/Maccess() GEMDOS calls

FreeMiNT related questions are answered here.

Moderators: simonsunnyboy, Mug UK, Zorro 2, ThorstenOtto, mikro, Moderator Team

Post Reply
joska
Hardware Guru
Hardware Guru
Posts: 5688
Joined: Tue Oct 30, 2007 2:55 pm
Location: Florø, Norway
Contact:

Mvalidate()/Maccess() GEMDOS calls

Post by joska »

Last year I was made aware of the Mvalidate and Maccess GEMDOS calls:

https://github.com/freemint/freemint/is ... 1518203810

These were not documented until fairly recently but seems to have existed for 25 years or so.

https://freemint.github.io/tos.hyp/en/g ... ml#Maccess
https://freemint.github.io/tos.hyp/en/g ... #Mvalidate

Yesterday I finally had some time and inspiration to check out these calls, and they do indeed do what they promise. Maccess() is perfect to avoid those nasty memory violations due to AV-protocol (or any protocol that involves shared memory of some sort) clients that sends pointers to private memory. So if you're one of the very few that still develop or maintain GEM applications, please take a look at this GEMDOS call.
Jo Even

VanillaMiNT - Falcon060 - Milan060 - Falcon040 - MIST - Mega STE - Mega ST - STM - STE - Amiga 600 - Sharp MZ700 - MSX - Amstrad CPC - C64
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3085
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: Mvalidate()/Maccess() GEMDOS calls

Post by Cyprian »

great.

btw, would it be possible to redirect https://toshyp.atari.org/ directly to https://freemint.github.io/tos.hyp/ ?
Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.atari.org
Post Reply

Return to “FreeMiNT support”