summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-03-06 19:52:36 +0000
committerStefan Reinauer <stepan@openbios.org>2009-03-06 19:52:36 +0000
commit3b387458b57f369056b0a45bf4f17e5e074c13ce (patch)
tree092d45baf4adf7d1be4a86cc7d34429c83495f15 /src/cpu/x86
parent43b29cf891c78a2cd01d22a2731c7da828d79e0a (diff)
downloadcoreboot-3b387458b57f369056b0a45bf4f17e5e074c13ce.tar.xz
* fix a minor power state issue in the ich7 smm handler
* move mainboard dependent code into a mainboard SMI handler. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3982 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/smm/smihandler.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cpu/x86/smm/smihandler.c b/src/cpu/x86/smm/smihandler.c
index 0dc8926653..8d2e22a381 100644
--- a/src/cpu/x86/smm/smihandler.c
+++ b/src/cpu/x86/smm/smihandler.c
@@ -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");
}
/**