Do garbage collection of unused sections.
[seabios.git] / src / smm.c
index 07c289856ca464eb205b25d3505e25042c9e189b..31e56d8c285bac984ed6bcec65407ac88ff1a2c8 100644 (file)
--- a/src/smm.c
+++ b/src/smm.c
@@ -3,7 +3,7 @@
 // Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
 // Copyright (C) 2006 Fabrice Bellard
 //
-// This file may be distributed under the terms of the GNU GPLv3 license.
+// This file may be distributed under the terms of the GNU LGPLv3 license.
 
 #include "pci.h" // pci_config_writel
 #include "util.h" // wbinvd
@@ -11,8 +11,7 @@
 #include "ioport.h" // outb
 #include "pci_ids.h" // PCI_VENDOR_ID_INTEL
 
-#if CONFIG_USE_SMM
-asm(
+ASM32(
     ".global smm_relocation_start\n"
     ".global smm_relocation_end\n"
     ".global smm_code_start\n"
@@ -69,7 +68,6 @@ asm(
     "smm_code_end:\n"
     "  .code32\n"
     );
-#endif
 
 extern u8 smm_relocation_start, smm_relocation_end;
 extern u8 smm_code_start, smm_code_end;