From 3b387458b57f369056b0a45bf4f17e5e074c13ce Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 6 Mar 2009 19:52:36 +0000 Subject: * 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 Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3982 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/x86/smm/smihandler.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/cpu/x86/smm') 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"); } /** -- cgit v1.2.3