[LinuxBIOS] LNXI Merge: lnxi-patch-10/16
jason schildt
jschildt at lnxi.com
Sat Sep 3 00:03:29 CEST 2005
DESCRIPTION:
-------------------------------------
## lnxi-patch-10 ##
src/northbridge/amd/amdk8/cpu_rev.c
Testing for ranges of CPUs instead of exact matches.
DIFFSTAT:
-------------------------------------
cpu_rev.c | 33 ++++++---------------------------
1 files changed, 6 insertions(+), 27 deletions(-)
PATCH:
-------------------------------------
Index: northbridge/amd/amdk8/cpu_rev.c
===================================================================
--- northbridge/amd/amdk8/cpu_rev.c (revision 1105)
+++ northbridge/amd/amdk8/cpu_rev.c (working copy)
@@ -3,44 +3,23 @@
{
return (cpuid_eax(1) & 0xfffef) == 0x0f00;
}
-//AMD_D0_SUPPORT
-static int is_cpu_pre_d0(void)
-{
- return (cpuid_eax(1) & 0xfff0f) < 0x10f00;
-}
-static int is_cpu_d0(void)
+static int is_cpu_pre_b3(void)
{
- return (cpuid_eax(1) & 0xfff0f) == 0x10f00;
+ return (cpuid_eax(1) & 0xfffef) < 0x0f41;
}
-//AMD_E0_SUPPORT
-static int is_cpu_pre_e0(void)
-{
- return (cpuid_eax(1) & 0xfff0f) < 0x20f00;
-}
-
-static int is_cpu_e0(void)
-{
- return (cpuid_eax(1) & 0xfff00) == 0x20f00;
-}
-
static int is_cpu_pre_c0(void)
{
return (cpuid_eax(1) & 0xfffef) < 0x0f48;
}
-static int is_cpu_c0(void)
+static int is_cpu_pre_d0(void)
{
- return (cpuid_eax(1) & 0xfffef) == 0x0f48;
+ return (cpuid_eax(1) & 0xfff0f) < 0x10000;
}
-static int is_cpu_pre_b3(void)
+static int is_cpu_pre_e0(void)
{
- return (cpuid_eax(1) & 0xfffef) < 0x0f41;
+ return (cpuid_eax(1) & 0xfff0f) < 0x20f00;
}
-
-static int is_cpu_b3(void)
-{
- return (cpuid_eax(1) & 0xfffef) == 0x0f41;
-}
--
Jason W. Schildt
LinuxBIOS Software Engineer
Linux Networx
More information about the coreboot
mailing list