From mint-bounce@lists.fishpool.fi Sat Jun 6 02:28:24 2009 Message-ID: <4A2A0AF9.8070207@freesbee.fr> Date: Sat, 06 Jun 2009 08:21:45 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: mint Subject: Re: [MiNT] CPU detection broken References: <4A225A61.9000901@freesbee.fr> <4A2418ED.1040502@freesbee.fr> In-Reply-To: <4A2418ED.1040502@freesbee.fr> Content-Type: multipart/mixed; boundary="------------010308070209030104050307" X-Antivirus: avast! (VPS 090605-0, 05/06/2009), Outbound message X-Antivirus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: This is a multi-part message in MIME format. --------------010308070209030104050307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable I forgot to remove the old CPU detection. It is now useless since that work is done earlier. Frank or Alan, could you please commit this small patch ? ---------------------------------------------------------------------- Removed old CPU detection. Contributed by Vincent Riviere. ---------------------------------------------------------------------- --=20 Vincent Rivi=E8re --------------010308070209030104050307 Content-Type: text/plain; name="cleancpu.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cleancpu.patch" diff -aurN -x CVS mintlib.orig/mintlib/main.c mintlib/mintlib/main.c --- mintlib.orig/mintlib/main.c 2008-06-15 11:01:42.000000000 +0200 +++ mintlib/mintlib/main.c 2009-06-06 08:13:28.796875000 +0200 @@ -86,7 +86,6 @@ __libc_unix_names = 0; __scriptable = 0; - __has_no_ssystem = Ssystem (-1, NULL, NULL); _starttime = get_sysvar (_hz_200); _childtime = 0; @@ -101,16 +100,6 @@ if (_app) _pdomain = Pdomain(1); /* set MiNT domain */ - /* Check hardware requirements. */ -#ifdef __M68020__ - if (Getcookie (C__CPU, &l) != C_FOUND || l < 20) - __libc_fatal ("this program requires an m68020 cpu or higher!"); -#endif -#ifdef __M68881__ - if (Getcookie (C__FPU, &l) != C_FOUND || l == 0) - __libc_fatal ("this program requires an fpu!"); -#endif - /* Check if we are suid or guid. We simply use the bare operating * system calls because we only check for differences. If it fails * once it will always fail. --------------010308070209030104050307--