From 390abbd1c75992f497b7528b4ffaf6a37d6fee22 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Mon, 13 Sep 2021 23:56:26 +0000 Subject: [PATCH] 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 --- sys/src/9/pc/archacpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/pc/archacpi.c b/sys/src/9/pc/archacpi.c index 044825a8c..f1b675a43 100644 --- a/sys/src/9/pc/archacpi.c +++ b/sys/src/9/pc/archacpi.c @@ -791,7 +791,7 @@ identify(void) 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)