From owner-cvs-src@FreeBSD.ORG Mon Feb 7 18:23:38 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82D8D16A4CE; Mon, 7 Feb 2005 18:23:38 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 276C243D3F; Mon, 7 Feb 2005 18:23:37 +0000 (GMT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 Feb 2005 18:23:36 +0000 (GMT) To: John Baldwin In-Reply-To: Your message of "Mon, 07 Feb 2005 10:15:39 EST." <200502071015.39224.jhb@FreeBSD.org> Date: Mon, 07 Feb 2005 18:23:36 +0000 From: Ian Dowse Message-ID: <200502071823.aa13056@salmon.maths.tcd.ie> cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/random probe.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 18:23:38 -0000 In message <200502071015.39224.jhb@FreeBSD.org>, John Baldwin writes: >On Sunday 06 February 2005 11:55 am, Ian Dowse wrote: >> Check that we have at least a 586-class CPU before calling do_cpuid(). >> This fixes booting on a number of 486 processors. > >This is wrong. Some 486's do have cpuid, notable the dx4's (I used to have >one.) The correct test is to see if you can flip a bit in %eflags (can't >remember which one). If that flag stays at zero then you don't have cpuid, >if the bit follows the value written to it then you do have cpuid. Indeed - it's just a quick workaround that I'll fix when you find me a 486 with a Nehemiah random number generator ;-) Ian