diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-09-13 23:56:26 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-09-13 23:56:26 +0000 |
commit | 390abbd1c75992f497b7528b4ffaf6a37d6fee22 (patch) | |
tree | 4942eeb71eeac9307ee73abcc1f89708c47eca3f /sys/src/9/pc | |
parent | 4f310b8f515e28f44f06554684b349dadcc5b0dd (diff) |
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
Diffstat (limited to 'sys/src/9/pc')
-rw-r--r-- | sys/src/9/pc/archacpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |