14092 Commits

Author SHA1 Message Date
Robert Moore
98fc399943 acpinames: Update unix makefile
Adds new files required for module-level code support.
2019-09-25 12:35:36 -07:00
Robert Moore
e0662494d0 acpinames: Update msvc project files for new data files
Add in most of the AML interpreter, etc., to handle
module-level code execution.
2019-09-25 12:34:29 -07:00
Robert Moore
5fa5bd7f54 acpinames: Port to new table initialization sequence
Remove some of the stubs in anstubs.c. Prevents many/most
of the AE_NOT_IMPLEMENTED errors seen recently.
2019-09-25 12:32:45 -07:00
Robert Moore
bd5bbd65b0
Merge pull request #505 from SchmErik/custom-op-region-check
iASL: fix custom address space range check
2019-09-25 07:14:42 -07:00
Erik Schmauss
879f16fab0 iASL: fix custom address space range check
This should use the ACPI_NUM_PREDEFINED_REGIONS macro instead of a
magic number.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-09-24 15:07:26 -07:00
Robert Moore
54b3aefb5d More Clang changes - V8.0.1
Fixed all "dead assignment" warnings.
2019-09-19 10:46:04 -07:00
Robert Moore
9e5b300487 Revert "More Clang changes"
This reverts commit 05d20231c40e6e0818b45e5969a8d6a1c84aa1a4.
Caused problems running/compiling ASLTS.
2019-09-12 14:24:45 -07:00
Robert Moore
05d20231c4 More Clang changes
Fixed all "dead assignment" warnings.
2019-09-12 13:12:03 -07:00
Robert Moore
c22c0b1df9 Data table compiler: Add error messages for SLIT locality buffers
Check for:
1) Invalid number of initializers in a locality buffer
2) Invalid number of locality buffer declarations
2019-08-30 13:27:31 -07:00
Robert Moore
e32cc0a3e5
Merge pull request #504 from SchmErik/dt-label
iASL: DT: detect invalid field labels
2019-08-30 13:10:57 -07:00
Erik Schmauss
8d4d38050a iASL: DT: change disassembly of STAO to match the STAO info tabel
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-30 11:49:35 -07:00
Erik Schmauss
c8028b862d iASL: DT: detect invalid field labels
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-30 11:36:25 -07:00
Robert Moore
48b54bc7d8 iASL: Update MSVC 2017 project file
Prevent always rebuilding the flex/bison files.
2019-08-30 08:35:57 -07:00
Robert Moore
6c3eb2a816
Merge pull request #503 from SchmErik/aslts-dt
ASLTS: add option to only execute data table compiler tests
2019-08-29 13:09:31 -07:00
Erik Schmauss
6eec8ad3cc iASL: DT: fix label scanner by creating a DT_TABLE_UNIT instead of a string
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-28 17:10:29 -07:00
Erik Schmauss
69b6a3c50e ASLTS: add option to only execute data table compiler tests
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-27 10:25:29 -07:00
Robert Moore
3f3656c600
Merge pull request #502 from SchmErik/dt-remove-loc
iASL: DT: Remove %locations due to compatibility issues and simple fixes in ASLTS
2019-08-23 14:32:04 -07:00
Erik Schmauss
7b0edf13a5 ASLTS: fix reference to ACPICA tools
In ASLTS script code, the ACPICA tools must be referenced through
variables that have been exported. If not, ASLTS uses ACPICA tools in
the existing path.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-23 13:52:05 -07:00
Erik Schmauss
9eaad8f034 iASL: Dt: move function definitions, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-23 12:31:13 -07:00
Erik Schmauss
0fd3ef385a iASL: DT: remove %locations feature for parser generator compatibility
Some parser generators may not support the locations extension.
Remove this feature and track locations inside of DT_TABLE_UNIT
instead. DT_TABLE_UNIT represents a key or value of a data table.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-23 12:31:13 -07:00
Robert Moore
50cf4bb1b5
Merge pull request #501 from SchmErik/dt-fix
iASL: remove unnecessary null checks
2019-08-23 12:28:27 -07:00
Erik Schmauss
e5d8bddf28 iASL: remove unnecessary null checks
At this point in the program, assume that *(Field)->Name is non-null
because the data table parser will emit an error on fields that do
not contain data. Info->Name can only be NULL when Info is a
ACPI_DMT_TERMINATOR which does not set the DT_OPTIONAL flag.

This change will revert the table compiler to the previous behavior
by creating an instance of a subtable struct for empty subtables such
as VRTC and MTMR data tables.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-22 14:44:01 -07:00
Robert Moore
6d2d9a2328 MSVC project files: Add unix makefiles as a project
Add the unix makefiles as a project to the solution file.
Aids/simplifies editing of the makefiles -- they are not
used during the generation of the MSVC builds.
2019-08-22 12:15:51 -07:00
Robert Moore
7bc16c6503 Win OSL: Replace GetTickCount with GetTickCount64
Avoid possible overflow from GetTickCount. Also, cast math
using ACPI_100NSEC_PER_MSEC to uint64.
2019-08-22 12:12:35 -07:00
Robert Moore
6558b6c196
Merge pull request #499 from SchmErik/dt-bison-fix
iASL: DT: eliminate %code directive, it is not POSIX compliant
2019-08-21 09:27:10 -07:00
Robert Moore
1f08279b3e Results from Clang changes/fixes
From Clang V5.0.1. Mostly "set but never read" warnings.
2019-08-21 09:23:50 -07:00
Robert Moore
e92bd92111
Merge pull request #496 from juikim/master
FreeBSD: Enable ACPICA mutex debugging in INVARIANTS case.
2019-08-16 13:55:42 -07:00
Erik Schmauss
33760a087d iASL: DT: eliminate %code directive, it is not POSIX compliant
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-16 13:45:01 -07:00
Robert Moore
db29ce57ce Update version to 20190816.
Version 20190816.
R08_16_19
2019-08-16 07:58:40 -07:00
Robert Moore
d1b2edcda2 Logfile: Changes for version 20190816 2019-08-16 07:57:54 -07:00
Robert Moore
5ac39acc85
Merge pull request #497 from juikim/osi_windows_2019
Add "Windows 2019" string to _OSI support.
2019-08-16 07:27:22 -07:00
Jung-uk Kim
32fffb2428 Add "Windows 2019" string to _OSI support. 2019-08-15 19:50:45 -04:00
Jung-uk Kim
66db7b38f6 Differentiate Windows 8.1 from Windows 8. 2019-08-15 19:49:05 -04:00
Robert Moore
512cae4b39
Merge pull request #494 from SchmErik/dt-asl-compile
multiple data table and ASL file compilation
2019-08-15 13:13:08 -07:00
Robert Moore
4367485046
Merge pull request #492 from SchmErik/dt-line-cont
iASL: add line continuation support for DT compiler flex/bison
2019-08-15 13:12:20 -07:00
Robert Moore
e038862700
Merge pull request #493 from SchmErik/dt-testsuite
ASLTS: add iASL template test suite
2019-08-15 13:11:56 -07:00
Jung-uk Kim
23f61cf272 Enable ACPICA mutex debugging in INVARIANTS case.
This lets us detect lock order reversal in ACPICA code to avoid deadlock.

https://svnweb.freebsd.org/changeset/base/351081
2019-08-15 13:16:32 -04:00
Erik Schmauss
a9f3b38f9d ASLTS: add iASL template test suite
For each template supported by iASL, this test suite does the
following:

    1) Compile with iASL
    2) Disassemble .aml file generated from 1)
    3) Re-compile .dsl file generated from 2)
    4) Use acpibin to compare files generated from 1) and 3) using
       acpibin

This test exercises the data table compiler as well as the data table
disassembler.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-14 13:54:56 -07:00
Robert Moore
c3db173766 MSVC project files - fix some warning messages
Cleanup some straggling warnings.
2019-08-14 13:53:08 -07:00
Robert Moore
d06def132a Fully deploy ACPI_PRINTF_LIKE macro
Macro was not being used across all "printf-like" functions.
Also, cleanup all calls to such functions now that they are
analyzed by the compiler (gcc). Both in 32-bit mode and 64-bit
mode.
2019-08-14 13:43:02 -07:00
Robert Moore
46a65742d8 iASL: update control-C handler
Ensure that the global file list actually exists.
2019-08-14 13:41:03 -07:00
Robert Moore
f9eb60ead7 iASL,AcpiDump: Improve y/n query for file overwrite
Use fgetc, check for standalone newline.
2019-08-14 13:37:06 -07:00
Erik Schmauss
fc345ab529 iASL: trivial: fix codeing style, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-12 14:04:13 -07:00
Erik Schmauss
fd06a3181b iASL: DT: adjust appearance of compilation summary, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-12 14:00:35 -07:00
Erik Schmauss
aff72e5c2c iASL: support compilation of ASL and data table files in a single command
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-12 14:00:29 -07:00
Erik Schmauss
a2c2826ff4 iASL: DT: simplify DtInitialize by removing redundant function calls
DT compiler initializes by calling AcpiOsInitialize() and
AcpiUtInitGlobals(). These are called as a part of main() and do not
need to be invoked during data table compilation.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-12 13:59:19 -07:00
Erik Schmauss
a7a2de9b80 Makefile: add debug flag
Debug flag is set for CFLAGS and LDFLAGS if make is invoked with the
DEBUG flag set to TRUE (make DEBUG=TRUE).

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-12 13:59:15 -07:00
Erik Schmauss
d60bbe1d58 iASL: data table: return non-zero status when compilation fails
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-09 14:47:06 -07:00
Erik Schmauss
313a092645 iASL: add line continuation support for DT compiler flex/bison
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-09 14:27:15 -07:00
Robert Moore
361d88d1dd
Merge pull request #489 from SchmErik/dt-text
iASL: fix data table patterns
2019-08-06 14:46:08 -07:00