southbridge/hudson: Pass GEVENT SMIs to mainboard_smi_gpi()
Change-Id: Ifc368974a7a0dc0756431654fb89668e3846801a Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5502 Reviewed-by: Aaron Durbin <adurbin@gmail.com> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
2dbd08faf4
commit
22d90e34f9
|
@ -37,6 +37,14 @@ static void process_smi_sci(void)
|
|||
static void process_gpe_smi(void)
|
||||
{
|
||||
const uint32_t status = smi_read32(0x80);
|
||||
const uint32_t gevent_mask = (1 << 24) - 1;
|
||||
|
||||
/* Only Bits [23:0] indicate GEVENT SMIs. */
|
||||
if (status & gevent_mask) {
|
||||
/* A GEVENT SMI occured */
|
||||
if (mainboard_smi_gpi)
|
||||
mainboard_smi_gpi(status & gevent_mask);
|
||||
}
|
||||
|
||||
/* Clear events to prevent re-entering SMI if event isn't handled */
|
||||
smi_write32(0x80, status);
|
||||
|
|
Loading…
Reference in New Issue