diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-09-24 16:23:57 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-09-26 09:26:09 +0000 |
commit | d41feed800ca094ec8ac5f793b7ec2f345859b1c (patch) | |
tree | 9500a33e4875c29bfc8df873b77ad2b075bea023 /src/northbridge/amd/pi/00730F01 | |
parent | d229d4a28e6f398563a4f43035a63d5344ca7f4e (diff) | |
download | coreboot-d41feed800ca094ec8ac5f793b7ec2f345859b1c.tar.xz |
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/northbridge/amd/pi/00730F01')
-rw-r--r-- | src/northbridge/amd/pi/00730F01/northbridge.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/northbridge/amd/pi/00730F01/northbridge.c b/src/northbridge/amd/pi/00730F01/northbridge.c index 9014f29ee3..a762e2c46d 100644 --- a/src/northbridge/amd/pi/00730F01/northbridge.c +++ b/src/northbridge/amd/pi/00730F01/northbridge.c @@ -32,7 +32,6 @@ #include <FieldAccessors.h> #include <Options.h> #include <Topology.h> -#include <cpuRegisters.h> #include <northbridge/amd/agesa/agesa_helper.h> #if IS_ENABLED(CONFIG_BINARYPI_LEGACY_WRAPPER) #include <northbridge/amd/pi/agesawrapper.h> @@ -960,7 +959,7 @@ static void cpu_bus_scan(device_t dev) #endif /* Get Max Number of cores(MNC) */ - coreid_bits = (cpuid_ecx(AMD_CPUID_ASIZE_PCCOUNT) & 0x0000F000) >> 12; + coreid_bits = (cpuid_ecx(0x80000008) & 0x0000F000) >> 12; core_max = 1 << (coreid_bits & 0x000F); //mnc ApicIdCoreIdSize = ((cpuid_ecx(0x80000008)>>12) & 0xF); |