summaryrefslogtreecommitdiff
path: root/src/cpu/intel/model_1067x
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2021-01-25 09:42:08 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-02-01 08:46:30 +0000
commit3fa23b8c008709e4204992c52fcd5b729454b333 (patch)
tree9e37e3f51c4a4c375a3cf497db1db5663f39fe28 /src/cpu/intel/model_1067x
parent7aaea37e3756803450201bcd9ef202aa4ddc3c02 (diff)
soc/intel/*: Get rid of custom microcode caching
Get rid of custom microcode caching in MPinit and SGX code and use the caching introduced in intel_microcode_find() instead. Change-Id: If3ccd4dcff221c88839ffeafa812f4c38cede63f Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49897 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/cpu/intel/model_1067x')
-rw-r--r--src/cpu/intel/model_1067x/mp_init.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/cpu/intel/model_1067x/mp_init.c b/src/cpu/intel/model_1067x/mp_init.c
index ff6cbec8dc..fd6a82ac17 100644
--- a/src/cpu/intel/model_1067x/mp_init.c
+++ b/src/cpu/intel/model_1067x/mp_init.c
@@ -9,11 +9,10 @@
#include <device/device.h>
/* Parallel MP initialization support. */
-static const void *microcode_patch;
-
static void pre_mp_init(void)
{
- intel_microcode_load_unlocked(microcode_patch);
+ const void *patch = intel_microcode_find();
+ intel_microcode_load_unlocked(patch);
/* Setup MTRRs based on physical address size. */
x86_setup_mtrrs_with_detect();
@@ -32,7 +31,7 @@ static int get_cpu_count(void)
static void get_microcode_info(const void **microcode, int *parallel)
{
- *microcode = microcode_patch;
+ *microcode = intel_microcode_find();
*parallel = !intel_ht_supported();
}
@@ -98,8 +97,6 @@ static const struct mp_ops mp_ops = {
void mp_init_cpus(struct bus *cpu_bus)
{
- microcode_patch = intel_microcode_find();
-
if (mp_init_with_smm(cpu_bus, &mp_ops))
printk(BIOS_ERR, "MP initialization failure.\n");
}