[LinuxBIOS] LNXI Merge: lnxi-patch-10/16

yhlu yinghailu at gmail.com
Sat Sep 3 03:10:40 CEST 2005


D0 ?
 YH

 On 9/2/05, jason schildt <jschildt at lnxi.com> wrote: 
> 
> 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
> 
> --
> LinuxBIOS mailing list
> LinuxBIOS at openbios.org
> http://www.openbios.org/mailman/listinfo/linuxbios
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20050902/43cd7761/attachment.html>


More information about the coreboot mailing list