svn commit: r270850 - in head/sys: i386/i386 i386/include i386/isa x86/acpica

Konstantin Belousov kostikbel at gmail.com
Thu Sep 11 08:51:40 UTC 2014


On Wed, Sep 10, 2014 at 10:41:00AM -0400, John Baldwin wrote:
> On Tuesday, September 09, 2014 11:58:13 AM Konstantin Belousov wrote:
> > On Sat, Sep 06, 2014 at 04:04:49PM -0400, John Baldwin wrote:
> > Move of the code to initialize CPU from identcpu() to initializecpu()
> > seems to be a fix on its own.  Since you are moving the fragments
> > around, would you mind start using CPUID_MODEL/STEPPING etc constants ?
> > The code was ancient, probably predating the defines.
> 
> I will probably split this up into a couple of commits one of which will be
> to move register setting from identcpu.c to initcpu.c.  I can look at using
> the constants, but in particular when using CPUID_TO_*() the logic is slightly
> different (e.g. you have to check for model and family values for '6' instead
> of '60' or '600'), so I would prefer to do those changes as a separate commit
> to help with debugging in the future if I get one wrong.
> 
I only asked about CPUID_MODEL etc constants (masks), which does not
require the logic change.  I think that CPUID_TO_*() is simply not
suitable there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20140911/935e2392/attachment.sig>


More information about the svn-src-head mailing list