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

Re: [MiNT] CPU detection broken



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.
----------------------------------------------------------------------

--
Vincent Rivière
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.