提交 54f8e61d 编写于 作者: W Wen Congyang 提交者: Aurelien Jarno

fix acpi regression

This bug is introduced by commit 23910d3f.
Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 54f7b4a3
......@@ -355,7 +355,7 @@ static uint8_t *acpi_gpe_ioport_get_ptr(ACPIGPE *gpe, uint32_t addr)
if (addr < gpe->len / 2) {
cur = gpe->sts + addr;
} else if (addr < gpe->len) {
cur = gpe->en + addr;
cur = gpe->en + addr - gpe->len / 2;
} else {
abort();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册