1 comment:
File src/cpu/x86/smm/smm_save_state.c:
int smm_save_state_ops_init(void)
{
uint32_t smm_revision = smm_get_revision();
switch (smm_revision) {
case 0x00030002:
case 0x00030007:
ops = &legacy_save_state_ops;
return 0;
case 0x00030100:
ops = &em64t100_save_state_ops;
return 0;
case 0x00030101: /* SandyBridge, IvyBridge, and Haswell */
ops = &em64t101_save_state_ops;
return 0;
case 0x00020064:
case 0x00030064:
ops = &amd64_save_state_ops;
return 0;
default:
printk(BIOS_DEBUG, "smm_revision: 0x%08x\n", smm_revision);
printk(BIOS_DEBUG, "SMI# not supported on your CPU\n");
return 1;
}
}
Maybe it's more elegant to have a linker symbol + section CPU states (similar to __cpu_driver). That would allow to link only the ones relevant for a CPU?
To view, visit change 36661. To unsubscribe, or for help writing mail filters, visit settings.