diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2021-02-15 13:20:35 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-03-18 08:13:33 +0000 |
commit | ed4be45d58ea482c1c8172bc4b2fa1c6af75c75f (patch) | |
tree | 16d9da57a5cad45b001f58f863cfbea040ab3569 /src/cpu/x86/smm/smm_stub.S | |
parent | 166d2ac901e2faafa84c88f46cdeb774dd1123bd (diff) |
cpu/x86/smm: Move apic_id_to_cpu map to smm_stub params
This is only consumed by the stub and not by the relocation handler or
the permanent handler, so move it out of the runtime struct.
Change-Id: I01ed0a412c23c8a82d88408be058a27e55d0dc4d
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50762
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/cpu/x86/smm/smm_stub.S')
-rw-r--r-- | src/cpu/x86/smm/smm_stub.S | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cpu/x86/smm/smm_stub.S b/src/cpu/x86/smm/smm_stub.S index b9b0670ef6..24cb684e10 100644 --- a/src/cpu/x86/smm/smm_stub.S +++ b/src/cpu/x86/smm/smm_stub.S @@ -25,6 +25,12 @@ fxsave_area: .long 0 fxsave_area_size: .long 0 +/* apic_to_cpu_num is a table mapping the default APIC id to CPU num. If the + * APIC id is found at the given index, the contiguous CPU number is index + * into the table. */ +apic_to_cpu_num: +.fill CONFIG_MAX_CPUS,1,0xff + /* struct smm_runtime begins here. */ smm_runtime: smbase: @@ -40,11 +46,6 @@ gnvs_ptr: /* allows the STM to bring up SMM in 32-bit mode */ start32_offset: .long smm_trampoline32 - _start -/* apic_to_cpu_num is a table mapping the default APIC id to CPU num. If the - * APIC id is found at the given index, the contiguous CPU number is index - * into the table. */ -apic_to_cpu_num: -.fill CONFIG_MAX_CPUS,1,0xff /* end struct smm_runtime */ .data |