From mint-bounce@lists.fishpool.fi  Sat Nov 13 12:42:10 2004
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
X-Envelope-From: Gerhard_Stoll@b.maus.de
X-Envelope-To: <mint@fishpool.com>
From: Gerhard_Stoll@b.maus.de (Gerhard Stoll)
To: mint@fishpool.com
Subject: [MiNT] Mxalloc() and memory protection
Message-ID: <200411131122.p41118@b.maus.de>
In-Reply-To: <D2F1A6A8-336F-11D9-A6CB-000D9356BAEE@epfl.ch>
Date: Sat, 13 Nov 2004 11:22:00 +0100
Organization: MAUS Berlin (+49-30-82701142)
X-Gateway: b3.maus.de gb1.1r 102698.1858
X-Gateway-Administrator: postmaster@b3.maus.de
Lines: 23
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: Gerhard_Stoll@b.maus.de
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-0.8 tagged_above=-50.5 required=3.8 tests=AWL,
 BAYES_00
X-Spam-Level: 

PD> (Atari Compendium, TOS.HYP), you'll read that the "bit 3" has a
PD> special meaning

After I look to some old news I things that this is wrong. What I found is that
for MiNT the bit 3 is defined, but not used (sys/dosmem.c):
-------------------------------cut-------------------------------
# if 0
	/* I'm very suspicious of the 0x08 flag; I can't see how it could
	 * work as the comment below seems to indicate -- ERS
	 */

	/* if the mode argument has the 0x08 bit set then you're trying
	 * to change the protection mode of a block you already own.
	 * "size" is really its base address. (new as of 2/6/1992)
	 */
	if (mode & 0x08) change_prot_status(curproc,size,protmode);
# endif
-------------------------------cut-------------------------------

I will changed the tos.hyp that bit is reserved.

Gerhard


