Commit d9652b4e8a26384be959770839773a9dee7d0c2c
Committed by
Rafael J. Wysocki
1 parent
48ffb94f9e
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
ACPICA: 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. Signed-off-by: Bob Moore <robert.moore@intel.com> Tested-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
drivers/acpi/acpica/acglobal.h
... | ... | @@ -405,13 +405,15 @@ |
405 | 405 | |
406 | 406 | /***************************************************************************** |
407 | 407 | * |
408 | - * Debugger globals | |
408 | + * Debugger and Disassembler globals | |
409 | 409 | * |
410 | 410 | ****************************************************************************/ |
411 | 411 | |
412 | 412 | ACPI_EXTERN u8 acpi_gbl_db_output_flags; |
413 | 413 | |
414 | 414 | #ifdef ACPI_DISASSEMBLER |
415 | + | |
416 | +u8 ACPI_INIT_GLOBAL(acpi_gbl_ignore_noop_operator, FALSE); | |
415 | 417 | |
416 | 418 | ACPI_EXTERN u8 acpi_gbl_db_opt_disasm; |
417 | 419 | ACPI_EXTERN u8 acpi_gbl_db_opt_verbose; |