Commit Graph

10803 Commits

Author SHA1 Message Date
Robert Moore
016ae3e140 Unix makefiles: add "make install" case -> /usr/bin
install acpica utilities to /usr/bin
2011-02-11 13:07:07 -08:00
Robert Moore
2234a29e98 iASL/DTC: fix for unix/linux generation.
Add a default to switch.
2011-02-11 13:05:41 -08:00
Robert Moore
34bc53edda AcpiExec: Do not override default handler for DataTable regions.
Should not override this handler, the default handler should be used.
Also, ASLTS suite depends on this.
2011-02-11 12:15:41 -08:00
Robert Moore
a7064f1a22 Tests: Update badcode.asl for iASL GPE type collision detection.
Add a collision between _Lxx and _Exx names, iASL now detects this.
2011-02-08 13:02:03 -08:00
Robert Moore
5629930ac6 iASL/DTC: Fix scanner issues with comments and line numbers.
Comment remover could get confused and miss a comment ending.
Fixed a problem with line counter maintenance.
2011-02-03 13:54:18 -08:00
Robert Moore
4ac95ece8f iASL: Cleanup use of TrWalkParseTree, eliminate null callbacks.
Removed several callbacks that served no purpose. TrWalkParseTree
has the capability to invoke callbacks during descent or ascent
of a depth-first search. ACPICA BZ 901.
2011-02-01 14:34:54 -08:00
Robert Moore
2e989b5ac1 iASL: Add detection of GPE method name conflicts.
Detects a conflict where there are two GPE methods of the form
_Lxy and _Exy in the same scope. ACPICA bugzilla 848.
(For example, _L1D and _E1D in the same scope.)
2011-02-01 13:37:31 -08:00
Robert Moore
25f99e9523 iASL: Split large file aslanalyze.c into three files.
Split into two new files, aslbtypes.c and aslwalks.c.
2011-02-01 13:10:47 -08:00
Robert Moore
24b79d93e7 AcpiSrc: Add new struct definition.
ACPI_HANDLER_INFO.
2011-01-28 13:49:08 -08:00
Robert Moore
8ab2602d47 AcpiExec: Split handler installation into early/late phases.
Most handlers should be installed before call to AcpiEnableSubsystem.
However, Event handlers and region handlers should be installed
after AcpiInitializeObjects. Override handlers for the "default"
regions should be installed early, however.
ACPICA BZ 848.
2011-01-28 13:35:10 -08:00
Robert Moore
ceee99f6e0 Add mechanism to defer _REG methods for some installed handlers.
The memory/io/pci/dataTable regions must always be available. For
any user installed handlers for these spaces, defer execution of
_REG methods until AcpiEnableSubsystem. This prevents any
chicken/egg problems and ensures that no methods are executed
until all of these regions are ready and available.
2011-01-28 12:37:20 -08:00
Robert Moore
21575b86a8 Debugger: Update/cleanup display handlers command
Improved output and code cleanup.
2011-01-28 12:35:43 -08:00
Robert Moore
d82328f271 Add support for FunctionalFixedHW in GetRegionName.
Was missing this region type.
2011-01-28 10:38:44 -08:00
Robert Moore
4893ebd4c0 Release build scripts: Add generic unix makefiles to all packages.
Generic unix makefiles and some other misc changes.
2011-01-27 13:59:25 -08:00
Robert Moore
ac3a38aaf5 iASL: Warn if reserved method incorrectly returns a value.
Many predefined names are defined such that they do not return
a value. If implemented as a method, issue a warning if such
a name returns a value. ACPICA BZ 855.
2011-01-27 13:45:46 -08:00
Robert Moore
26e99b0d83 Split large dsopcode.c and dsload.c files.
split dsopcode.c into dsargs.c and dscontrol.c
split dsload.c into dsload2.c
2011-01-27 10:28:18 -08:00
Robert Moore
cee9d3462c Debugger: Split large dbcmds.c file.
Split into 2 new additional files:
dbmethod.c - control method commands.
dbnames.c - namespace commands.
2011-01-26 13:03:41 -08:00
Robert Moore
e058e42242 Debugger: Simplify help command.
All help output now in a single screen, instead of help
subcommands. ACPICA BZ 897.
2011-01-26 08:56:09 -08:00
Robert Moore
217e7043e6 Fix unresolved name issue for no-debug and no-error-msg cases.
The _AcpiModuleName was left undefined in these cases, but it
is actually needed as a parameter to some interfaces. Define
_AcpiModuleName as a null string in these cases.
Acpica BZ 888.
2011-01-25 15:05:45 -08:00
Robert Moore
fba030e8a8 Debugger: Add command to display status of global handlers.
Display op region, fixed event, and misc global handlers.
installation status and for op regions, whether default or
user-installed handler will be used.
2011-01-25 13:47:58 -08:00
Robert Moore
cb08192de6 Update windows project files (new file added.)
Addd new file, utilities/utdecode.c to project files.
2011-01-24 15:01:04 -08:00
Robert Moore
73dbf922ac Split large utglobal.c into utdecode.c.
Utglobal.c contained a lot of code not related to global variables.
These utility decode functions are moved to utdecode.c
2011-01-21 15:10:19 -08:00
Robert Moore
fcd8dad6f3 Clarify a couple of error messages.
Clarify region error messages with ID= prefix for space id.
2011-01-21 13:51:44 -08:00
Robert Moore
08e05f863b Update Windows project files.
Disable some warnings, update iASL build
2011-01-21 12:18:52 -08:00
Robert Moore
32e867e348 iASL/DTC: Reduce severity of some errors from fatal to error.
No need to abort on simple errors within a field definition.
2011-01-21 09:41:55 -08:00
Robert Moore
6cad5980b5 Disassembler: Resolve/fix special case for ASF! table.
Removed a special case for a 7-byte buffer in ASF!. Lin Ming.
2011-01-21 09:16:59 -08:00
Robert Moore
fd430272ca iASL/DTC: Add support for integer expressions and labels.
Support for full expressions for all integer fields in all tables.
Support for labels in "generic" portions of tables such as UEFI.
2011-01-21 08:42:11 -08:00
Robert Moore
c47bd2bb9e Remove use of unreliable FADT revision field.
The revision number in the FADT has been found to be completely
unreliable and cannot be trusted. Only the table length can be
used to infer the actual version.

This change updates the ACPICA core and the disassembler so that
both no longer even look at the FADT version and instead depend
upon the FADT length.
2011-01-14 13:24:08 -08:00
Robert Moore
62276d5441 GPE detect optimization - ignore unused GPE registers.
This optimization will simply ignore GPE registers that contain no
enabled GPEs - there is no need to read the register.
ACPICA bugzilla 884. Lin Ming. Suggestion from Joe Liu.
2011-01-13 14:34:00 -08:00
Robert Moore
03890c8512 iASL: Add predefined macros __LINE__, __FILE__, and __DATE__
Adds these c-style macros with the standard definitions.
ACPICA bugzilla 898.
2011-01-13 12:08:26 -08:00
Robert Moore
ad694f5bd9 Update version to 20110112.
Version 20110112.
2011-01-12 09:47:52 -08:00
Robert Moore
0efeaa391a Logfile: Changes for version 20110112.
Version 20110112.
2011-01-12 09:47:11 -08:00
Robert Moore
50f780874a Windows binaries: Update for version 20110112.
Version 20110112.
2011-01-12 09:46:27 -08:00
Robert Moore
84b8d0fd51 Update release script to generate unix package with dual-license.
Insert the dual-license header into the source for this package.
Requested by FreeBSD.
2011-01-12 09:44:57 -08:00
Robert Moore
d0a022febf Documentation: Update iASL reference for generic data types.
New generic data types for the Data Table Compiler.
2011-01-12 08:50:02 -08:00
Robert Moore
71ef3a82d8 iASL: Merge duplicate UUID support code into single module.
Merged duplicated UUID functions. Adds one new file,
compiler/asluuid.c. Lin Ming, Bob Moore.
2011-01-11 14:44:08 -08:00
Robert Moore
314834b417 iASL: Fix to deterministically detect "Raw Table Data" field in DTC.
Caused a problem with the recent changes for generic data types
in the Data Table compiler. Lin Ming.
2011-01-11 13:19:01 -08:00
Robert Moore
9a5f2aa74c iASL: Add listing support for Data Table Compiler.
Adds listing support (-l) to display actual output for each
line of input code.
2011-01-11 12:41:30 -08:00
Robert Moore
4110b9bdc9 Fix issues/fault with automatic "serialized" method support.
History: This support changes a method to "serialized" on the fly if the
method generates an AE_ALREADY_EXISTS error, indicating the possibility
that it cannot handle reentrancy.

This fix repairs a couple of issues seen in the field, especially on
machines with many cores.

1) Delete method children only upon the exit of the last thread, so
as to not delete objects out from under running threads.

2) Set the "serialized" bit for the method only upon the exit of the
last thread, so as to not cause deadlock when running threads attempt
to exit.

3) Cleanup the use of the AML "MethodFlags" and internal method flags
so that there is no longer any confustion between the two.

Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
2011-01-11 10:25:15 -08:00
Robert Moore
a39fa5a0a6 iASL: Add generic data types to the Data Table compiler.
Add "generic" data types such as UINT32, String, Unicode, etc.,
to simplify the generation of platform-defined tables such
as UEFI. Lin Ming.
2011-01-06 13:44:12 -08:00
Robert Moore
a90085ba04 Debugger: Do not invoke methods with too many arguments.
Limit the number of arguments sent to a control method to
the number of required arguments - to avoid a warning
message from the argument checking code.
2011-01-05 09:12:08 -08:00
Robert Moore
13585b2f61 Merge branch 'master' of ssh://git.moblin.org/acpica 2011-01-03 14:07:42 -08:00
Robert Moore
e1db8565bc Tests: Update all copyrights to 2011.
test suites only.
2011-01-03 14:04:49 -08:00
Robert Moore
d41344f1ec Update all ACPICA copyrights and signons to 2011.
Standard ACPICA source modules only.
2011-01-03 14:02:13 -08:00
Robert Moore
94d7576d54 New: readme file with notes on generating ACPICA under VC 9.
A couple notes on how to eliminate build warnings.
2010-12-20 13:15:14 -08:00
Robert Moore
e4fafef111 Update .gitignore for new msvc9 directory.
new file types added.
2010-12-17 17:25:03 -08:00
Robert Moore
b5f35ebe37 New: Project files for VC++ 9 (Visual Studio 2008)
Ported from the VC++ 6 files. Finally, we can use relative
pathnames.
2010-12-17 17:11:48 -08:00
Robert Moore
bf913c651e Tests: Update include file ordering.
ACPICA-specific headers must appear before system headers
like stdio.h
2010-12-17 17:10:23 -08:00
Robert Moore
21f9129788 Update ordering of include files.
The ACPICA headers should appear before any compiler-specific
headers (stdio.h, etc.) so that acenv.h can set any
necessary compiler-specific defines, etc.
2010-12-17 17:07:16 -08:00
Robert Moore
bb624f47b8 Update msvc header for VC++ 9 (VS 2008)
Add a couple new compiler-specific items to eliminate warnings.
2010-12-17 17:06:14 -08:00