Hi! On Thu, Dec 30, 1999 at 12:06:51PM -0500, Lonny Pursell wrote: > Anyway it is related to memory protection. Back when I was told > my program did not function correctly I recoded it to correct this. > However, as it turns out the extra bits in the mxalloc() calls > caused serious problems on TOS 4.04 without the mint kernal present. > Ozk knows this to be true as well. ;-) In a German (a non-exported MausNet) discussion group we talked abou that problem some time ago and came to the solution Frank already told you: If Sysconf(-1) returns anything != -32L, you can safely use memory protection flags in calls to Mxalloc(). Of course, that means that MagiC, should it ever implement PMMU-based memory protection, must also implement that call, then. Andreas Kromke already knows that and agreed (maybe because he hasn't got such plans, anyway). Thus, Sysconf() shouldn't be used to detect the presence of MiNT, but to decide whether to use memory protection flags with Mxalloc(). Ciao Thomas -- Thomas Binder (Gryf @ IRCNet) gryf@hrzpub.tu-darmstadt.de PGP-key available on request! binder@rbg.informatik.tu-darmstadt.de Vote against SPAM: http://www.politik-digital.de/spam/
Attachment:
pgpA8JTnUPjlE.pgp
Description: PGP signature