13486 Commits

Author SHA1 Message Date
Lv Zheng
5a52881149 iasl: Move aslversion determination logic from Makefile.def to Do script 2017-08-30 15:05:37 -07:00
Lv Zheng
bf8ee64902 ASLTS: Split install target into install_n32/n64/s32/s64
This patch splits install target into install_n32/n64/s32/s64 targets
so that they can be invoked from "Do" script separately. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
66b85dc874 ASLTS: Allow cases/modes to be specified for aslts compile
This patch adds support in Do to allow test cases/modes to be specified
in "Do 0" mode - build aslts aml test cases. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Lv Zheng
421e5d9439 ASLTS: Convert make_install into make_target
Convert make_install into make_target so that other targets can be used
in Do script. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-08-30 15:05:37 -07:00
Robert Moore
a2c83e75a5 acpisrc: Add option to check files for non-printable characters
Dirty little option to scan entire file for non-printable ASCII
characters. Useful for debugging garbage output in listing
and text debug files.
2017-08-30 13:28:38 -07:00
Robert Moore
e3574138af String conversions: Update to add new behaviors
1) Allow whitespace in string before the constant
2) UtStrtoul64 now always creates a 64-bit integer; iASL will
truncate this to the lower 32-bits if the table being compiled
is a 32-bit table (DSDT revision less than 2).
2017-08-30 12:35:29 -07:00
Robert Moore
affd12bb11 acpiexec: Do not change default max loop count
The acpiexec count was too small to run some of the tests,
so just use the acpica default. this count is scheduled to
be removed, to be replaced by a real timer/timeout.
2017-08-30 07:19:34 -07:00
Robert Moore
5221c19354 Merge pull request #303 from SchmErik/iasl_dev01
iASL: expand -vw optoin to ignore errors in addition to warnings and remarks
2017-08-28 12:52:17 -07:00
Robert Moore
44a1a65fb9 Disassembler: Ignore tiny buffers during ResourceTemplate detection
Ignore any buffers 2 bytes or smaller, as they either cannot be
or very highly probably cannot be (2 bytes) resource templates.
2017-08-28 12:40:28 -07:00
Robert Moore
5e510eb781 iASL: Add a warning for a NULL Resource Template
This is the case for "ResourceTemplate(){}", which generates
an END_TAG only. This would appear to be worthless in real-world
ASL code.
2017-08-28 12:02:55 -07:00
Erik Schmauss
239454e04b iASL: move error check inside AslCommonError
This allows AslCommonError to check if a particular error
message should be ignored.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-28 10:21:31 -07:00
Erik Schmauss
57c6d8ed4a iASL: change -vw option to ignore errors in addition to warnings and remarks
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-25 13:53:52 -07:00
Robert Moore
78ed189ab6 Merge pull request #301 from SchmErik/aslts_fix
ASLTS: exc: allow implicit conversion of strings with "0x" to hex
2017-08-25 13:44:36 -07:00
Robert Moore
385d5c9baa iASL: Use common error routine for DoConstant conversion errors
Use AslCommonError because conversion errors are not in fact
syntax errors. Prevents early abort of the compiler.
2017-08-25 13:42:06 -07:00
Robert Moore
0cab8637d6 iASL: Add support for escape sequences in debug output
Translate non-printable characters within AML strings to escape
sequences in order to prevent garbage output in the parse
tree debug file.
2017-08-25 08:26:51 -07:00
Robert Moore
33e38cd240 String conversions: Cleanup/format comments. No functional changes
Cleanup some of the language used in the large comments, especially
the ones that reference the rules in the ACPI spec.
Fixed some typos.
2017-08-23 14:19:20 -07:00
Robert Moore
610046d444 Restructure/cleanup all string-to-integer conversion functions
Improve adherence to ACPI spec for implicit and explicit conversions
Adds octal support for constants in ASL code
Adds integer overflow errors for constants during ASL compilation
Eliminates most of the existing complex flags parameters
Simplify support for implicit/explicit runtime conversions
Adds one new file, utilities/utstrsuppt.c
2017-08-18 12:40:31 -07:00
Robert Moore
067b19a906 iASL: Fix definition of the PPTT ACPI table
The "Line Size Valid" Flag was specified in the wrong bit position.
ACPICA bugzilla 1414.
2017-08-15 13:48:45 -07:00
Erik Schmauss
eab4fc423b ASLTS: exc: change test case to allow implicit conversion of strings with "0x" to hex
The ACPI spec's definition of implicit conversion does not allow
'0x' within strings that are converted to integers. Without '0x'
the number being converted could be mistaken as a decimal number.
Instead we are allowing with 0x or no 0x and both versions are
implicitly converted to hex.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-08-10 14:35:01 -07:00
Robert Moore
df6cf656bc Merge pull request #289 from zetalog/acpiexec-test
Acpiexec test
2017-08-10 09:31:35 -07:00
Robert Moore
ee3f49cfb2 Merge pull request #209 from zetalog/acpica-64bit
Acpica 64bit
2017-08-10 09:12:01 -07:00
Robert Moore
89d60db588 Fix a couple format issues, no functional change
ACPI table definition headers.
2017-08-08 12:54:35 -07:00
Robert Moore
9951c78746 Header support for the PDTT ACPI table
This is an ACPI 6.2 table.
2017-08-08 12:43:36 -07:00
Robert Moore
50f6163654 Update version to 20170728
Version 20170728.
R07_28_17
2017-07-28 09:49:51 -07:00
Robert Moore
c2b9d289c4 Logfile: Changes for version 20170728
Version 20170728.
2017-07-28 09:49:03 -07:00
Robert Moore
6cd1ba2619 Merge pull request #288 from zetalog/efi-stdlib
Edk2 stdlib/windows
2017-07-27 14:28:48 -07:00
Robert Moore
d2e7b6389d Merge pull request #279 from james-morse-arm/for_upstream/sdei_v2
iASL: Add support for the SDEI table (v2)
2017-07-27 14:27:09 -07:00
Robert Moore
af661c00af ResourceMgr: Allow _DMA method in walk resources
The _DMA object contains a resource template, this change
adds support for the walk resources function so that ACPI
devices containing a _DMA object can actually parse it to
detect DMA ranges for the respective bus.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2017-07-27 14:23:59 -07:00
Robert Moore
ea9152daae Ensure all instances of AE_AML_INTERNAL have error messages
This exception is only meaningful with an associated error message.
2017-07-27 13:46:19 -07:00
Robert Moore
c89d33e730 Tests: Fix an incorrect argument count
The _ERR method requires three arguments, not two.
Eliminates a warning message.
2017-07-27 13:31:38 -07:00
Robert Moore
0c08790c56 Implement deferred resolution of reference package elements
This change defers the resolution of package elements that
are named references until after the entire namespace has been
loaded from the definition block. This allows such references
to be in fact forward references for both module level code
and control methods.
2017-07-27 13:22:15 -07:00
Robert Moore
916993dbcd Debugger: Improve support for Alias objects
Properly resolve alias objects for display.
General cleanup of related output.
2017-07-27 12:36:53 -07:00
Robert Moore
afe4703186 iASL: Implement line buffer management
Realloc buffers as needed for very long input lines.
Erik Schmauss.
2017-07-27 12:23:28 -07:00
Robert Moore
719d0bdd48 Interpreter: Update handling for Alias operator
Provide common creation code for the Alias operator. All objects
are now handled the same, with the only exception being the
Method() operator. It has a special internal Alias type.
2017-07-27 10:16:26 -07:00
Robert Moore
a71cc28e6a Merge pull request #297 from SchmErik/asltsErrEdit002
Aslts err edit002
2017-07-25 14:12:03 -07:00
Erik Schmauss
e5bbb5455f ASLTS: resolving conflict from rebasing
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-07-21 17:01:45 -07:00
Erik Schmauss
be18b4ea05 ASLTS: CH03 and CH04 is intended to take line numbers as arguments rather than a number indicating the "index of error".
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-07-21 16:54:23 -07:00
Erik Schmauss
a73816a2a2 ASLTS: changing the third argument of ERR to __LINE__ to print line numbers instead of indices.
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-07-21 16:54:23 -07:00
Erik Schmauss
6f3586d458 ASLTS: getting rid of unnecessary error reporting.
This error information is redundant.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-07-21 16:54:23 -07:00
Robert Moore
9764428654 Merge pull request #291 from al3xtjames/master
Unix makefiles: Add OPT_LDFLAGS and edit NOOPT parsing
2017-07-20 09:16:01 -07:00
Robert Moore
d2fd729f28 Merge pull request #293 from SchmErik/aslts_descriptor
ASLTS: descriptor: update test buffers to include shared bit in V2 de…
2017-07-20 09:14:27 -07:00
Robert Moore
30c7201369 Merge pull request #294 from SchmErik/iasl_feature001
iASL: add option to expect specific compilation remarks/warnings/errors
2017-07-20 09:13:53 -07:00
Erik Schmauss
2d27a12fde iASL: add option to expect specific compilation remarks/warnings/errors
The -vx [messageId] option, where the x stands for EXpect, allows the
compiler to expect that the compilation will result in an ASL exception
with a particular messageId. If this error is not raised. The
compilation will result in an error. This will help create a whole new
class of compilation tests in ASLTS.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-07-18 16:04:40 -07:00
Erik Schmauss
8c09a8784e ASLTS: descriptor: update test buffers to include shared bit in V2 descriptors
These tests compare a resource descriptor and an equivalent buffer to ensure
proper resource descriptor compilation. The buffer does not account for the
shared bit for V2 resource descriptors (see section 6.4.3.8.2.x in the ACPI
6.2 spec). This commit changes this test buffer to include the shared bit
(the 3rd bit of the 6th byte of V2 resource descriptors). The specification
is expected to reflect these changes (sections 6.4.3.8.2.1, 6.4.3.8.2.2, and
6.4.3.8.2.3).

Updated buffers include buffers equivalent to I2cSearialBusv2, SpiSerialBusv2,
and UartSerialBusv2

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2017-07-17 14:29:33 -07:00
Lv Zheng
a7c6d65a5d EFI/EDK2: Enable /WX for MSVC builds
/WX turns warning into fatal erros for MSVC builds. We need /WX- during
EDK2 porting to allow agile development.

Now it is time to enable /WX. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:32:15 +08:00
Shao, Ming
f9450316d8 EFI/EDK2: Add support to compile acpidump.efi with StdLib
This patch ports acpidump EDKII build to the environment where EDKII
internal C-library StdLib is used. Shao Ming.

Signed-off-by: "Shao, Ming" <smbest163@163.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:21:48 +08:00
Lv Zheng
ae846edff2 EFI: Add AcpiOsStall()/AcpiOsSleep() support
This patch adds AcpiOsStall() and AcpiOsSleep() support.
Currently we do not support asynchronous polling of key stroke and timer,
so AcpiOsSleep() is simply an invocation of AcpiOsStall(). Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:21:46 +08:00
Lv Zheng
f610e149bc EFI: Add AcpiOsGetTimer() support
This patch adds AcpiOsGetTimer() support for EFI environment.
Note that currently we don't support timezone. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:15:06 +08:00
Lv Zheng
06eafca73d EFI: Add stubs for multi-threading OSLs to make EFI ported applications running
This patch only adds stub supports for multi-threading OSLs to make
EFI ported application running.

In order to fully support acpiexec in a non multi-threading environment,
ACPICA core itself need to be upgraded to contain full asynchrnous support.
Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:14:51 +08:00
Lv Zheng
45bb76a55a EFI: Add OSL supports for those can be empty
This patch adds OSLs that can be empty under EFI environment. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-07-13 14:14:43 +08:00