[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Holger_Herzog@zw.maus.de (Holger Herzog)] [MiNT] Correct way to detect MiNT kernal?



X-From-Line: Holger_Herzog@zw.maus.de Sat Jan 01 03:12:00 2000
From: Holger_Herzog@zw.maus.de (Holger Herzog)
Received: by zw.maus.de from zw.maus.de via mausnet with maustausch; for owner-mint@fishpool.com; Sat 1 Jan 2000
To: owner-mint@fishpool.com
Subject: [MiNT] Correct way to detect MiNT kernal?
Message-ID: <199912311927.p9886@zw.maus.de>
In-Reply-To: <NCBBIPMOPKLLGKJPBINCEEGLDIAA.julian.reschke@gmx.de>
Date: Fri, 31 Dec 1999 19:27:00 +0100
Organization: MAUS Zweibrücken (+49-6332-16629)
X-Gateway: mauszw am1.1r 030999.2248
X-Gateway-Administrator: postmaster@zw.maus.de
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lucky.medicusnet.de id CAA18022

Kommentar zu P9873@ZW in der Gruppe Persönliche

Hi Julian!

JR>> That makes perfect sense.  However there is many TOS versions
JR>> and newer/modified ones in the clones.  It seems much simpler to
JR>> narrow
JR>> the test to the kernal since it is only the kernal that uses the
JR>> extra bits.  That's just my opinion though.  ;-)
JR>
JR>Yes, and I think you are wrong. Not ignoring the bits when they are not
JR>needed is a bug. MagiC is safe, so you should set the bits there as
JR>well...

I haven't followed this thread very attentive. You are talking about the flags
that one can use for mxalloc? As far as I remember, you just have to check if
Ssystem-call is present - if not, you only should use the Flags 0 and 1:

FUNCTION mxmask
  IF GEMDOS(68,L:-1,0)=-32
    RETURN 0
  ELSE IF GEMDOS(290,-1)=-32
    RETURN 3
  ELSE
    RETURN -1
  ENDIF
ENDFUNC

That was the way that Frank wanted to write into the MiNT-docs. Thomas Binder
said, that Andreas Kromke agreed in adding Ssystem to MagiC when implementing
memory protection.


A happy new year!

Holger