cpu/x86/smm/smmhandler.c: Get revision using C code

This allows to remove some assembly code.

Tested with QEMU Q35 to still print the revision correctly.

Change-Id: I36fb0e8bb1f46806b11ef8102ce74c0d10fd3927
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44319
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Arthur Heymans
2020-08-09 15:09:51 +02:00
committed by Patrick Georgi
parent 258ceb7507
commit ac0d2ee2de
3 changed files with 5 additions and 14 deletions

View File

@@ -15,6 +15,6 @@ void smm_init_completion(void);
#endif
/* Entry from smmhandler.S. */
void smi_handler(u32 smm_revision);
void smi_handler(void);
#endif