Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Feb 2005 10:39:05 -0800
From:      Nate Lawson <nate@root.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Ian Dowse <iedowse@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/dev/random probe.c
Message-ID:  <4207B5C9.4030505@root.org>
In-Reply-To: <200502071015.39224.jhb@FreeBSD.org>
References:  <200502061655.j16GtqDK033151@repoman.freebsd.org> <200502071015.39224.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin wrote:
> On Sunday 06 February 2005 11:55 am, Ian Dowse wrote:
> 
>>iedowse     2005-02-06 16:55:52 UTC
>>
>>  FreeBSD src repository
>>
>>  Modified files:
>>    sys/dev/random       probe.c
>>  Log:
>>  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.

That matters little since the cpuid result is then used to check for a 
VIA part introduced in 2003.

-- 
Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4207B5C9.4030505>