* fix a minor power state issue in the ich7 smm handler
[coreboot.git] / src / cpu / x86 / smm / smihandler.c
index 0dc8926653df18ddce8ae85d2411629d8e97739c..8d2e22a3815c8d941f8a948b8d329ff8669e1024 100644 (file)
@@ -129,7 +129,18 @@ void console_tx_byte(unsigned char byte)
 
 void io_trap_handler(int smif)
 {
-       southbridge_io_trap_handler(smif);
+       /* If a handler function handled a given IO trap, it
+        * shall return a non-zero value
+        */
+        printk_debug("SMI function trap 0x%x: ", smif);
+
+       if (southbridge_io_trap_handler(smif))
+               return;
+
+       if (mainboard_io_trap_handler(smif))
+               return;
+
+       printk_debug("Unknown function\n");
 }
 
 /**