From mint-bounce@lists.fishpool.fi Sun Jan 29 22:06:12 2006 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Subject: Re: [MiNT] modules hang 1.16.1 kernel (was RE: [Aranym-dev] [ARANYM.XIF] Hangs with 1.16.1 MiNT kernel) From: Petr Stehlik To: MiNT Mailing List In-Reply-To: <1138567981.6920.47.camel@joy.home> References: <000101c6250b$febb6600$0480a8c0@in.systinet.com> <1138567981.6920.47.camel@joy.home> Content-Type: text/plain; charset=ISO-8859-2 Date: Sun, 29 Jan 2006 22:03:10 +0100 Message-Id: <1138568590.6920.54.camel@joy.home> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 X-MIME-Autoconverted: from 8bit to quoted-printable by ms1.avonet.cz id k0TL3BOm007086 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: joy@sophics.cz 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=-0.8 tagged_above=-50.5 required=7.0 tests=AWL, BAYES_00 X-Spam-Level: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by wh58-508.st.uni-magdeburg.de id k0TL6AZI013505 Petr Stehlik píše v Ne 29. 01. 2006 v 21:53 +0100: > In other words: binutils' usage of d4 is not wrong (eventhough it's very > surprising). Standa's workaround (saving d4 register before executing > module code) is not a workaround but a valid fix. And make sure that all > Pexec like routines do save all registers as well since it's clear that > there is a lot of programs that clobber d4 out there :-) > > P.S. sys/module.c revision 1.28 tagged as beta_1_16_0 and dated > 2004/07/15 contains the "save all registers" 'workaround' so all we need > is to change our view and reword the original Frank's comment I have just realized that FreeMiNT kernel contained the protection for XDD and XFS loading since 1.16.0 beta (2004/07/15) but this protection has been missing for loading of the _XIF_ modules. Standa added it there on 2005/07/17, a year later. So we don't need just to change our view but mainly to release a fixed binaries of the kernel since public release of the kernel (1.16.1) with XIF modules built with new binutils bring this d4-clobbered problem. Petr