[coreboot] [patch] number of core of AMD fam10
Bao, Zheng
Zheng.Bao at amd.com
Mon Apr 18 09:02:09 CEST 2011
The "temp" will be used later. So it has to be calculated correctly.
Signed-off-by: Zheng Bao <zheng.bao at amd.com>
Index: src/northbridge/amd/amdht/h3ncmn.c
===================================================================
--- src/northbridge/amd/amdht/h3ncmn.c (revision 6512)
+++ src/northbridge/amd/amdht/h3ncmn.c (working copy)
@@ -565,7 +565,8 @@
/* bits[15,13,12] specify the cores */
/* Support Downcoring */
- cores = ((temp & 8) >> 1) + (temp & 3) + 1;
+ temp = ((temp & 8) >> 1) + (temp & 3);
+ cores = temp + 1;
AmdPCIReadBits (MAKE_SBDFO(makePCISegmentFromNode(node),
makePCIBusFromNode(node),
makePCIDeviceFromNode(node),
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fam10_number_of_core.patch
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20110418/fae2b324/attachment.ksh>
More information about the coreboot
mailing list