Minor - don't call smm_init() from init_bios_tables()
smm is a system feature, not a memory table.
diff --git a/src/post.c b/src/post.c
index 3f86ead..31b9c2f 100644
--- a/src/post.c
+++ b/src/post.c
@@ -136,8 +136,6 @@
// XXX - not supported on coreboot yet.
return;
- smm_init();
-
create_pirtable();
mptable_init();
@@ -208,6 +206,8 @@
mouse_setup();
pci_bios_setup();
+ smm_init();
+
init_bios_tables();
memmap_finalize();
diff --git a/src/smm.c b/src/smm.c
index 5a79269..07c2898 100644
--- a/src/smm.c
+++ b/src/smm.c
@@ -77,6 +77,9 @@
void
smm_init()
{
+ if (CONFIG_COREBOOT)
+ // SMM only supported on emulators.
+ return;
if (!CONFIG_USE_SMM)
return;