acpica: enable interpreter-slack mode

This mode is used on Linux (if acpi=strict is not set on boot cmdline)
and Windows. The mode ignores certain errors and/or bad AML constructs.

  1) Allow "implicit return" of last value in a control method
  2) Allow access beyond the end of an operation region
  3) Allow access to uninitialized locals/args (auto-init to integer 0)
  4) Allow ANY object type to be a source operand for the Store() operator
  5) Allow unresolved references (invalid target name) in package objects
  6) Enable warning messages for behavior that is not ACPI spec compliant
This commit is contained in:
Christian Helmuth 2019-07-18 10:54:46 +02:00
parent 91c8e70bef
commit 83ead086a1
2 changed files with 14 additions and 1 deletions

View File

@ -1 +1 @@
eeabeb0dc87258ecfc57e24d54b036c84b5fcf26
5c1c548586f9a754f192a04b7931acabeb4c7239

View File

@ -58,6 +58,19 @@ index cec39cb..2a8e3a6 100644
/*
* Make sure that a handler exists. If not, report an error
diff --git src/lib/acpica/source/include/acpixf.h src/lib/acpica/source/include/acpixf.h
index 3a823a3..abc2900 100644
--- src/lib/acpica/source/include/acpixf.h
+++ src/lib/acpica/source/include/acpixf.h
@@ -137,7 +137,7 @@
* 5) Allow unresolved references (invalid target name) in package objects
* 6) Enable warning messages for behavior that is not ACPI spec compliant
*/
-ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
+ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, TRUE);
/*
* Automatically serialize all methods that create named objects? Default
diff --git src/lib/acpica/source/include/platform/acenv.h src/lib/acpica/source/include/platform/acenv.h
index 1ab311d..514b144 100644
--- src/lib/acpica/source/include/platform/acenv.h