summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorZheng Bao <zheng.bao@amd.com>2009-07-10 03:42:13 +0000
committerZheng Bao <Zheng.Bao@amd.com>2009-07-10 03:42:13 +0000
commit7d4fd2c1081a7674c0631cbe96aa23ca51879586 (patch)
tree0181977d175d4a3e2fc2913a62ff3387aafa028d /src/southbridge
parent9f26b8f7108f96dba4872fd344d7f102a19734d3 (diff)
downloadcoreboot-7d4fd2c1081a7674c0631cbe96aa23ca51879586.tar.xz
This seems to be a more official, common, simple way to check if the CPU is dual core or
single core. Signed-off-by: Zheng Bao <zheng.bao@amd.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4415 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/amd/sb600/sb600_early_setup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/southbridge/amd/sb600/sb600_early_setup.c b/src/southbridge/amd/sb600/sb600_early_setup.c
index b605b5e3bf..df3c558922 100644
--- a/src/southbridge/amd/sb600/sb600_early_setup.c
+++ b/src/southbridge/amd/sb600/sb600_early_setup.c
@@ -125,11 +125,7 @@ static u32 get_sbdn(u32 bus)
static u8 dual_core()
{
- if(((cpuid_eax(0x80000000) & ~0xff) >= 8)) {
- if(cpuid_ecx(0x80000008) & 1)
- return 1;
- }
- return 0;
+ return (pci_read_config32(PCI_DEV(0, 0x18, 3), 0xE8) & (0x3<<12)) != 0;
}
/*