* 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
This commit is contained in:
Stefan Reinauer
2009-03-06 19:52:36 +00:00
committed by Stefan Reinauer
parent 43b29cf891
commit 3b387458b5
6 changed files with 81 additions and 30 deletions

View 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");
}
/**