From: Paolo Bonzini Date: Mon, 27 Jul 2015 10:23:58 +0000 (+0200) Subject: smm: fix outl argument order X-Git-Tag: rel-1.9.0~82 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=908a58c1d5ffd3284815b6886fa6b8f848ee6475;p=seabios.git smm: fix outl argument order The value is the first argument and the port is the second, but the code was using the opposite order. Reported-by: Stefan Weil Reviewed-by: Stefan Weil Signed-off-by: Paolo Bonzini --- diff --git a/src/fw/smm.c b/src/fw/smm.c index 6cb484e..5145f14 100644 --- a/src/fw/smm.c +++ b/src/fw/smm.c @@ -184,7 +184,7 @@ static void piix4_apmc_smm_setup(int isabdf, int i440_bdf) /* enable SMI generation */ value = inl(acpi_pm_base + PIIX_PMIO_GLBCTL); - outl(acpi_pm_base + PIIX_PMIO_GLBCTL, value | PIIX_PMIO_GLBCTL_SMI_EN); + outl(value | PIIX_PMIO_GLBCTL_SMI_EN, acpi_pm_base + PIIX_PMIO_GLBCTL); smm_relocate_and_restore();