mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Simplify AMD64_CPU_MODEL() and AMD64_CPU_FAMILY() macros as the base family
should be at least 0xf00 for all supported platforms.
This commit is contained in:
parent
0c0c75a824
commit
e39dddd413
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184170
@ -162,12 +162,10 @@
|
||||
#define CPUID_EXT_FAMILY 0x0ff00000
|
||||
#define AMD64_CPU_MODEL(id) \
|
||||
((((id) & CPUID_MODEL) >> 4) | \
|
||||
((((id) & CPUID_FAMILY) >= 0x600) ? \
|
||||
(((id) & CPUID_EXT_MODEL) >> 12) : 0))
|
||||
(((id) & CPUID_EXT_MODEL) >> 12))
|
||||
#define AMD64_CPU_FAMILY(id) \
|
||||
((((id) & CPUID_FAMILY) >> 8) + \
|
||||
((((id) & CPUID_FAMILY) == 0xf00) ? \
|
||||
(((id) & CPUID_EXT_FAMILY) >> 20) : 0))
|
||||
(((id) & CPUID_EXT_FAMILY) >> 20))
|
||||
|
||||
/*
|
||||
* CPUID instruction 1 ebx info
|
||||
|
Loading…
Reference in New Issue
Block a user