diff --git a/src/acpi.c b/src/acpi.c index 544145553..0fe25d79f 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -1653,9 +1653,6 @@ acpi_reset(void *priv) dev->regs.gpi_val |= 0x00000004; } - /* Power on always generates a resume event. */ - dev->regs.pmsts |= 0x8100; - acpi_rtc_status = 0; acpi_update_irq(dev); @@ -1762,6 +1759,9 @@ acpi_init(const device_t *info) acpi_reset(dev); + /* Power on always generates a resume event. */ + dev->regs.pmsts |= 0x8100; + acpi_enabled = 1; return dev; }