diff options
author | Robert Moore <Robert.Moore@intel.com> | 2013-01-11 13:18:52 -0800 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2013-01-11 13:18:52 -0800 |
commit | 789175a1a8afa19da8f388fc7f944eeb5298ac5c (patch) | |
tree | 31c952e2c37b2e9d7dd63e759517e6adf8c2354c /source/compiler/aslcompiler.l | |
parent | 0e1413de5dfeb865187ee4cafd0f29088257bcce (diff) |
iASL/Disassembler: Add option to ignore NOOP opcodes/operators.
Implemented for both the compiler and the disassembler.
Often, the NOOP opcode is used as padding for packages that are
changed dynamically by the BIOS. When disassembled, these NOOPs will
cause syntax errors. This option causes the disassembler to ignore
the NOOP opcode, and it also causes the compiler to ignore NOOP statements
as well.
Diffstat (limited to 'source/compiler/aslcompiler.l')
-rw-r--r-- | source/compiler/aslcompiler.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/compiler/aslcompiler.l b/source/compiler/aslcompiler.l index 6737c80e5..f98179678 100644 --- a/source/compiler/aslcompiler.l +++ b/source/compiler/aslcompiler.l @@ -273,7 +273,7 @@ NamePathTail [.]{NameSeg} "Mutex" { count (2); return (PARSEOP_MUTEX); } "Name" { count (2); return (PARSEOP_NAME); } "NAnd" { count (3); return (PARSEOP_NAND); } -"Noop" { count (3); return (PARSEOP_NOOP); } +"Noop" { if (!AcpiGbl_IgnoreNoopOperator) {count (3); return (PARSEOP_NOOP);} } "NOr" { count (3); return (PARSEOP_NOR); } "Not" { count (3); return (PARSEOP_NOT); } "Notify" { count (3); return (PARSEOP_NOTIFY); } |