cpu/x86/mp_init.c: Copy the stub parameter start32_offset into ramstage
commit1dfa46ecfd6c0bcbfb10d6e3c051806f5e62c2ff
authorArthur Heymans <arthur@aheymans.xyz>
Mon, 15 Feb 2021 15:19:33 +0000 (15 16:19 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 19 Mar 2021 11:29:20 +0000 (19 11:29 +0000)
treef94420698b469a41f7ede3144cfd2210402082fd
parent823b1a827046ccfc00835bfbce95824dd644e9f9
cpu/x86/mp_init.c: Copy the stub parameter start32_offset into ramstage

Keep a copy of start32_offset into ramstage to avoid needing to pass
arguments, calling from assembly. Doing this in C code is better than
assembly.

Change-Id: Iac04358e377026f45293bbee03e30d792df407fd
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50765
Reviewed-by: Eugene Myers <cedarhouse1@comcast.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/cpu/x86/mp_init.c
src/cpu/x86/smm/smm_module_loaderv2.c
src/cpu/x86/smm/smm_stub.S
src/include/cpu/x86/smm.h