Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/acpica/dist One more time in the right plac...



details:   https://anonhg.NetBSD.org/src/rev/14d6b4fd9cfd
branches:  trunk
changeset: 821128:14d6b4fd9cfd
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 25 13:03:49 2017 +0000

description:
One more time in the right place...

----------------------------------------
19 January 2017. Summary of changes for version 20170119:

This release is available at https://acpica.org/downloads

1) General ACPICA software:

Entire source code base: Added the 2017 copyright to all source code
legal/licensing module headers and utility/tool signons. This includes
the standard Linux dual-license header. This affects virtually every file
in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
the ACPICA test suite.


2) iASL Compiler/Disassembler and Tools:

iASL: Removed/fixed an inadvertent remark when a method argument
containing a reference is used as a target operand within the method (and
never used as a simple argument), as in the example below. Jeffrey Hugo.

    dsdt.asl   1507:    Store(0x1, Arg0)
    Remark   2146 -                ^ Method Argument is never used (Arg0)

All tools: Removed the bit width of the compiler that generated the tool
from the common signon for all user space tools. This proved to be
confusing and unnecessary. This includes similar removal of HARDWARE_NAME
from the generic makefiles (Thomas Petazzoni). Example below.

    Old:
    ASL+ Optimizing Compiler version 20170119-32
    ASL+ Optimizing Compiler version 20170119-64

    New:
    ASL+ Optimizing Compiler version 20170119

----------------------------------------
22 December 2016. Summary of changes for version 20161222:


1) ACPICA kernel-resident subsystem:

AML Debugger: Implemented a new mechanism to simplify and enhance
debugger integration into all environments, including kernel debuggers
and user-space utilities, as well as remote debug services. This
mechanism essentially consists of new OSL interfaces to support debugger
initialization/termination, as well as wait/notify interfaces to perform
the debugger handshake with the host. Lv Zheng.

    New OSL interfaces:
        AcpiOsInitializeDebugger (void)
        AcpiOsTerminateDebugger (void)
        AcpiOsWaitCommandReady (void)
        AcpiOsNotifyCommandComplete (void)

    New OS services layer:
        osgendbg.c -- Example implementation, and used for AcpiExec

Update for Generic Address Space (GAS) support: Although the AccessWidth
and/or BitOffset fields of the GAS are not often used, this change now
fully supports these fields. This affects the internal support for FADT
registers, registers in other ACPI data tables, and the AcpiRead and
AcpiWrite public interfaces. Lv Zheng.

Sleep support: In order to simplify integration of ACPI sleep for the
various host operating systems, a new OSL interface has been introduced.
AcpiOsEnterSleep allows the host to perform any required operations
before the final write to the sleep control register(s) is performed by
ACPICA. Lv Zheng.

    New OSL interface:
        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)

    Called from these internal interfaces:
        AcpiHwLegacySleep
        AcpiHwExtendedSleep

EFI support: Added a very small EFI/ACPICA example application. Provides
a simple demo for EFI integration, as well as assisting with resolution
of issues related to customer ACPICA/EFI integration. Lv Zheng. See:

    source/tools/efihello/efihello.c

Local C library: Implemented several new functions to enhance ACPICA
portability, for environments where these clib functions are not
available (such as EFI). Lv Zheng:
    putchar
    getchar
    strpbrk
    strtok
    memmove

Fixed a regression where occasionally a valid resource descriptor was
incorrectly detected as invalid at runtime, and a
AE_AML_NO_RESOURCE_END_TAG was returned.

Fixed a problem with the recently implemented support that enables
control method invocations as Target operands to many ASL operators.
Warnings of this form: "Needed type [Reference], found [Processor]" were
seen at runtime for some method invocations.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

  Current Release:
    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
  Previous Release:
    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total


2) iASL Compiler/Disassembler and Tools:

Disassembler: Enhanced output by adding the capability to detect and
disassemble ASL Switch/Case statements back to the original ASL source
code instead of if/else blocks. David Box.

AcpiHelp: Split a large file into separate files based upon
functionality/purpose. New files are:
    ahaml.c
    ahasl.c

----------------------------------------
17 November 2016. Summary of changes for version 20161117:


1) ACPICA kernel-resident subsystem:

Table Manager: Fixed a regression introduced in 20160729, "FADT support
cleanup". This was an attempt to remove all references in the source to
the FADT version 2, which never was a legal version number. It was
skipped because it was an early version of 64-bit support that was
eventually abandoned for the current 64-bit support.

Interpreter: Fixed a problem where runtime implicit conversion was
incorrectly disabled for the ASL operators below. This brings the
behavior into compliance with the ACPI specification:
    FromBCD
    ToBCD
    ToDecimalString
    ToHexString
    ToInteger
    ToBuffer

Table Manager: Added a new public interface, AcpiPutTable, used to
release and free an ACPI table returned by AcpiGetTable and related
interfaces. Lv Zheng.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

  Current Release:
    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
  Previous Release:
    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total


2) iASL Compiler/Disassembler and Tools:

Disassembler: Fixed a regression for disassembly of Resource Template.
Detection of templates in the AML stream missed some types of templates.

iASL: Fixed a problem where an Access Size error was returned for the PCC
address space when the AccessSize of the GAS register is greater than a
DWORD. Hoan Tran.

iASL: Implemented several grammar changes for the operators below. These
changes are slated for the next version of the ACPI specification:
    RefOf        - Disallow method invocation as an operand
    CondRefOf    - Disallow method invocation as an operand
    DerefOf      - Disallow operands that use the result from operators
that
                   do not return a reference (Changed TermArg to
SuperName).

iASL: Control method invocations are now allowed for Target operands, as
per the ACPI specification. Removed error for using a control method
invocation as a Target operand.

Disassembler: Improved detection of Resource Templates, Unicode, and
Strings within Buffer objects. These subtypes do not contain a specific
opcode to indicate the originating ASL code, and they must be detected by
other means within the disassembler.

iASL: Implemented an optimization improvement for 32-bit ACPI tables
(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
only after 64-bit to 32-bit truncation. A truncation warning message is
still emitted, however.

AcpiXtract: Implemented handling for both types of line terminators (LF
or CR/LF) so that it can accept AcpiDump output files from any system.
Peter Wu.

AcpiBin: Added two new options for comparing AML files:
    -a: compare and display ALL mismatches
    -o: start compare at this offset into the second file

diffstat:

 sys/external/bsd/acpica/dist/changes.txt                            |   203 +
 sys/external/bsd/acpica/dist/common/acfileio.c                      |    28 +-
 sys/external/bsd/acpica/dist/common/acgetline.c                     |     2 +-
 sys/external/bsd/acpica/dist/common/adfile.c                        |     2 +-
 sys/external/bsd/acpica/dist/common/adisasm.c                       |     2 +-
 sys/external/bsd/acpica/dist/common/adwalk.c                        |     2 +-
 sys/external/bsd/acpica/dist/common/ahids.c                         |     2 +-
 sys/external/bsd/acpica/dist/common/ahpredef.c                      |     2 +-
 sys/external/bsd/acpica/dist/common/ahtable.c                       |     8 +-
 sys/external/bsd/acpica/dist/common/ahuuids.c                       |     6 +-
 sys/external/bsd/acpica/dist/common/cmfsize.c                       |     2 +-
 sys/external/bsd/acpica/dist/common/dmextern.c                      |     2 +-
 sys/external/bsd/acpica/dist/common/dmrestag.c                      |     2 +-
 sys/external/bsd/acpica/dist/common/dmtable.c                       |     2 +-
 sys/external/bsd/acpica/dist/common/dmtables.c                      |     2 +-
 sys/external/bsd/acpica/dist/common/getopt.c                        |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslascii.c                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslbtypes.c                   |     3 +-
 sys/external/bsd/acpica/dist/compiler/aslcodegen.c                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslcstyle.y                   |    44 +-
 sys/external/bsd/acpica/dist/compiler/asldebug.c                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/asldefine.h                   |     4 +-
 sys/external/bsd/acpica/dist/compiler/aslexternal.c                 |    17 +-
 sys/external/bsd/acpica/dist/compiler/aslfold.c                     |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslglobal.h                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslhelp.c                     |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslhelpers.y                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslhex.c                      |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslkeywords.y                 |    19 +-
 sys/external/bsd/acpica/dist/compiler/asllength.c                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/asllisting.c                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/asllistsup.c                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmain.c                     |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmap.c                      |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmapenter.c                 |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmapoutput.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmaputils.c                 |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmessages.c                 |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmessages.h                 |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslmethod.c                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslnamesp.c                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/asloffset.c                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/asloperands.c                 |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslparser.y                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslpld.c                      |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslprimaries.y                |  1023 +++++----
 sys/external/bsd/acpica/dist/compiler/aslprintf.c                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslprune.c                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslresource.c                 |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslresources.y                |   367 ++-
 sys/external/bsd/acpica/dist/compiler/aslrestype1.c                 |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype1i.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2.c                 |     7 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2d.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2e.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2q.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2s.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2w.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslrules.y                    |   165 +-
 sys/external/bsd/acpica/dist/compiler/aslstartup.c                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslstubs.c                    |     5 +-
 sys/external/bsd/acpica/dist/compiler/aslsupport.y                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/asltokens.y                   |     5 +-
 sys/external/bsd/acpica/dist/compiler/asltransform.c                |     2 +-
 sys/external/bsd/acpica/dist/compiler/asltypes.h                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/asltypes.y                    |     9 +-
 sys/external/bsd/acpica/dist/compiler/asluuid.c                     |     2 +-
 sys/external/bsd/acpica/dist/compiler/aslxrefout.c                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/dtcompiler.h                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/dtexpress.c                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/dtio.c                        |     2 +-
 sys/external/bsd/acpica/dist/compiler/dtparser.l                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/dttable1.c                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/dttable2.c                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/dttemplate.c                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/dttemplate.h                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/preprocess.h                  |     2 +-
 sys/external/bsd/acpica/dist/compiler/prexpress.c                   |     2 +-
 sys/external/bsd/acpica/dist/compiler/prmacros.c                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/prparser.l                    |     2 +-
 sys/external/bsd/acpica/dist/compiler/prscan.c                      |     2 +-
 sys/external/bsd/acpica/dist/debugger/dbconvert.c                   |     2 +-
 sys/external/bsd/acpica/dist/debugger/dbfileio.c                    |     2 +-
 sys/external/bsd/acpica/dist/debugger/dbhistry.c                    |     2 +-
 sys/external/bsd/acpica/dist/debugger/dbobject.c                    |     2 +-
 sys/external/bsd/acpica/dist/debugger/dbstats.c                     |     2 +-
 sys/external/bsd/acpica/dist/debugger/dbxface.c                     |    74 +-
 sys/external/bsd/acpica/dist/disassembler/dmdeferred.c              |     2 +-
 sys/external/bsd/acpica/dist/disassembler/dmnames.c                 |     2 +-
 sys/external/bsd/acpica/dist/disassembler/dmopcode.c                |   467 ++++-
 sys/external/bsd/acpica/dist/disassembler/dmresrcs.c                |     2 +-
 sys/external/bsd/acpica/dist/disassembler/dmutils.c                 |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsargs.c                    |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsdebug.c                   |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsfield.c                   |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsinit.c                    |    12 +-
 sys/external/bsd/acpica/dist/dispatcher/dsmethod.c                  |    52 +-
 sys/external/bsd/acpica/dist/dispatcher/dsmthdat.c                  |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsobject.c                  |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswexec.c                   |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswload.c                   |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswload2.c                  |    19 +-
 sys/external/bsd/acpica/dist/dispatcher/dswscope.c                  |     2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswstate.c                  |     2 +-
 sys/external/bsd/acpica/dist/events/evevent.c                       |     2 +-
 sys/external/bsd/acpica/dist/events/evglock.c                       |     2 +-
 sys/external/bsd/acpica/dist/events/evgpe.c                         |     2 +-
 sys/external/bsd/acpica/dist/events/evgpeblk.c                      |     2 +-
 sys/external/bsd/acpica/dist/events/evgpeinit.c                     |     2 +-
 sys/external/bsd/acpica/dist/events/evgpeutil.c                     |     2 +-
 sys/external/bsd/acpica/dist/events/evhandler.c                     |     2 +-
 sys/external/bsd/acpica/dist/events/evmisc.c                        |     2 +-
 sys/external/bsd/acpica/dist/events/evsci.c                         |     2 +-
 sys/external/bsd/acpica/dist/events/evxfevnt.c                      |     2 +-
 sys/external/bsd/acpica/dist/events/evxfgpe.c                       |     2 +-
 sys/external/bsd/acpica/dist/events/evxfregn.c                      |     2 +-
 sys/external/bsd/acpica/dist/executer/exconcat.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exconvrt.c                    |     3 +-
 sys/external/bsd/acpica/dist/executer/excreate.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exfield.c                     |     2 +-
 sys/external/bsd/acpica/dist/executer/exfldio.c                     |    17 +-
 sys/external/bsd/acpica/dist/executer/exmisc.c                      |     2 +-
 sys/external/bsd/acpica/dist/executer/exmutex.c                     |     2 +-
 sys/external/bsd/acpica/dist/executer/exnames.c                     |     2 +-
 sys/external/bsd/acpica/dist/executer/exoparg1.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exoparg2.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exoparg3.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exoparg6.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exprep.c                      |     2 +-
 sys/external/bsd/acpica/dist/executer/exregion.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exresnte.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exresolv.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exresop.c                     |     3 +-
 sys/external/bsd/acpica/dist/executer/exstore.c                     |     2 +-
 sys/external/bsd/acpica/dist/executer/exstoren.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exstorob.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/exsystem.c                    |     2 +-
 sys/external/bsd/acpica/dist/executer/extrace.c                     |     2 +-
 sys/external/bsd/acpica/dist/executer/exutils.c                     |     2 +-
 sys/external/bsd/acpica/dist/generate/unix/Makefile.common          |    34 -
 sys/external/bsd/acpica/dist/generate/unix/acpiexec/Makefile        |     1 +
 sys/external/bsd/acpica/dist/generate/unix/acpihelp/Makefile        |     2 +
 sys/external/bsd/acpica/dist/hardware/hwacpi.c                      |     2 +-
 sys/external/bsd/acpica/dist/hardware/hwgpe.c                       |     2 +-
 sys/external/bsd/acpica/dist/hardware/hwpci.c                       |     2 +-
 sys/external/bsd/acpica/dist/hardware/hwtimer.c                     |     2 +-
 sys/external/bsd/acpica/dist/hardware/hwvalid.c                     |     2 +-
 sys/external/bsd/acpica/dist/hardware/hwxface.c                     |     2 +-
 sys/external/bsd/acpica/dist/include/acbuffer.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acclib.h                       |    40 +-
 sys/external/bsd/acpica/dist/include/accommon.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acconfig.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acdispat.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acevents.h                     |     5 +-
 sys/external/bsd/acpica/dist/include/achware.h                      |     2 +-
 sys/external/bsd/acpica/dist/include/acnames.h                      |     2 +-
 sys/external/bsd/acpica/dist/include/acobject.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acopcode.h                     |    24 +-
 sys/external/bsd/acpica/dist/include/acparser.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acpi.h                         |     2 +-
 sys/external/bsd/acpica/dist/include/acpredef.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acrestyp.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/acstruct.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/actbl.h                        |   167 +-
 sys/external/bsd/acpica/dist/include/actbl2.h                       |     2 +-
 sys/external/bsd/acpica/dist/include/actbl3.h                       |     2 +-
 sys/external/bsd/acpica/dist/include/acuuid.h                       |     2 +-
 sys/external/bsd/acpica/dist/include/amlcode.h                      |    24 +-
 sys/external/bsd/acpica/dist/include/amlresrc.h                     |     2 +-
 sys/external/bsd/acpica/dist/include/platform/accygwin.h            |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acdragonfly.h         |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acdragonflyex.h       |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acefi.h               |     6 +-
 sys/external/bsd/acpica/dist/include/platform/acefiex.h             |    54 +-
 sys/external/bsd/acpica/dist/include/platform/acenv.h               |     7 +-
 sys/external/bsd/acpica/dist/include/platform/acenvex.h             |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acfreebsd.h           |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acgccex.h             |     2 +-
 sys/external/bsd/acpica/dist/include/platform/achaiku.h             |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acintel.h             |     2 +-
 sys/external/bsd/acpica/dist/include/platform/aclinux.h             |    14 +-
 sys/external/bsd/acpica/dist/include/platform/aclinuxex.h           |    20 +-
 sys/external/bsd/acpica/dist/include/platform/acmacosx.h            |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acmsvc.h              |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acmsvcex.h            |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acos2.h               |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acqnx.h               |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acwin.h               |     2 +-
 sys/external/bsd/acpica/dist/include/platform/acwin64.h             |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsalloc.c                    |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsarguments.c                |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsconvert.c                  |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsdumpdv.c                   |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsload.c                     |     4 +-
 sys/external/bsd/acpica/dist/namespace/nsnames.c                    |    54 +-
 sys/external/bsd/acpica/dist/namespace/nsobject.c                   |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsparse.c                    |     2 +-
 sys/external/bsd/acpica/dist/namespace/nspredef.c                   |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsprepkg.c                   |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsrepair.c                   |     2 +-
 sys/external/bsd/acpica/dist/namespace/nssearch.c                   |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsutils.c                    |     2 +-
 sys/external/bsd/acpica/dist/namespace/nswalk.c                     |     2 +-
 sys/external/bsd/acpica/dist/namespace/nsxfobj.c                    |     2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osbsdtbl.c  |     2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osgendbg.c  |   366 +++
 sys/external/bsd/acpica/dist/os_specific/service_layers/osunixdir.c |     2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osunixmap.c |     2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osunixxf.c  |    29 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/oswindir.c  |     2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/oswintbl.c  |     2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/oswinxf.c   |    29 +-
 sys/external/bsd/acpica/dist/parser/psargs.c                        |    83 +-
 sys/external/bsd/acpica/dist/parser/psloop.c                        |     5 +-
 sys/external/bsd/acpica/dist/parser/psobject.c                      |    10 +-
 sys/external/bsd/acpica/dist/parser/psparse.c                       |     2 +-
 sys/external/bsd/acpica/dist/parser/psscope.c                       |     2 +-
 sys/external/bsd/acpica/dist/parser/pstree.c                        |    12 +-
 sys/external/bsd/acpica/dist/parser/psutils.c                       |     2 +-
 sys/external/bsd/acpica/dist/parser/pswalk.c                        |     2 +-
 sys/external/bsd/acpica/dist/parser/psxface.c                       |     2 +-
 sys/external/bsd/acpica/dist/resources/rsaddr.c                     |     2 +-
 sys/external/bsd/acpica/dist/resources/rscalc.c                     |     2 +-
 sys/external/bsd/acpica/dist/resources/rscreate.c                   |     2 +-
 sys/external/bsd/acpica/dist/resources/rsinfo.c                     |     2 +-
 sys/external/bsd/acpica/dist/resources/rsio.c                       |     2 +-
 sys/external/bsd/acpica/dist/resources/rsirq.c                      |     2 +-
 sys/external/bsd/acpica/dist/resources/rslist.c                     |     2 +-
 sys/external/bsd/acpica/dist/resources/rsmemory.c                   |     2 +-
 sys/external/bsd/acpica/dist/resources/rsmisc.c                     |     2 +-
 sys/external/bsd/acpica/dist/resources/rsserial.c                   |     2 +-
 sys/external/bsd/acpica/dist/tables/tbfind.c                        |     2 +-
 sys/external/bsd/acpica/dist/tables/tbprint.c                       |     2 +-
 sys/external/bsd/acpica/dist/tests/misc/grammar.asl                 |   151 +-
 sys/external/bsd/acpica/dist/tools/acpibin/abcompare.c              |    11 +-
 sys/external/bsd/acpica/dist/tools/acpibin/abmain.c                 |    19 +-
 sys/external/bsd/acpica/dist/tools/acpibin/acpibin.h                |     4 +-
 sys/external/bsd/acpica/dist/tools/acpidump/acpidump.h              |     2 +-
 sys/external/bsd/acpica/dist/tools/acpidump/apdump.c                |     2 +-
 sys/external/bsd/acpica/dist/tools/acpidump/apmain.c                |     2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aecommon.h              |     2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeexec.c                |     2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aehandlers.c            |     2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeinitfile.c            |     2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aemain.c                |    67 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeregion.c              |     2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aetables.c              |     2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aetables.h              |     2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/acpihelp.h              |    76 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahaml.c                 |   349 +++
 sys/external/bsd/acpica/dist/tools/acpihelp/ahamlops.c              |     4 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahasl.c                 |   319 +++
 sys/external/bsd/acpica/dist/tools/acpihelp/ahaslkey.c              |     6 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahaslops.c              |     4 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahdecode.c              |   734 +------
 sys/external/bsd/acpica/dist/tools/acpihelp/ahgrammar.c             |     4 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahmain.c                |     4 +-
 sys/external/bsd/acpica/dist/tools/acpinames/acpinames.h            |     2 +-
 sys/external/bsd/acpica/dist/tools/acpinames/anmain.c               |     2 +-
 sys/external/bsd/acpica/dist/tools/acpinames/anstubs.c              |     5 +-
 sys/external/bsd/acpica/dist/tools/acpinames/antables.c             |     2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/acpisrc.h                |     2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/ascase.c                 |     2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asconvrt.c               |     2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asfile.c                 |     2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asmain.c                 |     2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asremove.c               |     2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/astable.c                |     8 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asutils.c                |     2 +-
 sys/external/bsd/acpica/dist/tools/acpixtract/acpixtract.h          |     2 +-
 sys/external/bsd/acpica/dist/tools/acpixtract/axmain.c              |     2 +-
 sys/external/bsd/acpica/dist/tools/acpixtract/axutils.c             |     8 +-
 sys/external/bsd/acpica/dist/tools/efihello/efihello.c              |   124 +
 sys/external/bsd/acpica/dist/tools/examples/examples.c              |     2 +-
 sys/external/bsd/acpica/dist/tools/examples/examples.h              |     2 +-
 sys/external/bsd/acpica/dist/tools/examples/exstubs.c               |     2 +-
 sys/external/bsd/acpica/dist/tools/examples/extables.c              |     2 +-
 sys/external/bsd/acpica/dist/utilities/utaddress.c                  |     2 +-
 sys/external/bsd/acpica/dist/utilities/utalloc.c                    |     2 +-
 sys/external/bsd/acpica/dist/utilities/utascii.c                    |     2 +-
 sys/external/bsd/acpica/dist/utilities/utbuffer.c                   |     2 +-
 sys/external/bsd/acpica/dist/utilities/utclib.c                     |   144 +-
 sys/external/bsd/acpica/dist/utilities/utcopy.c                     |     2 +-
 sys/external/bsd/acpica/dist/utilities/utdelete.c                   |     7 +-
 sys/external/bsd/acpica/dist/utilities/uterror.c                    |     2 +-
 sys/external/bsd/acpica/dist/utilities/utexcep.c                    |     2 +-
 sys/external/bsd/acpica/dist/utilities/uthex.c                      |     2 +-
 sys/external/bsd/acpica/dist/utilities/utids.c                      |     2 +-
 sys/external/bsd/acpica/dist/utilities/utinit.c                     |     2 +-
 sys/external/bsd/acpica/dist/utilities/utlock.c                     |     2 +-
 sys/external/bsd/acpica/dist/utilities/utmath.c                     |     2 +-
 sys/external/bsd/acpica/dist/utilities/utnonansi.c                  |     2 +-
 sys/external/bsd/acpica/dist/utilities/utownerid.c                  |     2 +-
 sys/external/bsd/acpica/dist/utilities/utpredef.c                   |     2 +-
 sys/external/bsd/acpica/dist/utilities/utresrc.c                    |    19 +-
 sys/external/bsd/acpica/dist/utilities/utstate.c                    |     2 +-
 sys/external/bsd/acpica/dist/utilities/utstring.c                   |     2 +-
 sys/external/bsd/acpica/dist/utilities/utstrtoul64.c                |     2 +-
 sys/external/bsd/acpica/dist/utilities/utxface.c                    |     2 +-
 sys/external/bsd/acpica/dist/utilities/utxferror.c                  |     2 +-
 sys/external/bsd/acpica/dist/utilities/utxfinit.c                   |     2 +-
 sys/external/bsd/acpica/dist/utilities/utxfmutex.c                  |     2 +-
 302 files changed, 4006 insertions(+), 2081 deletions(-)

diffs (truncated from 11657 to 300 lines):

diff -r 93bc758fadab -r 14d6b4fd9cfd sys/external/bsd/acpica/dist/changes.txt
--- a/sys/external/bsd/acpica/dist/changes.txt  Wed Jan 25 12:42:05 2017 +0000
+++ b/sys/external/bsd/acpica/dist/changes.txt  Wed Jan 25 13:03:49 2017 +0000
@@ -1,4 +1,207 @@
 ----------------------------------------
+19 January 2017. Summary of changes for version 20170119:
+
+This release is available at https://acpica.org/downloads
+
+1) General ACPICA software:
+
+Entire source code base: Added the 2017 copyright to all source code 
+legal/licensing module headers and utility/tool signons. This includes 
+the standard Linux dual-license header. This affects virtually every file 
+in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and 
+the ACPICA test suite.
+
+
+2) iASL Compiler/Disassembler and Tools:
+
+iASL: Removed/fixed an inadvertent remark when a method argument 
+containing a reference is used as a target operand within the method (and 
+never used as a simple argument), as in the example below. Jeffrey Hugo.
+
+    dsdt.asl   1507:    Store(0x1, Arg0)
+    Remark   2146 -                ^ Method Argument is never used (Arg0)
+
+All tools: Removed the bit width of the compiler that generated the tool 
+from the common signon for all user space tools. This proved to be 
+confusing and unnecessary. This includes similar removal of HARDWARE_NAME 
+from the generic makefiles (Thomas Petazzoni). Example below.
+
+    Old:
+    ASL+ Optimizing Compiler version 20170119-32
+    ASL+ Optimizing Compiler version 20170119-64
+
+    New:
+    ASL+ Optimizing Compiler version 20170119
+
+----------------------------------------
+22 December 2016. Summary of changes for version 20161222:
+
+
+1) ACPICA kernel-resident subsystem:
+
+AML Debugger: Implemented a new mechanism to simplify and enhance 
+debugger integration into all environments, including kernel debuggers 
+and user-space utilities, as well as remote debug services. This 
+mechanism essentially consists of new OSL interfaces to support debugger 
+initialization/termination, as well as wait/notify interfaces to perform 
+the debugger handshake with the host. Lv Zheng.
+
+    New OSL interfaces:
+        AcpiOsInitializeDebugger (void)
+        AcpiOsTerminateDebugger (void)
+        AcpiOsWaitCommandReady (void)
+        AcpiOsNotifyCommandComplete (void)
+
+    New OS services layer:
+        osgendbg.c -- Example implementation, and used for AcpiExec
+
+Update for Generic Address Space (GAS) support: Although the AccessWidth 
+and/or BitOffset fields of the GAS are not often used, this change now 
+fully supports these fields. This affects the internal support for FADT 
+registers, registers in other ACPI data tables, and the AcpiRead and 
+AcpiWrite public interfaces. Lv Zheng.
+
+Sleep support: In order to simplify integration of ACPI sleep for the 
+various host operating systems, a new OSL interface has been introduced. 
+AcpiOsEnterSleep allows the host to perform any required operations 
+before the final write to the sleep control register(s) is performed by 
+ACPICA. Lv Zheng.
+
+    New OSL interface:
+        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)
+
+    Called from these internal interfaces:
+        AcpiHwLegacySleep
+        AcpiHwExtendedSleep
+
+EFI support: Added a very small EFI/ACPICA example application. Provides 
+a simple demo for EFI integration, as well as assisting with resolution 
+of issues related to customer ACPICA/EFI integration. Lv Zheng. See:
+
+    source/tools/efihello/efihello.c
+
+Local C library: Implemented several new functions to enhance ACPICA 
+portability, for environments where these clib functions are not 
+available (such as EFI). Lv Zheng:
+    putchar
+    getchar
+    strpbrk
+    strtok
+    memmove
+
+Fixed a regression where occasionally a valid resource descriptor was 
+incorrectly detected as invalid at runtime, and a 
+AE_AML_NO_RESOURCE_END_TAG was returned.
+
+Fixed a problem with the recently implemented support that enables 
+control method invocations as Target operands to many ASL operators. 
+Warnings of this form: "Needed type [Reference], found [Processor]" were 
+seen at runtime for some method invocations.
+
+Example Code and Data Size: These are the sizes for the OS-independent 
+acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 
+debug version of the code includes the debug output trace mechanism and 
+has a much larger code and data size.
+
+  Current Release:
+    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
+    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
+  Previous Release:
+    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
+    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
+
+
+2) iASL Compiler/Disassembler and Tools:
+
+Disassembler: Enhanced output by adding the capability to detect and 
+disassemble ASL Switch/Case statements back to the original ASL source 
+code instead of if/else blocks. David Box.
+
+AcpiHelp: Split a large file into separate files based upon 
+functionality/purpose. New files are:
+    ahaml.c
+    ahasl.c
+
+----------------------------------------
+17 November 2016. Summary of changes for version 20161117:
+
+
+1) ACPICA kernel-resident subsystem:
+
+Table Manager: Fixed a regression introduced in 20160729, "FADT support 
+cleanup". This was an attempt to remove all references in the source to 
+the FADT version 2, which never was a legal version number. It was 
+skipped because it was an early version of 64-bit support that was 
+eventually abandoned for the current 64-bit support.
+
+Interpreter: Fixed a problem where runtime implicit conversion was 
+incorrectly disabled for the ASL operators below. This brings the 
+behavior into compliance with the ACPI specification:
+    FromBCD
+    ToBCD
+    ToDecimalString
+    ToHexString
+    ToInteger
+    ToBuffer
+
+Table Manager: Added a new public interface, AcpiPutTable, used to 
+release and free an ACPI table returned by AcpiGetTable and related 
+interfaces. Lv Zheng.
+
+Example Code and Data Size: These are the sizes for the OS-independent 
+acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 
+debug version of the code includes the debug output trace mechanism and 
+has a much larger code and data size.
+
+  Current Release:
+    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
+    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
+  Previous Release:
+    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
+    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
+
+
+2) iASL Compiler/Disassembler and Tools:
+
+Disassembler: Fixed a regression for disassembly of Resource Template. 
+Detection of templates in the AML stream missed some types of templates.
+
+iASL: Fixed a problem where an Access Size error was returned for the PCC 
+address space when the AccessSize of the GAS register is greater than a 
+DWORD. Hoan Tran.
+
+iASL: Implemented several grammar changes for the operators below. These 
+changes are slated for the next version of the ACPI specification:
+    RefOf        - Disallow method invocation as an operand
+    CondRefOf    - Disallow method invocation as an operand
+    DerefOf      - Disallow operands that use the result from operators 
+that
+                   do not return a reference (Changed TermArg to 
+SuperName).
+
+iASL: Control method invocations are now allowed for Target operands, as 
+per the ACPI specification. Removed error for using a control method 
+invocation as a Target operand.
+
+Disassembler: Improved detection of Resource Templates, Unicode, and 
+Strings within Buffer objects. These subtypes do not contain a specific 
+opcode to indicate the originating ASL code, and they must be detected by 
+other means within the disassembler. 
+
+iASL: Implemented an optimization improvement for 32-bit ACPI tables 
+(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode 
+only after 64-bit to 32-bit truncation. A truncation warning message is 
+still emitted, however.
+
+AcpiXtract: Implemented handling for both types of line terminators (LF 
+or CR/LF) so that it can accept AcpiDump output files from any system. 
+Peter Wu.
+
+AcpiBin: Added two new options for comparing AML files:
+    -a: compare and display ALL mismatches
+    -o: start compare at this offset into the second file
+
+----------------------------------------
 30 September 2016. Summary of changes for version 20160930:
 
 
diff -r 93bc758fadab -r 14d6b4fd9cfd sys/external/bsd/acpica/dist/common/acfileio.c
--- a/sys/external/bsd/acpica/dist/common/acfileio.c    Wed Jan 25 12:42:05 2017 +0000
+++ b/sys/external/bsd/acpica/dist/common/acfileio.c    Wed Jan 25 13:03:49 2017 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2016, Intel Corp.
+ * Copyright (C) 2000 - 2017, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -112,7 +112,7 @@
     if (FileSize == ACPI_UINT32_MAX)
     {
         Status = AE_ERROR;
-        goto ErrorExit;
+        goto Exit;
     }
 
     fprintf (stderr,
@@ -124,7 +124,7 @@
     if (FileSize < sizeof (ACPI_TABLE_HEADER))
     {
         Status = AE_BAD_HEADER;
-        goto ErrorExit;
+        goto Exit;
     }
 
     /* Check for an non-binary file */
@@ -134,7 +134,8 @@
         fprintf (stderr,
             "    %s: File does not appear to contain a valid AML table\n",
             Filename);
-        return (AE_TYPE);
+        Status = AE_TYPE;
+        goto Exit;
     }
 
     /* Read all tables within the file */
@@ -153,23 +154,31 @@
         }
         else if (Status == AE_TYPE)
         {
-            return (AE_OK);
+            Status = AE_OK;
+            goto Exit;
         }
         else if (ACPI_FAILURE (Status))
         {
-            goto ErrorExit;
+            goto Exit;
         }
 
         /* Print table header for iASL/disassembler only */
 
 #ifdef ACPI_ASL_COMPILER
 
-            AcpiTbPrintTableHeader (0, Table);
+        AcpiTbPrintTableHeader (0, Table);
 #endif
 
         /* Allocate and link a table descriptor */
 
         TableDesc = AcpiOsAllocate (sizeof (ACPI_NEW_TABLE_DESC));
+        if (!TableDesc)
+        {
+            AcpiOsFree (Table);
+            Status = AE_NO_MEMORY;
+            goto Exit;
+        }
+
         TableDesc->Table = Table;
         TableDesc->Next = NULL;
 
@@ -204,7 +213,7 @@
         *ReturnListHead = ListHead;
     }
 
-ErrorExit:
+Exit:
     fclose(File);
     return (Status);
 }
@@ -262,7 +271,6 @@
         return (Status);
     }
 
-




Home | Main Index | Thread Index | Old Index