From mint-bounce@lists.fishpool.fi Thu Apr 7 23:35:31 2005 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Message-ID: <1112909541.4255a6e5c8530@imp4-q.free.fr> Date: Thu, 7 Apr 2005 23:32:21 +0200 From: Xavier Joubert To: MiNT Mailing List Subject: [MiNT] Trans.: Re: MMU usage in MiNT, fork/mmap MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 62.147.40.104 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: xavier.joubert@free.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: 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=2.1 tagged_above=-50.5 required=7.0 tests=BAYES_00, RCVD_IN_SORBS X-Spam-Level: ** Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by wh58-508.st.uni-magdeburg.de id j37LZTWn004181 Sorry for double post, Evan. ----- Message transféré de Xavier Joubert ----- Date : Thu, 7 Apr 2005 23:30:27 +0200 De : Xavier Joubert Adresse de retour :Xavier Joubert Sujet : Re: [MiNT] MMU usage in MiNT, fork/mmap À : "Evan K. Langlois" Hi Evan, Selon "Evan K. Langlois" : > OK, I remember some older machines doing that - think my 3b2 works that > way. That's gotta be a real performance killer though having to copy a > process at fork and again at every task switch. Is anyone actively You don't have to copy any data. A mere switch between two MMU trees is enough. > working on a real virtual address space for MiNT? I have a feeling this > will eventually be necessary. I wrote a full virtual memory engine for TOS some years ago. ASM sources are available on Patrice Mandin's site ( http://membres.lycos.fr/pmandin/download/src/sysinc.zip ). I was young. I didn't know mmap() at this time. I would write many things differently today. It's been a long time I would like to work on implementing this in MiNT. But I never found time to study current code. We need to implement a virtual address space first. To be clean, this should interact closely with disk cache management. > How different are the MMUs between the different processors? Looks like > I need to get that stupid cross-compiler working soon. 040 and 060 MMUs are a subset of 030 MMU. Don't use any 030 specific stuff. Each processor family (030, 040 and 060) has different way to configure its MMU and to recover from access fault. We need a code path for each. MMU trees are compatible. Best regards, Xavier ----- Fin du message transféré -----