Skip to content

Commit 7d42f88

Browse files
martin-hughesIsaacWoods
authored andcommitted
Logical not only requires one arg
1 parent c149532 commit 7d42f88

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/aml/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,9 +1702,12 @@ where
17021702
context.start(OpInFlight::new(Opcode::CreateField, &[ResolveBehaviour::TermArg; 3]))
17031703
}
17041704

1705+
Opcode::LNot => {
1706+
context.start(OpInFlight::new(Opcode::LNot, &[ResolveBehaviour::TermArg]));
1707+
}
1708+
17051709
Opcode::LAnd
17061710
| Opcode::LOr
1707-
| Opcode::LNot
17081711
| Opcode::LNotEqual
17091712
| Opcode::LLessEqual
17101713
| Opcode::LGreaterEqual

tests/logical_not.asl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Check for issue 294 (logical-not broken)
2+
DefinitionBlock("", "DSDT", 1, "RSACPI", "LOGICNOT", 1) {
3+
Method (MAIN, 0, NotSerialized) {
4+
Return (!1)
5+
}
6+
}

0 commit comments

Comments
 (0)