summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2017-09-24 16:23:57 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2017-09-26 09:26:09 +0000
commitd41feed800ca094ec8ac5f793b7ec2f345859b1c (patch)
tree9500a33e4875c29bfc8df873b77ad2b075bea023 /src/soc/amd/stoneyridge
parentd229d4a28e6f398563a4f43035a63d5344ca7f4e (diff)
AGESA: Avoid cpuRegisters.h include
Change-Id: I077677c10508a89a79bcb580249c1310e319aaf1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/21664 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/northbridge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c
index c0f5850155..d9cc281ef3 100644
--- a/src/soc/amd/stoneyridge/northbridge.c
+++ b/src/soc/amd/stoneyridge/northbridge.c
@@ -40,7 +40,6 @@
* and not set by vendorcode
*/
#include <AGESA.h>
-#include <cpuRegisters.h>
#include <FieldAccessors.h>
#include <Options.h>
#include <Porting.h>
@@ -573,7 +572,7 @@ void cpu_bus_scan(device_t dev)
}
/* Get max and actual number of cores */
- pccount = cpuid_ecx(AMD_CPUID_ASIZE_PCCOUNT);
+ pccount = cpuid_ecx(0x80000008);
core_max = 1 << ((pccount >> 12) & 0xf);
core_nums = (pccount & 0xF);