summaryrefslogtreecommitdiff
path: root/src/arch/x86/include
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2024-01-04 17:28:33 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-01-11 22:35:04 +0000
commita0a26a77c0ed00a43f6832a2985d37a0a67975ff (patch)
tree3b55e12aa28f4ea7beff607c938b3bb4c134361a /src/arch/x86/include
parentdf327f4a88bcfd6bc5db8256698f9e293bb9e03f (diff)
drivers/smmstore/ramstage: use call_smm
Use call_smm instead of open-coding the same in inline assembly functionality in init_store. The local ebx variable is dropped, since call_smm takes a pointer to the argument instead of an integer, and the local eax variable is renamed to res to make the code a bit clearer, since the EAX register is used for both passing the command and subcommand to the APMC SMI handler and to get the return value from the handler. TEST=SMMSTORE V2 still works with the EDK2 payload on Careena Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ib14de0d120ae5c7db3bb7a529837ababe653e1a2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79766 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/arch/x86/include')
0 files changed, 0 insertions, 0 deletions