From 2f4979f347ea7014786934cccab10772f6a6402a Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Fri, 20 Mar 2009 16:03:37 +0000 Subject: Fix CPUID typo. This caused fid to memory speed calculations to be off. Signed-off-by: Marc Jones Acked-by: Ward Vandewege git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4021 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/amd/amdk8/raminit_f.c | 2 +- src/northbridge/amd/amdk8/raminit_f_dqs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/northbridge/amd/amdk8/raminit_f.c b/src/northbridge/amd/amdk8/raminit_f.c index 419b3b437f..b24ef82b7f 100644 --- a/src/northbridge/amd/amdk8/raminit_f.c +++ b/src/northbridge/amd/amdk8/raminit_f.c @@ -1655,7 +1655,7 @@ static uint8_t get_exact_divisor(int i, uint8_t divisor) /* Check for FID control support */ struct cpuid_result cpuid1; - cpuid1 = cpuid(0x8000007); + cpuid1 = cpuid(0x80000007); if( cpuid1.edx & 0x02 ) { /* Use current FID */ unsigned fid_cur; diff --git a/src/northbridge/amd/amdk8/raminit_f_dqs.c b/src/northbridge/amd/amdk8/raminit_f_dqs.c index 2ba51eff3d..b110480e7c 100644 --- a/src/northbridge/amd/amdk8/raminit_f_dqs.c +++ b/src/northbridge/amd/amdk8/raminit_f_dqs.c @@ -426,7 +426,7 @@ static uint16_t get_exact_T1000(unsigned i) /* Check for FID control support */ struct cpuid_result cpuid1; - cpuid1 = cpuid(0x8000007); + cpuid1 = cpuid(0x80000007); if( cpuid1.edx & 0x02 ) { /* Use current FID */ unsigned fid_cur; -- cgit v1.2.3