From 1b32a51e515ce25495f87a82d1575d26acd93228 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sun, 26 May 2013 18:24:41 +0200 Subject: i82801gx: smihandle: sync with southbridge/intel/bd82x6x/smihandler.c Change-Id: Ic725b169061bd426aa8206dc1d6d31e67cc639f2 Signed-off-by: Denis 'GNUtoo' Carikli Reviewed-on: http://review.coreboot.org/3304 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/southbridge/intel/i82801gx/smihandler.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/southbridge') diff --git a/src/southbridge/intel/i82801gx/smihandler.c b/src/southbridge/intel/i82801gx/smihandler.c index 237ac085fb..a33e9a72af 100644 --- a/src/southbridge/intel/i82801gx/smihandler.c +++ b/src/southbridge/intel/i82801gx/smihandler.c @@ -20,6 +20,7 @@ */ #include +#include #include #include #include @@ -345,6 +346,9 @@ static void southbridge_smi_sleep(unsigned int node, smm_state_save_area_t *stat */ outl(reg32 | SLP_EN, pmbase + PM1_CNT); + /* Make sure to stop executing code here for S3/S4/S5 */ + if (slp_typ > 1) + hlt(); /* In most sleep states, the code flow of this function ends at * the line above. However, if we entered sleep state S1 and wake * up again, we will continue to execute code in this function. -- cgit v1.2.3