From 45b2d16c6bba328fd6a29c6d1eccacbc897c5be5 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 5 Jun 2020 19:55:33 +0200 Subject: [PATCH] ACPI reset now correctly sets the GPIREG registers back to 0xFF after zeroing all registers (which are the default values), fixes soft reset on the Abit BF6. --- src/acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/acpi.c b/src/acpi.c index 629b00b5f..17c9fe40b 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -787,6 +787,7 @@ acpi_reset(void *priv) int i; memset(&dev->regs, 0x00, sizeof(acpi_regs_t)); + dev->regs.gpireg[0] = dev->regs.gpireg[1] = dev->regs.gpireg[2] = 0xff; for (i = 0; i < 4; i++) dev->regs.gporeg[i] = dev->gporeg_default[i]; }