11613 Commits

Author SHA1 Message Date
Robert Moore
f559452036 Unix makefiles: Remove unused cross-platform support.
No longer support generation of 32-bit versions of the ACPICA
applications on a 64-bit platform. This was unused and causes
problems with some compilers due to the use of -m32 and -m64 flags.
2013-05-08 12:42:22 -07:00
Robert Moore
1553228079 iASL: Split large main module into two files.
Adds a new file, asloptions.c, that contains the command-line
option processing.
2013-05-07 13:40:23 -07:00
Robert Moore
637accd073 Fix for _INI regression introduced in version 20130328.
This change fixes a problem introduced in 20130328 where _INI methods
are no longer executed properly because of a memory block that is not
initialized correctly.
ACPICA BZ 1016. Tomasz Nowicki <tomasz.nowicki@linaro.org>.
2013-05-07 12:24:48 -07:00
Robert Moore
63ebf517fd iASL: Add mechanism to disable specific warnings/remarks.
New command line option, -vw<messageid>. also #pragma disable <messageid>.
ACPICA BZ 989. Chao Guan, Bob Moore.
2013-05-07 12:04:53 -07:00
Robert Moore
ba84d0fc18 iASL: If a non-serialized method creates named objects, issue remark.
If a thread blocks within the method for any reason, and another thread
enters the method, the method will fail because an attempt will be
made to create the same (named) object twice.

In this case, issue a remark that the method should be marked
serialized. ACPICA BZ 909.
2013-05-03 09:14:52 -07:00
Robert Moore
d6c105ae00 Update release build script for acpidump.
Add new utility to the ACPICA release script.
2013-05-03 07:48:55 -07:00
Robert Moore
69d912895e AcpiDump: Add porting instructions to main module.
Instructions on porting utility to other host operating systems.
2013-05-03 07:39:40 -07:00
Robert Moore
02fe96717e Update interface to AcpiUtValidAcpiName.
Clean up the interface by making the input argument a char * string
instead of a UINT32 name. This is easier to use for all callers
and eliminates casting to *(UINT32*)
2013-05-02 12:03:50 -07:00
Robert Moore
fad0d289af Deploy ACPI_DEBUG_INITIALIZE across all ACPICA utilities.
This macros enables per-host and per-compiler initialization
of debug information/output, etc. for the debug versions of the
utilities only.
2013-05-02 11:40:20 -07:00
Robert Moore
1cf06395c0 Update makefiles and project files for new acpidump utility.
Add acpidump utility.
2013-05-02 09:32:44 -07:00
Robert Moore
15215bf87d New: Portable acpidump utility (get system ACPI tables).
This utility dumps the system ACPI tables in an ascii format suitable
for extraction via the acpixtract utility.

The main code is portable across environments and hosts. To port the
code, only 3 functions need to be written specifically to obtain
the binary tables from the system.

In this version, Windows is supported. Linux support will be
added later.

ACPICA bugzilla 859.
2013-05-02 09:27:35 -07:00
Robert Moore
bc5dceb5a9 AcpiExec: Correctly implement -h option.
'h' was not in the option list and thus did not work.
2013-05-01 13:07:39 -07:00
Robert Moore
34f226fa26 Do not use extended sleep registers unless HW-reduced bit is set.
Previous implementation incorrectly used the ACPI 5.0 extended sleep
registers if they were simply populated. This caused problems on some
non-HW-reduced machines. As per the ACPI spec,
they should only be used if the HW-reduced bit is set.
Lv Zheng, ACPICA BZ 1020.
2013-05-01 13:03:08 -07:00
Robert Moore
2dbd8e17fb Update makefiles and project files for new file.
Add tbprint.c
2013-04-30 08:26:20 -07:00
Robert Moore
321bd98e8c Split table print utilities to a new a separate file.
Improves configurability of ACPICA.
2013-04-30 08:25:15 -07:00
Robert Moore
fddb804e32 Unix makefile: Abort top-level make on any sub-component error.
Add immediate abort on any errors from any of the sub-components
(AcpiExec, iASL, etc.). Chao Guan. ACPICA BZ 1007.
2013-04-29 09:40:23 -07:00
Robert Moore
703a1b7cb5 iASL/-so option: Add support for control methods.
Allows BIOS to dynamically change the name of control methods.
Also, added documentation of object types in the -so file.
Renamed some fields in the offset struct in the -so file.
2013-04-26 13:21:57 -07:00
Robert Moore
2aabe57456 Add option to disable loading of SSDTs from the RSDT/XSDT.
Optionally do not load any SSDTs from the RSDT/XSDT during initialization.
This can be useful for debugging ACPI problems on some machines.
Lv Zheng. ACPICA BZ 1005.
2013-04-24 12:16:17 -07:00
Robert Moore
6b0b8eedff Standardize all switch() blocks.
After many years, different formatting for switch() has crept in.
This change makes every switch block identical. Chao Guan.
ACPICA bugzilla 997.
2013-04-23 14:04:40 -07:00
Robert Moore
c0e2cf9b53 Debugger: Fix strlen +1 issue with History command.
Allocate strlen +1 for history buffers.
2013-04-23 13:38:27 -07:00
Robert Moore
a9d8bd031d Update makefiles and project files for new file.
Add uterror.c
2013-04-19 14:15:32 -07:00
Robert Moore
83cded84d7 Split internal error msg routines to a separate file.
Improves configurability of ACPICA.
2013-04-19 14:12:51 -07:00
Robert Moore
a3f45e58b8 AcpiBin: Miscellaneous cleanup.
Cleanup some code
Add additional error checks
Add additional output info message
2013-04-19 13:33:58 -07:00
Robert Moore
3cc4aaba03 Update makefiles and project files for new file.
Add utbuffer.c
2013-04-19 10:05:13 -07:00
Robert Moore
ba8e736ad6 Split buffer dump routines into separate file.
To enhance configurability of ACPICA.
New file is utilities/utbuffer.c
2013-04-19 10:03:05 -07:00
Robert Moore
9e4829846b Debugger: Fix 80-char command line limitation for History command.
Allow arbitrary command line lengths.
Increase history buffer to last 40 commands.
ACPICA BZ 1000. Chao Guan.
2013-04-18 14:40:03 -07:00
Robert Moore
60396f893b Update version to 20130418.
Version 20130418.
R04_18_13
2013-04-18 12:44:34 -07:00
Robert Moore
fc2ca357ce Logfile: Changes for version 20130418.
Version 20130418.
2013-04-18 12:43:55 -07:00
Robert Moore
d26da516d7 Debugger: Use ACPI_STRLEN instead of just strlen().
Required for ACPICA configurability.
2013-04-18 09:32:31 -07:00
Robert Moore
0ecbfc54b6 AcpiExec: Ensure all handlers installed before _REG method execution.
Move the installation of the "late" handlers to just before
AcpiInitializeObjects is executed. This ensures that all region
handlers are installed before the _REG methods are executed.
2013-04-18 09:30:36 -07:00
Robert Moore
875842a2de AcpiExec: Add support for multiple embedded controllers.
This change installs operation region handlers for multiple embedded
controllers that the DSDT may support. All EC handlers are now
installed at the individual EC device nodes, instead of a single
EC handler installed at the root. This reflects the typical installation
of EC operation region handler(s) by host operating systems.
2013-04-18 09:04:05 -07:00
Robert Moore
69d3f570d6 Debugger: Enhance "handlers" command to display non-root handlers.
This change enhances the handlers command to display handlers
associated with individual devices throughout the namespace, in
addition to the currently supported display of handlers associated
with the root namespace node.
2013-04-18 09:02:20 -07:00
Robert Moore
9ae6175521 Update for "orphan" embedded controller _REG method support.
This refers to _REG methods under the EC device that have no
corresponding operation region. This is allowed by the ACPI
specification. This update removes a dependency on having an
ECDT table, and will execute an orphan _REG method as long as
the handler for the EC is installed at the EC device node
(not the namespace root).
Rui Zhang (original update), Bob Moore (update/integrate).
2013-04-18 09:01:12 -07:00
Robert Moore
ef3d11ee9d _OSI support: Fix possible memory leak.
Fixes a possible memory leak in the error exit path.
Jung-uk Kim (jkim@FreeBSD.org), Bob Moore.
2013-04-17 07:39:30 -07:00
Robert Moore
29c5740f4c Remove unused macros, no functional change.
Remove several unused/duplicated macros in acoutput.h
Lv Zheng.
2013-04-17 07:37:51 -07:00
Robert Moore
4cdb22f2d7 Unix/Linux makefiles: Remove use of -O2 flag that causes problems.
For older versions of gcc, -O2 can cause a warning/error concerning
strchr(). This was fixed in gcc 4.5. Chao Guan.
2013-04-16 13:40:11 -07:00
Robert Moore
80c3cc3255 ASLTS: Miscellaneous tests updates/fixes.
STST:exceptions:exc_tbl:TUL1.tst5
STST:exceptions:exc_tbl:TLT1.tsth
STST:exceptions:exc_tbl:TLD1.tste.0
STST:Identity2MS:abbu:ms14

Chao Guan.
2013-04-16 12:40:23 -07:00
Robert Moore
2f1a0a5c6f Predefined name support: Remove unused local variable.
"Pathname" is no longer used.
2013-04-16 10:17:28 -07:00
Robert Moore
ad314879f7 Update makefiles and project files for new file.
Add nsarguments.c
2013-04-12 14:32:07 -07:00
Robert Moore
9b46d42b75 Add argument typechecking for all predefined ACPI names.
Fully implements typechecking on all incoming arguments for all
predefined names. This ensures that ACPI-related drivers are
passing the correct number of arguments, each of the correct
object type.

Argument counts are checked for the incoming arguments as well
as for the actual ASL definition of the ACPI name itself
(it must match the ACPI specification).
2013-04-12 14:31:19 -07:00
Robert Moore
f9c8728fda AcpiExec: Add a default handler for SystemCMOS.
Add SystemCMOS handler so that methods that use CMOS won't have
to abort when CMOS is accessed. For AcpiExec ONLY. Not for the
kernel resident code.
2013-04-12 14:18:27 -07:00
Robert Moore
07efe7143c iASL: Update for new argument list format for predefined names.
The predefined name table now includes argument types.
2013-04-12 14:15:49 -07:00
Robert Moore
e3b41901fe Fix possible buffer overflow during a field unit read operation.
Can only happen under these conditions:
1) The DSDT version is 1, meaning integers are 32-bits.
2) The field is between 33 and 64 bits long.

In this case, a buffer is created for the field, but it will
be written beyond the end because it is less than 64 bits long.
2013-04-12 12:33:34 -07:00
Robert Moore
cd8237dd42 Windows OSL: Remove obsolete reference to memory list field.
The LinkOffset field has been removed. Caused a compile problem
if the local cache is not used. (Windows utilities only.)
2013-04-12 09:39:30 -07:00
Robert Moore
075993daa4 Add BIOS error interface for predefined name validation support.
BIOS error message for errors found in predefined names.
2013-04-11 09:33:31 -07:00
Robert Moore
11f22578f8 Change an exception code for the ASL UnLoad() operator.
Change the exception code for the case where the input DdbHandle
is invalid from AE_BAD_PARAMETER to the more appropriate
AE_AML_OPERAND_TYPE.
2013-04-10 11:59:16 -07:00
Robert Moore
63c017f5e8 Update version to 20130328.
Version 20130328.
R03_28_13
2013-03-28 09:45:10 -07:00
Robert Moore
1c1f875f4b Logfile: Changes for version 20130328.
Version 20130328.
2013-03-28 09:44:09 -07:00
Robert Moore
d6c0371f18 ACPICA Reference: Add section for internal mutex/lock usage.
Adds a new section that describes the internal use of mutex
and spinlock objects for mutual exclusion.
2013-03-28 09:38:22 -07:00
Robert Moore
5520b064b2 Update .gitignore file.
New script files.
2013-03-27 11:56:51 -07:00