ACPI now correctly only does the power on resume event on power on, not software-initiated hard resets, fixes #3794.
This commit is contained in:
@@ -1653,9 +1653,6 @@ acpi_reset(void *priv)
|
|||||||
dev->regs.gpi_val |= 0x00000004;
|
dev->regs.gpi_val |= 0x00000004;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Power on always generates a resume event. */
|
|
||||||
dev->regs.pmsts |= 0x8100;
|
|
||||||
|
|
||||||
acpi_rtc_status = 0;
|
acpi_rtc_status = 0;
|
||||||
|
|
||||||
acpi_update_irq(dev);
|
acpi_update_irq(dev);
|
||||||
@@ -1762,6 +1759,9 @@ acpi_init(const device_t *info)
|
|||||||
|
|
||||||
acpi_reset(dev);
|
acpi_reset(dev);
|
||||||
|
|
||||||
|
/* Power on always generates a resume event. */
|
||||||
|
dev->regs.pmsts |= 0x8100;
|
||||||
|
|
||||||
acpi_enabled = 1;
|
acpi_enabled = 1;
|
||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user