diff options
-rw-r--r-- | src/soc/intel/common/block/cpu/mp_init.c | 11 | ||||
-rw-r--r-- | src/soc/intel/common/block/include/intelblocks/mp_init.h | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/cpu/mp_init.c b/src/soc/intel/common/block/cpu/mp_init.c index 9b4278fa1b..cec767a9a0 100644 --- a/src/soc/intel/common/block/cpu/mp_init.c +++ b/src/soc/intel/common/block/cpu/mp_init.c @@ -167,6 +167,17 @@ static void wrapper_x86_setup_mtrrs(void *unused) x86_setup_mtrrs_with_detect(); } +static void wrapper_set_bios_done(void *unused) +{ + cpu_soc_bios_done(); +} + +void before_post_cpus_init(void) +{ + if (mp_run_on_all_cpus(&wrapper_set_bios_done, NULL) != CB_SUCCESS) + printk(BIOS_ERR, "Set BIOS Done failure\n"); +} + /* Ensure to re-program all MTRRs based on DRAM resource settings */ static void post_cpus_init(void *unused) { diff --git a/src/soc/intel/common/block/include/intelblocks/mp_init.h b/src/soc/intel/common/block/include/intelblocks/mp_init.h index 8a413eae8c..9029c91c45 100644 --- a/src/soc/intel/common/block/include/intelblocks/mp_init.h +++ b/src/soc/intel/common/block/include/intelblocks/mp_init.h @@ -34,6 +34,13 @@ void get_microcode_info(const void **microcode, int *parallel); void init_cpus(void); /* + * This function will perform any recommended CPU (BSP and AP) initialization + * after coreboot has done the multiprocessor initialization (before FSP-S) + * and prior to coreboot perform post_cpus_init (after DRAM resources are set). + */ +void before_post_cpus_init(void); + +/* * SoC Overrides * * All new SoC must implement below functionality for ramstage. |