ref: 390abbd1c75992f497b7528b4ffaf6a37d6fee22
parent: 4f310b8f515e28f44f06554684b349dadcc5b0dd
author: Ori Bernstein <[email protected]>
date: Mon Sep 13 19:56:26 EDT 2021
archacpi: leave acpi enabled with *acpi= *acpi= was treated the same as *acpi=0, when we want it to be treated the same as *acpi=1
--- a/sys/src/9/pc/archacpi.c
+++ b/sys/src/9/pc/archacpi.c
@@ -791,7 +791,7 @@
char *cp;
Tbl *t;
- if((cp = getconf("*acpi")) == nil)
+ if((cp = getconf("*acpi")) == nil || *cp == '\0')
cp = "1"; /* search for rsd by default */
v = (uintptr)strtoull(cp, nil, 16);
if(v <= 1)