cpu/x86/smm_loaderv2: Fix when only 1 CPU is present
commitdfff5c2d193066adff8e0bee9ed4525b622eb7c8
authorArthur Heymans <arthur@aheymans.xyz>
Mon, 15 Feb 2021 22:39:01 +0000 (15 23:39 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 19 Mar 2021 11:31:17 +0000 (19 11:31 +0000)
tree4c66baf5dd9e96cf534d5dcc31441200e7ab8ad5
parent50e849fc9b09773b2647bd074e9f08e1a5f028a3
cpu/x86/smm_loaderv2: Fix when only 1 CPU is present

Move out smm_create_map as this was not run if concurrent_save_states
is 1. The cpus struct array is used in the smm_get_cpu_smbase()
callback so it is necessary to create this.

TEST: run qemu/q35 with -smp 1 (or no -smp argument)

Change-Id: I07a98bbc9ff6dce548171ee6cd0c303db94087aa
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50783
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/cpu/x86/smm/smm_module_loaderv2.c