diff options
author | Jordan Hargrave <jordan@cvs.openbsd.org> | 2011-03-20 00:09:15 +0000 |
---|---|---|
committer | Jordan Hargrave <jordan@cvs.openbsd.org> | 2011-03-20 00:09:15 +0000 |
commit | f33731d4a26196ef6b16bc6822b52edc09242983 (patch) | |
tree | 8c0c054659ffcafecf451e1da797f5bc740359c0 /sys | |
parent | 5fff35ce903d331d68cbfb1e3fa73edfb236866b (diff) |
changes the values of boolean comparisons from 0:1 to 0:-1 (from ACPI Spec) in order to fix an AML issue on some Asus machines.
ok marco@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/dsdt.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index 3c18fbe947d..9f36a2d86d6 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.181 2011/01/02 04:56:57 jordan Exp $ */ +/* $OpenBSD: dsdt.c,v 1.182 2011/03/20 00:09:14 jordan Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -1167,31 +1167,31 @@ aml_evalexpr(int64_t lhs, int64_t rhs, int opcode) /* Logical/Comparison */ case AMLOP_LAND: - res = (lhs && rhs); + res = -(lhs && rhs); break; case AMLOP_LOR: - res = (lhs || rhs); + res = -(lhs || rhs); break; case AMLOP_LNOT: - res = (!lhs); + res = -(!lhs); break; case AMLOP_LNOTEQUAL: - res = (lhs != rhs); + res = -(lhs != rhs); break; case AMLOP_LLESSEQUAL: - res = (lhs <= rhs); + res = -(lhs <= rhs); break; case AMLOP_LGREATEREQUAL: - res = (lhs >= rhs); + res = -(lhs >= rhs); break; case AMLOP_LEQUAL: - res = (lhs == rhs); + res = -(lhs == rhs); break; case AMLOP_LGREATER: - res = (lhs > rhs); + res = -(lhs > rhs); break; case AMLOP_LLESS: - res = (lhs < rhs); + res = -(lhs < rhs); break; } |