Add additional config options to remove parts of code.
[seabios.git] / src / smm.c
index 9500e923bf38e81b779f62d1cca66ee0f7ee8172..6f5fbb151d54fbf5214071910e8edfd24ff7b9f0 100644 (file)
--- a/src/smm.c
+++ b/src/smm.c
@@ -10,6 +10,7 @@
 #include "config.h" // CONFIG_*
 #include "ioport.h" // outb
 
+#if CONFIG_USE_SMM
 asm(
     ".global smm_relocation_start\n"
     ".global smm_relocation_end\n"
@@ -67,6 +68,7 @@ asm(
     "smm_code_end:\n"
     "  .code32\n"
     );
+#endif
 
 extern u8 smm_relocation_start, smm_relocation_end;
 extern u8 smm_code_start, smm_code_end;