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
Robert Moore
361d88d1dd
Merge pull request #489 from SchmErik/dt-text
...
iASL: fix data table patterns
2019-08-06 14:46:08 -07:00
Erik Schmauss
bfbd0bc755
iASL: fix data table patterns
...
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-06 14:08:03 -07:00
Robert Moore
f3d8f45c07
Merge pull request #488 from SchmErik/dt-devel
...
Data table enhancements
2019-08-06 07:16:34 -07:00
Erik Schmauss
52f0574d8c
iASL: DT: save line number and input file length in file node
...
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-05 12:20:23 -07:00
Erik Schmauss
7b9fcc643c
iASL: fix usage of safe string copy in data table compiler
...
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-05 11:57:05 -07:00
Erik Schmauss
2a0118342f
iASL: add /* */ and // comment support in data table compiler
...
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-05 09:49:58 -07:00
Robert Moore
ad0022c3f4
iASL: Remove definition of __STDC__ from generation
...
Caused a couple of warnings with utmisc.c
2019-08-02 13:34:07 -07:00
Robert Moore
509a8904f2
Automated cleanup; no functional changes
...
remove tabs, excess lines/blanks, etc.
2019-08-02 13:27:00 -07:00
Robert Moore
a709aa45f8
Merge pull request #487 from SchmErik/dt-stat-fix
...
iASL: fix compile-time statistics for data table compiler
2019-08-02 12:37:30 -07:00
Robert Moore
6140825e76
Merge pull request #486 from SchmErik/legacy-processor
...
iASL: add warning on legacy ASL Processor() keyword
2019-08-02 12:37:11 -07:00
Erik Schmauss
a55212792e
iASL: fix compile-time statistics for data table compiler
...
When compiling multiple tables, the global file node struct is used
to keep statistics for each input file. This change adds support for
using global file nodes to keep track of statistics for each data
table including total line conut, total field count, errors detected
during parsing.
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-02 10:50:50 -07:00
Robert Moore
1a2b24e96b
Update gitignore file
...
To ignore tests/templates directory.
2019-08-02 10:12:27 -07:00
Robert Moore
182910f78a
iASL: change warning level for intermediate files
...
Change from warn 4 to warn 3 for files generated by bison
(.y.c) to eliminate some warnings about dead code.
2019-08-02 10:09:35 -07:00
Robert Moore
a9ac22905b
iASL: Fix a few warnings at compiler time.
...
1) Warnings on use of strcpy
2) Warning about possible use of uninitialized variable.
2019-08-02 10:07:43 -07:00
Erik Schmauss
e6766ae2d7
iASL: add warning on legacy ASL Processor() keyword
...
The ASL Processor() object has been deprecated in ACPI 6.0
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-08-02 09:42:33 -07:00
Robert Moore
aa848a1835
Merge pull request #485 from SchmErik/remove-unintentional
...
Remove unintentional call to delete walkstate
2019-08-01 12:24:42 -07:00
Robert Moore
88d21fbe97
Merge pull request #484 from SchmErik/dt-flex-bison-frontend
...
Data table compiler: add flex-bison front-end
2019-08-01 12:24:09 -07:00
Erik Schmauss
634c308565
Remove unintentional call to delete walkstate
...
This line was added unintentionally in commit db2638cca.
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-31 16:39:17 -07:00
Erik Schmauss
7581fee190
adding flex bison files to visual studio
...
Signed-off-by: Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:54 -07:00
Erik Schmauss
36037bdaf0
iASL: add data table prototype flag
...
This flag enables the the new flex/bison prototype front-end of the
data table compiler.
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:23 -07:00
Erik Schmauss
dd3c0a35fa
gitignore: ignore msvc2017 build directories
...
Signed-off-by: Schmauss <erik.schmauss@intel.com>
2019-07-31 15:45:23 -07:00
Robert Moore
f08ef3bebf
Update iASL project file
...
Increase warning level to 4 (from 3).
2019-07-31 14:17:12 -07:00
Robert Moore
db2638ccaa
Fix some coverity-found issues
...
Mostly with arg types within printf format strings.
2019-07-31 13:53:18 -07:00
Robert Moore
67d81e7bea
Fix a few "possible use of non-initialized symbol" warnings
...
Typically, add a check for bad status returned from a call.
2019-07-26 12:32:32 -07:00
Robert Moore
02bbca5070
Macros: remove pointer math on a null pointer
...
Causes warnings on some compilers and/or tools.
Changed ACPI_TO_POINTER to use ACPI_CAST_PTR instead of using
arithmetic.
Reported by: Qian Cai (cai@lca.pw ).
2019-07-26 12:10:13 -07:00
Robert Moore
2667516e38
Merge pull request #483 from SchmErik/processor-uid
...
iASL: emit error when _UID under a processor object is a string
2019-07-26 09:19:44 -07:00
Erik Schmauss
8ff8d5f40b
iASL: emit error when _UID under a processor object is a string
...
_UID under a processor object must evaluate to an integer rather than
a string.
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-25 14:02:49 -07:00
Robert Moore
d59291ad2c
Merge branch 'master' of ssh://ssh.github.com/acpica/acpica
...
From pull request merge.
2019-07-25 12:54:46 -07:00
Robert Moore
2f0f8468ed
Merge pull request #482 from SchmErik/rafael-gpe
...
GPE: back-port Rafael's GPE patches to ACPICA
2019-07-25 12:54:33 -07:00
Robert Moore
30fe0520cf
Merge pull request #481 from SchmErik/iasl-prefix
...
iASL: add null terminator to name strings that only consist of multip…
2019-07-25 12:53:00 -07:00
Robert Moore
1f1652dad8
Increase total number of possible Owner IDs
...
From 255 to 4095 possible IDs.
Reported by: Hedi Berriche (hedi.berriche @hpe.com).
2019-07-25 12:50:20 -07:00
Rafael J. Wysocki
7f70163e70
ACPICA: Return UINT32 from AcpiDispatchGpe()
...
In some cases it is useful to know whether or not the
AcpiEvDetectGpe() called by AcpiDispatchGpe() has found the GPE to be
active, so return the return value of it (whose data type is UINT32)
from latter.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-17 16:03:16 -07:00
Rafael J. Wysocki
e468906dd0
ACPICA: Introduce acpi_dispatch_gpe()
...
Introduce acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe()
for checking if the given GPE (as represented by a GPE device handle
and a GPE number) is currently active and dispatching it (if that's
the case) outside of interrupt context.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-17 15:54:07 -07:00
Erik Schmauss
8f512bd509
iASL: add null terminator to name strings that only consist of multiple prefixes (^)
...
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-17 14:22:59 -07:00
Robert Moore
a36cc3f864
Remove more vs2017 temp files
2019-07-16 12:22:58 -07:00
Robert Moore
71b9e3834c
Remove additional files that are vs2017 temp files
...
under v15 subdirectory.
2019-07-16 12:20:37 -07:00
Robert Moore
0de8bb5a80
Merge pull request #480 from SchmErik/iasl-ret-status
...
iASL: return -1 if AML files were not generated due to compiler errors
2019-07-12 12:07:51 -07:00
Robert Moore
b19227e401
Merge pull request #479 from SchmErik/table-load-init
...
Table load: exit interpreter before initializing objects
2019-07-12 12:07:41 -07:00
Robert Moore
509bdb3131
Merge pull request #477 from ColinIanKing/master
...
Debugger: remove redundant assignment on ObjDesc
2019-07-12 12:07:26 -07:00
Erik Schmauss
1ed9f0276c
iASL: return -1 if AML files were not generated due to compiler errors
...
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-11 10:58:13 -07:00
Erik Schmauss
73f6372490
Table load: exit interpreter before initializing objects
...
This prevents re-acquiring the interpreter lock when loading tables
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-07-11 10:02:12 -07:00
Robert Moore
b28401bfae
Remove parts of the MSVC2017 build that are temp files
...
.vs subdirectory.
2019-07-10 13:48:36 -07:00
Robert Moore
8fd3088aa9
Update msvc2017 project file for iASL compiler
...
Fixes a reference to "msvc" instead of "msvc2017".
2019-07-10 13:32:04 -07:00
Colin Ian King
f530f1acb3
Debugger: remove redundant assignment on ObjDesc
...
Pointer ObjDesc is being initialized with a value that is never
read and it is being updated later with a new value. The initialization
is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
2019-07-04 13:58:32 +01:00
Robert Moore
450ffd8b9c
Update version to 20190703
...
Version 20190703.
R07_03_19
2019-07-03 10:15:28 -07:00
Robert Moore
3081296b49
Logfile: Changes for version 20190703
...
Version 20190703.
2019-07-03 10:14:18 -07:00