From 789175a1a8afa19da8f388fc7f944eeb5298ac5c Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Fri, 11 Jan 2013 13:18:52 -0800 Subject: 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. --- source/compiler/aslcompiler.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/compiler/aslcompiler.l') 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); } -- cgit v1.2.3