cpu/x86: Change old-style SMI handler prototypes

Change-Id: Ic1e3cae5298997b552020b78e6ff56d60cf22036
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34821
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kyösti Mälkki
2019-08-10 15:32:03 +03:00
parent c4fdb7b923
commit 1ef039bb49
7 changed files with 5 additions and 33 deletions

View File

@@ -194,9 +194,7 @@ void smi_handler(u32 smm_revision)
}
/* Call chipset specific SMI handlers. */
cpu_smi_handler(node, &state_save);
northbridge_smi_handler(node, &state_save);
southbridge_smi_handler(node, &state_save);
southbridge_smi_handler();
smi_restore_pci_address();
@@ -211,12 +209,7 @@ void smi_handler(u32 smm_revision)
* weak relocations w/o a symbol have a 0 address which is where the modules
* are linked at. */
int __weak mainboard_io_trap_handler(int smif) { return 0; }
void __weak cpu_smi_handler(unsigned int node,
smm_state_save_area_t *state_save) {}
void __weak northbridge_smi_handler(unsigned int node,
smm_state_save_area_t *state_save) {}
void __weak southbridge_smi_handler(unsigned int node,
smm_state_save_area_t *state_save) {}
void __weak southbridge_smi_handler(void) {}
void __weak mainboard_smi_gpi(u32 gpi_sts) {}
int __weak mainboard_smi_apmc(u8 data) { return 0; }
void __weak mainboard_smi_sleep(u8 slp_typ) {}