summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-01-21 20:56:18 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-01-21 20:56:18 +0000
commitf154176708d42f8a4778e3cf4b55e45b4a2be545 (patch)
tree4b6b1812ecf638d285ab3b645feee1416d0f343b
parentdeca274c44eb2d731761ba35813f64bdbdc734df (diff)
downloadsrc-test-f154176708d42f8a4778e3cf4b55e45b4a2be545.tar.gz
src-test-f154176708d42f8a4778e3cf4b55e45b4a2be545.zip
Import ACPICA 20100121.vendor/acpica/20100121
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=202766 svn path=/vendor-sys/acpica/20100121/; revision=202768; tag=vendor/acpica/20100121
-rw-r--r--changes.txt62
-rw-r--r--common/adfile.c2
-rw-r--r--common/adisasm.c2
-rw-r--r--common/adwalk.c2
-rw-r--r--common/dmextern.c2
-rw-r--r--common/dmrestag.c2
-rw-r--r--common/dmtable.c2
-rw-r--r--common/dmtbdump.c2
-rw-r--r--common/dmtbinfo.c2
-rw-r--r--common/getopt.c2
-rw-r--r--compiler/aslanalyze.c10
-rw-r--r--compiler/aslcodegen.c2
-rw-r--r--compiler/aslcompile.c2
-rw-r--r--compiler/aslcompiler.h6
-rw-r--r--compiler/aslcompiler.l2
-rw-r--r--compiler/aslcompiler.y4
-rw-r--r--compiler/asldefine.h4
-rw-r--r--compiler/aslerror.c16
-rw-r--r--compiler/aslfiles.c2
-rw-r--r--compiler/aslfold.c2
-rw-r--r--compiler/aslglobal.h10
-rw-r--r--compiler/asllength.c2
-rw-r--r--compiler/asllisting.c2
-rw-r--r--compiler/aslload.c14
-rw-r--r--compiler/asllookup.c2
-rw-r--r--compiler/aslmain.c5
-rw-r--r--compiler/aslmap.c2
-rw-r--r--compiler/aslopcodes.c10
-rw-r--r--compiler/asloperands.c6
-rw-r--r--compiler/aslopt.c2
-rw-r--r--compiler/aslresource.c4
-rw-r--r--compiler/aslrestype1.c2
-rw-r--r--compiler/aslrestype2.c2
-rw-r--r--compiler/aslstartup.c2
-rw-r--r--compiler/aslstubs.c2
-rw-r--r--compiler/asltransform.c20
-rw-r--r--compiler/asltree.c4
-rw-r--r--compiler/asltypes.h9
-rw-r--r--compiler/aslutils.c28
-rw-r--r--debugger/dbcmds.c2
-rw-r--r--debugger/dbdisply.c2
-rw-r--r--debugger/dbexec.c6
-rw-r--r--debugger/dbfileio.c7
-rw-r--r--debugger/dbhistry.c2
-rw-r--r--debugger/dbinput.c2
-rw-r--r--debugger/dbstats.c2
-rw-r--r--debugger/dbutils.c2
-rw-r--r--debugger/dbxface.c2
-rw-r--r--disassembler/dmbuffer.c2
-rw-r--r--disassembler/dmnames.c2
-rw-r--r--disassembler/dmobject.c2
-rw-r--r--disassembler/dmopcode.c6
-rw-r--r--disassembler/dmresrc.c2
-rw-r--r--disassembler/dmresrcl.c2
-rw-r--r--disassembler/dmresrcs.c2
-rw-r--r--disassembler/dmutils.c2
-rw-r--r--disassembler/dmwalk.c2
-rw-r--r--dispatcher/dsfield.c12
-rw-r--r--dispatcher/dsinit.c2
-rw-r--r--dispatcher/dsmethod.c2
-rw-r--r--dispatcher/dsmthdat.c2
-rw-r--r--dispatcher/dsobject.c4
-rw-r--r--dispatcher/dsopcode.c2
-rw-r--r--dispatcher/dsutils.c2
-rw-r--r--dispatcher/dswexec.c2
-rw-r--r--dispatcher/dswload.c2
-rw-r--r--dispatcher/dswscope.c2
-rw-r--r--dispatcher/dswstate.c2
-rw-r--r--events/evevent.c2
-rw-r--r--events/evgpe.c2
-rw-r--r--events/evgpeblk.c2
-rw-r--r--events/evmisc.c2
-rw-r--r--events/evregion.c6
-rw-r--r--events/evrgnini.c4
-rw-r--r--events/evsci.c2
-rw-r--r--events/evxface.c2
-rw-r--r--events/evxfevnt.c2
-rw-r--r--events/evxfregn.c2
-rw-r--r--executer/exconfig.c16
-rw-r--r--executer/exconvrt.c14
-rw-r--r--executer/excreate.c2
-rw-r--r--executer/exdump.c2
-rw-r--r--executer/exfield.c8
-rw-r--r--executer/exfldio.c50
-rw-r--r--executer/exmisc.c16
-rw-r--r--executer/exmutex.c2
-rw-r--r--executer/exnames.c2
-rw-r--r--executer/exoparg1.c16
-rw-r--r--executer/exoparg2.c6
-rw-r--r--executer/exoparg3.c4
-rw-r--r--executer/exoparg6.c10
-rw-r--r--executer/exprep.c2
-rw-r--r--executer/exregion.c30
-rw-r--r--executer/exresnte.c2
-rw-r--r--executer/exresolv.c2
-rw-r--r--executer/exresop.c2
-rw-r--r--executer/exstore.c2
-rw-r--r--executer/exstoren.c2
-rw-r--r--executer/exstorob.c2
-rw-r--r--executer/exsystem.c4
-rw-r--r--executer/exutils.c24
-rw-r--r--hardware/hwacpi.c2
-rw-r--r--hardware/hwgpe.c9
-rw-r--r--hardware/hwregs.c2
-rw-r--r--hardware/hwsleep.c2
-rw-r--r--hardware/hwtimer.c4
-rw-r--r--hardware/hwvalid.c2
-rw-r--r--hardware/hwxface.c2
-rw-r--r--include/acapps.h8
-rw-r--r--include/accommon.h2
-rw-r--r--include/acconfig.h2
-rw-r--r--include/acdebug.h2
-rw-r--r--include/acdisasm.h2
-rw-r--r--include/acdispat.h2
-rw-r--r--include/acevents.h4
-rw-r--r--include/acexcep.h2
-rw-r--r--include/acglobal.h2
-rw-r--r--include/achware.h2
-rw-r--r--include/acinterp.h44
-rw-r--r--include/aclocal.h6
-rw-r--r--include/acmacros.h14
-rw-r--r--include/acnames.h2
-rw-r--r--include/acnamesp.h20
-rw-r--r--include/acobject.h4
-rw-r--r--include/acopcode.h2
-rw-r--r--include/acoutput.h2
-rw-r--r--include/acparser.h2
-rw-r--r--include/acpi.h2
-rw-r--r--include/acpiosxf.h6
-rw-r--r--include/acpixf.h4
-rw-r--r--include/acpredef.h2
-rw-r--r--include/acresrc.h2
-rw-r--r--include/acrestyp.h4
-rw-r--r--include/acstruct.h2
-rw-r--r--include/actables.h2
-rw-r--r--include/actbl.h2
-rw-r--r--include/actbl1.h2
-rw-r--r--include/actbl2.h2
-rw-r--r--include/actypes.h36
-rw-r--r--include/acutils.h22
-rw-r--r--include/amlcode.h2
-rw-r--r--include/amlresrc.h2
-rw-r--r--include/platform/accygwin.h5
-rw-r--r--include/platform/acefi.h2
-rw-r--r--include/platform/acenv.h10
-rw-r--r--include/platform/acfreebsd.h2
-rw-r--r--include/platform/acgcc.h2
-rw-r--r--include/platform/acintel.h2
-rw-r--r--include/platform/aclinux.h2
-rw-r--r--include/platform/acmsvc.h2
-rw-r--r--include/platform/acnetbsd.h2
-rw-r--r--include/platform/acos2.h2
-rw-r--r--include/platform/acwin.h2
-rw-r--r--include/platform/acwin64.h2
-rw-r--r--namespace/nsaccess.c2
-rw-r--r--namespace/nsalloc.c2
-rw-r--r--namespace/nsdump.c2
-rw-r--r--namespace/nsdumpdv.c2
-rw-r--r--namespace/nseval.c2
-rw-r--r--namespace/nsinit.c2
-rw-r--r--namespace/nsload.c2
-rw-r--r--namespace/nsnames.c2
-rw-r--r--namespace/nsobject.c2
-rw-r--r--namespace/nsparse.c2
-rw-r--r--namespace/nspredef.c53
-rw-r--r--namespace/nsrepair.c192
-rw-r--r--namespace/nsrepair2.c118
-rw-r--r--namespace/nssearch.c2
-rw-r--r--namespace/nsutils.c2
-rw-r--r--namespace/nswalk.c2
-rw-r--r--namespace/nsxfeval.c56
-rw-r--r--namespace/nsxfname.c2
-rw-r--r--namespace/nsxfobj.c2
-rw-r--r--os_specific/service_layers/osunixdir.c6
-rw-r--r--os_specific/service_layers/osunixxf.c6
-rw-r--r--os_specific/service_layers/oswindir.c2
-rw-r--r--os_specific/service_layers/oswintbl.c2
-rw-r--r--os_specific/service_layers/oswinxf.c6
-rw-r--r--osunixxf.c6
-rw-r--r--parser/psargs.c4
-rw-r--r--parser/psloop.c2
-rw-r--r--parser/psopcode.c2
-rw-r--r--parser/psparse.c2
-rw-r--r--parser/psscope.c2
-rw-r--r--parser/pstree.c2
-rw-r--r--parser/psutils.c2
-rw-r--r--parser/pswalk.c2
-rw-r--r--parser/psxface.c2
-rw-r--r--resources/rsaddr.c2
-rw-r--r--resources/rscalc.c2
-rw-r--r--resources/rscreate.c4
-rw-r--r--resources/rsdump.c2
-rw-r--r--resources/rsinfo.c2
-rw-r--r--resources/rsio.c2
-rw-r--r--resources/rsirq.c2
-rw-r--r--resources/rslist.c2
-rw-r--r--resources/rsmemory.c2
-rw-r--r--resources/rsmisc.c2
-rw-r--r--resources/rsutils.c2
-rw-r--r--resources/rsxface.c2
-rw-r--r--tables/tbfadt.c2
-rw-r--r--tables/tbfind.c2
-rw-r--r--tables/tbinstal.c2
-rw-r--r--tables/tbutils.c2
-rw-r--r--tables/tbxface.c2
-rw-r--r--tables/tbxfroot.c2
-rw-r--r--tools/acpiexec/aecommon.h4
-rw-r--r--tools/acpiexec/aeexec.c2
-rw-r--r--tools/acpiexec/aehandlers.c10
-rw-r--r--tools/acpiexec/aemain.c12
-rw-r--r--tools/acpiexec/aetables.c2
-rw-r--r--tools/acpiexec/osunixdir.c6
-rw-r--r--tools/acpisrc/acpisrc.h2
-rw-r--r--tools/acpisrc/ascase.c42
-rw-r--r--tools/acpisrc/asconvrt.c8
-rw-r--r--tools/acpisrc/asfile.c2
-rw-r--r--tools/acpisrc/asmain.c6
-rw-r--r--tools/acpisrc/asremove.c2
-rw-r--r--tools/acpisrc/astable.c13
-rw-r--r--tools/acpisrc/asutils.c2
-rw-r--r--tools/acpisrc/osunixdir.c6
-rw-r--r--tools/acpixtract/acpixtract.c6
-rw-r--r--tools/examples/examples.c2
-rw-r--r--utilities/utalloc.c2
-rw-r--r--utilities/utcache.c2
-rw-r--r--utilities/utclib.c2
-rw-r--r--utilities/utcopy.c2
-rw-r--r--utilities/utdebug.c4
-rw-r--r--utilities/utdelete.c2
-rw-r--r--utilities/uteval.c4
-rw-r--r--utilities/utglobal.c4
-rw-r--r--utilities/utids.c2
-rw-r--r--utilities/utinit.c2
-rw-r--r--utilities/utlock.c2
-rw-r--r--utilities/utmath.c30
-rw-r--r--utilities/utmisc.c12
-rw-r--r--utilities/utmutex.c20
-rw-r--r--utilities/utobject.c2
-rw-r--r--utilities/utresrc.c2
-rw-r--r--utilities/utstate.c2
-rw-r--r--utilities/uttrack.c2
-rw-r--r--utilities/utxface.c2
242 files changed, 884 insertions, 739 deletions
diff --git a/changes.txt b/changes.txt
index d8127f24da8b4..60620ce4f76b8 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,7 +1,55 @@
----------------------------------------
-14 December 2009. Summary of changes for version 20091214:
+21 January 2010. Summary of changes for version 20100121:
+
+1) ACPI CA Core Subsystem:
+
+Added the 2010 copyright to all module headers and signons. This affects
+virtually every file in the ACPICA core subsystem, the iASL compiler, the
+tools/utilities, and the test suites.
+
+Implemented a change to the AcpiGetDevices interface to eliminate unnecessary
+invocations of the _STA method. In the case where a specific _HID is
+requested, do not run _STA until a _HID match is found. This eliminates
+potentially dozens of _STA calls during a search for a particular device/HID,
+which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
+
+Implemented an additional repair for predefined method return values. Attempt
+to repair unexpected NULL elements within returned Package objects. Create an
+Integer of value zero, a NULL String, or a zero-length Buffer as appropriate.
+ACPICA BZ 818. Lin Ming, Bob Moore.
+
+Removed the obsolete ACPI_INTEGER data type. This type was introduced as the
+code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with
+64-bit AML integers). It is now obsolete and this change removes it from the
+ACPICA code base, replaced by UINT64. The original typedef has been retained
+for now for compatibility with existing device driver code. ACPICA BZ 824.
+
+Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in
+the parse tree object.
+
+Added additional warning options for the gcc-4 generation. Updated the source
+accordingly. This includes some code restructuring to eliminate unreachable
+code, elimination of some gotos, elimination of unused return values, some
+additional casting, and removal of redundant declarations.
+
+Example Code and Data Size: These are the sizes for the OS-independent
+acpica.lib produced by the Microsoft Visual C++ 6.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.
-This release is available at www.acpica.org/downloads
+ Previous Release:
+ Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total
+ Debug Version: 163.4K Code, 50.8K Data, 214.2K Total
+ Current Release:
+ Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total
+ Debug Version: 163.5K Code, 50.9K Data, 214.4K Total
+
+2) iASL Compiler/Disassembler and Tools:
+
+No functional changes for this release.
+
+----------------------------------------
+14 December 2009. Summary of changes for version 20091214:
1) ACPI CA Core Subsystem:
@@ -68,8 +116,6 @@ depend on a specific initial value for a region or field.
----------------------------------------
12 November 2009. Summary of changes for version 20091112:
-This release is available at www.acpica.org/downloads
-
1) ACPI CA Core Subsystem:
Implemented a post-order callback to AcpiWalkNamespace. The existing
@@ -141,8 +187,6 @@ level set very high.
----------------------------------------
13 October 2009. Summary of changes for version 20091013:
-This release is available at www.acpica.org/downloads
-
1) ACPI CA Core Subsystem:
Fixed a problem where an Operation Region _REG method could be executed more
@@ -1037,9 +1081,6 @@ header.
29 July 2008. Summary of changes for version 20080729:
-This release is available at http://acpica.org/downloads
-Direct git access via http://www.acpica.org/repos/acpica.git
-
1) ACPI CA Core Subsystem:
Fix a possible deadlock in the GPE dispatch. Remove call to
@@ -1129,9 +1170,6 @@ completion message. Previously, no message was displayed in this case.
----------------------------------------
01 July 2008. Summary of changes for version 20080701:
-This release is available at http://acpica.org/downloads
-Direct git access via http://www.acpica.org/repos/acpica.git
-
0) Git source tree / acpica.org
Fixed a problem where a git-clone from http would not transfer the entire
diff --git a/common/adfile.c b/common/adfile.c
index b5a6afcd3fe39..c7f3dfb47602c 100644
--- a/common/adfile.c
+++ b/common/adfile.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/adisasm.c b/common/adisasm.c
index 63c56840b483c..093cfe5536eba 100644
--- a/common/adisasm.c
+++ b/common/adisasm.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/adwalk.c b/common/adwalk.c
index e69eadb2df094..09411faeec0e0 100644
--- a/common/adwalk.c
+++ b/common/adwalk.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/dmextern.c b/common/dmextern.c
index 74dc65a3a528c..29b15d805e941 100644
--- a/common/dmextern.c
+++ b/common/dmextern.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/dmrestag.c b/common/dmrestag.c
index e314b318af873..97f6c476e5756 100644
--- a/common/dmrestag.c
+++ b/common/dmrestag.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/dmtable.c b/common/dmtable.c
index 0c83a4e999318..dd82016fef9e4 100644
--- a/common/dmtable.c
+++ b/common/dmtable.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/dmtbdump.c b/common/dmtbdump.c
index e2dd8090fa169..30d86708ce97b 100644
--- a/common/dmtbdump.c
+++ b/common/dmtbdump.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/dmtbinfo.c b/common/dmtbinfo.c
index 832914905d9fe..805c81f653474 100644
--- a/common/dmtbinfo.c
+++ b/common/dmtbinfo.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/common/getopt.c b/common/getopt.c
index d675583fd9ff5..db1eb167d1f38 100644
--- a/common/getopt.c
+++ b/common/getopt.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslanalyze.c b/compiler/aslanalyze.c
index d44adda8ff006..4cbfcd6e0681a 100644
--- a/compiler/aslanalyze.c
+++ b/compiler/aslanalyze.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -667,8 +667,8 @@ AnCheckForReservedName (
{
/* The next two characters must be hex digits */
- if ((isxdigit (Name[2])) &&
- (isxdigit (Name[3])))
+ if ((isxdigit ((int) Name[2])) &&
+ (isxdigit ((int) Name[3])))
{
return (ACPI_EVENT_RESERVED_NAME);
}
@@ -1236,7 +1236,7 @@ AnMethodAnalysisWalkBegin (
*/
for (i = 0; Next->Asl.Value.String[i]; i++)
{
- if (!isalnum (Next->Asl.Value.String[i]))
+ if (!isalnum ((int) Next->Asl.Value.String[i]))
{
AslError (ASL_ERROR, ASL_MSG_ALPHANUMERIC_STRING,
Next, Next->Asl.Value.String);
@@ -2157,7 +2157,7 @@ AnOtherSemanticAnalysisWalkBegin (
*/
if (((ArgNode->Asl.ParseOpcode == PARSEOP_WORDCONST) ||
(ArgNode->Asl.ParseOpcode == PARSEOP_INTEGER)) &&
- (ArgNode->Asl.Value.Integer >= (ACPI_INTEGER) ACPI_WAIT_FOREVER))
+ (ArgNode->Asl.Value.Integer >= (UINT64) ACPI_WAIT_FOREVER))
{
break;
}
diff --git a/compiler/aslcodegen.c b/compiler/aslcodegen.c
index af3f292e3f23b..dcd6997003abb 100644
--- a/compiler/aslcodegen.c
+++ b/compiler/aslcodegen.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslcompile.c b/compiler/aslcompile.c
index bdff08c8965d1..90e90991b7e93 100644
--- a/compiler/aslcompile.c
+++ b/compiler/aslcompile.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslcompiler.h b/compiler/aslcompiler.h
index 2678c596a25f3..76bf51a8b95de 100644
--- a/compiler/aslcompiler.h
+++ b/compiler/aslcompiler.h
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -511,7 +511,7 @@ TrCreateLeafNode (
ACPI_PARSE_OBJECT *
TrCreateValuedLeafNode (
UINT32 ParseOpcode,
- ACPI_INTEGER Value);
+ UINT64 Value);
ACPI_PARSE_OBJECT *
TrLinkChildren (
@@ -718,7 +718,7 @@ UtCheckIntegerRange (
UINT32 LowValue,
UINT32 HighValue);
-ACPI_INTEGER
+UINT64
UtDoConstant (
char *String);
diff --git a/compiler/aslcompiler.l b/compiler/aslcompiler.l
index d64dbf6a0a966..dd0473c757176 100644
--- a/compiler/aslcompiler.l
+++ b/compiler/aslcompiler.l
@@ -10,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslcompiler.y b/compiler/aslcompiler.y
index 1d89f2c508a68..3c12a3dfc3444 100644
--- a/compiler/aslcompiler.y
+++ b/compiler/aslcompiler.y
@@ -10,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -2388,7 +2388,7 @@ QWordConstExpr
ConstExprTerm
: PARSEOP_ZERO {$$ = TrCreateValuedLeafNode (PARSEOP_ZERO, 0);}
| PARSEOP_ONE {$$ = TrCreateValuedLeafNode (PARSEOP_ONE, 1);}
- | PARSEOP_ONES {$$ = TrCreateValuedLeafNode (PARSEOP_ONES, ACPI_INTEGER_MAX);}
+ | PARSEOP_ONES {$$ = TrCreateValuedLeafNode (PARSEOP_ONES, ACPI_UINT64_MAX);}
;
/* OptionalCount must appear before ByteList or an incorrect reduction will result */
diff --git a/compiler/asldefine.h b/compiler/asldefine.h
index aeb368fa06b88..75345a5d7f4b1 100644
--- a/compiler/asldefine.h
+++ b/compiler/asldefine.h
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -127,7 +127,7 @@
#define IntelAcpiCA "Intel ACPI Component Architecture"
#define CompilerId "ASL Optimizing Compiler"
#define DisassemblerId "AML Disassembler"
-#define CompilerCopyright "Copyright (C) 2000 - 2009 Intel Corporation"
+#define CompilerCopyright "Copyright (c) 2000 - 2010 Intel Corporation"
#define CompilerCompliance "Supports ACPI Specification Revision 4.0"
#define CompilerName "iasl"
#define CompilerCreatorId "INTL"
diff --git a/compiler/aslerror.c b/compiler/aslerror.c
index 5aa9e8c36a26c..f90df3807f724 100644
--- a/compiler/aslerror.c
+++ b/compiler/aslerror.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -169,13 +169,7 @@ AeAddToErrorLog (
ASL_ERROR_MSG *Prev;
- if (!Gbl_ErrorLog)
- {
- Gbl_ErrorLog = Enode;
- return;
- }
-
- /* List is sorted according to line number */
+ /* If Gbl_ErrorLog is null, this is the first error node */
if (!Gbl_ErrorLog)
{
@@ -183,8 +177,10 @@ AeAddToErrorLog (
return;
}
- /* Walk error list until we find a line number greater than ours */
-
+ /*
+ * Walk error list until we find a line number greater than ours.
+ * List is sorted according to line number.
+ */
Prev = NULL;
Next = Gbl_ErrorLog;
diff --git a/compiler/aslfiles.c b/compiler/aslfiles.c
index 3d24ab397088f..ebf59a408e8bc 100644
--- a/compiler/aslfiles.c
+++ b/compiler/aslfiles.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslfold.c b/compiler/aslfold.c
index 4bb305ef1c50c..c0644aa2a99bd 100644
--- a/compiler/aslfold.c
+++ b/compiler/aslfold.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslglobal.h b/compiler/aslglobal.h
index 6aecfb6fb4f5c..69fcf8438a1e8 100644
--- a/compiler/aslglobal.h
+++ b/compiler/aslglobal.h
@@ -10,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -165,7 +165,6 @@ ASL_EXTERN char ASL_INIT_GLOBAL (*Gbl_LineBufPtr, Gbl_Curren
ASL_EXTERN ASL_ERROR_MSG ASL_INIT_GLOBAL (*Gbl_ErrorLog,NULL);
ASL_EXTERN ASL_ERROR_MSG ASL_INIT_GLOBAL (*Gbl_NextError,NULL);
-extern UINT32 Gbl_ExceptionCount[];
/* Option flags */
@@ -278,5 +277,12 @@ ASL_EXTERN char MsgBuffer[ASL_MSG_BUFFER_SIZE];
ASL_EXTERN char StringBuffer[ASL_MSG_BUFFER_SIZE];
ASL_EXTERN char StringBuffer2[ASL_MSG_BUFFER_SIZE];
+
+#ifdef _DECLARE_GLOBALS
+UINT32 Gbl_ExceptionCount[ASL_NUM_REPORT_LEVELS] = {0,0,0,0,0,0};
+#else
+extern UINT32 Gbl_ExceptionCount[ASL_NUM_REPORT_LEVELS];
+#endif
+
#endif /* __ASLGLOBAL_H */
diff --git a/compiler/asllength.c b/compiler/asllength.c
index bd222e68f4b1e..5a9d1ce60380f 100644
--- a/compiler/asllength.c
+++ b/compiler/asllength.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/asllisting.c b/compiler/asllisting.c
index f229d5fb78190..c4253c2e115fc 100644
--- a/compiler/asllisting.c
+++ b/compiler/asllisting.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslload.c b/compiler/aslload.c
index fab67ccca95c9..5e9fa1ba15c5d 100644
--- a/compiler/aslload.c
+++ b/compiler/aslload.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -534,7 +534,7 @@ LdNamespace1Begin (
if (Op->Asl.CompileFlags == NODE_IS_RESOURCE_DESC)
{
Status = LdLoadResourceElements (Op, WalkState);
- goto Exit;
+ return_ACPI_STATUS (Status);
}
ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode);
@@ -578,7 +578,7 @@ LdNamespace1Begin (
AslCoreSubsystemError (Op, Status,
"Failure from namespace lookup", FALSE);
- goto Exit;
+ return_ACPI_STATUS (Status);
}
/* We found a node with this name, now check the type */
@@ -713,15 +713,14 @@ LdNamespace1Begin (
AslError (ASL_ERROR, ASL_MSG_NAME_EXISTS, Op,
Op->Asl.ExternalName);
- Status = AE_OK;
- goto Exit;
+ return_ACPI_STATUS (AE_OK);
}
}
else
{
AslCoreSubsystemError (Op, Status,
"Failure from namespace lookup", FALSE);
- goto Exit;
+ return_ACPI_STATUS (Status);
}
}
@@ -759,8 +758,7 @@ FinishNode:
Node->Value = (UINT32) Op->Asl.Extra;
}
-Exit:
- return (Status);
+ return_ACPI_STATUS (Status);
}
diff --git a/compiler/asllookup.c b/compiler/asllookup.c
index b99d03787798a..2c1253d2d4b63 100644
--- a/compiler/asllookup.c
+++ b/compiler/asllookup.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslmain.c b/compiler/aslmain.c
index aa29ab82f85b6..45d7252c0a2f4 100644
--- a/compiler/aslmain.c
+++ b/compiler/aslmain.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -165,9 +165,6 @@ static int
AslDoResponseFile (
char *Filename);
-extern int AcpiGbl_Opterr;
-extern int AcpiGbl_Optind;
-
#define ASL_TOKEN_SEPARATORS " \t\n"
#define ASL_SUPPORTED_OPTIONS "@:2b:cd^e:fgh^i^I:l^o:p:r:s:t:v:w:x:"
diff --git a/compiler/aslmap.c b/compiler/aslmap.c
index 4c1fdf0c6f2de..6b3019a726804 100644
--- a/compiler/aslmap.c
+++ b/compiler/aslmap.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslopcodes.c b/compiler/aslopcodes.c
index e38626642794e..1c6eef7248047 100644
--- a/compiler/aslopcodes.c
+++ b/compiler/aslopcodes.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -328,7 +328,7 @@ OpcSetOptimalIntegerSize (
}
break;
- case ACPI_INTEGER_MAX:
+ case ACPI_UINT64_MAX:
/* Check for table integer width (32 or 64) */
@@ -568,7 +568,7 @@ OpcDoEisaId (
if (i < 3)
{
- if (!isupper (InString[i]))
+ if (!isupper ((int) InString[i]))
{
Status = AE_BAD_PARAMETER;
}
@@ -576,7 +576,7 @@ OpcDoEisaId (
/* Last 4 characters must be hex digits */
- else if (!isxdigit (InString[i]))
+ else if (!isxdigit ((int) InString[i]))
{
Status = AE_BAD_PARAMETER;
}
@@ -666,7 +666,7 @@ OpcDoUuId (
}
else
{
- if (!isxdigit (InString[i]))
+ if (!isxdigit ((int) InString[i]))
{
Status = AE_BAD_PARAMETER;
}
diff --git a/compiler/asloperands.c b/compiler/asloperands.c
index 8f2388e365bd5..bf6dcf2cba57b 100644
--- a/compiler/asloperands.c
+++ b/compiler/asloperands.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -604,7 +604,7 @@ OpnDoRegion (
}
else
{
- Op->Asl.Value.Integer = ACPI_INTEGER_MAX;
+ Op->Asl.Value.Integer = ACPI_UINT64_MAX;
}
}
@@ -1007,7 +1007,7 @@ OpnDoDefinitionBlock (
for (i = 0; i < 4; i++)
{
- if (!isalnum (Gbl_TableSignature[i]))
+ if (!isalnum ((int) Gbl_TableSignature[i]))
{
AslError (ASL_ERROR, ASL_MSG_TABLE_SIGNATURE, Child,
"Contains non-alphanumeric characters");
diff --git a/compiler/aslopt.c b/compiler/aslopt.c
index 3013f4cbd2408..6f0b756c0f81d 100644
--- a/compiler/aslopt.c
+++ b/compiler/aslopt.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslresource.c b/compiler/aslresource.c
index ceebd9c1e8d3b..421fde3a36718 100644
--- a/compiler/aslresource.c
+++ b/compiler/aslresource.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -184,7 +184,7 @@ RsCreateBitField (
{
Op->Asl.ExternalName = Name;
- Op->Asl.Value.Integer = ((ACPI_INTEGER) ByteOffset * 8) + BitOffset;
+ Op->Asl.Value.Integer = ((UINT64) ByteOffset * 8) + BitOffset;
Op->Asl.CompileFlags |= (NODE_IS_RESOURCE_FIELD | NODE_IS_BIT_OFFSET);
}
diff --git a/compiler/aslrestype1.c b/compiler/aslrestype1.c
index edc84054039ea..1dbff0310fd85 100644
--- a/compiler/aslrestype1.c
+++ b/compiler/aslrestype1.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslrestype2.c b/compiler/aslrestype2.c
index 7074a5576eca4..7ca8eeb70c8ce 100644
--- a/compiler/aslrestype2.c
+++ b/compiler/aslrestype2.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslstartup.c b/compiler/aslstartup.c
index 87e102bd9ee0f..ea61c9e392a4f 100644
--- a/compiler/aslstartup.c
+++ b/compiler/aslstartup.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/aslstubs.c b/compiler/aslstubs.c
index b352a68a9dcd2..66e3c0cce0d88 100644
--- a/compiler/aslstubs.c
+++ b/compiler/aslstubs.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/compiler/asltransform.c b/compiler/asltransform.c
index b6b22c52ec600..5327a907231c0 100644
--- a/compiler/asltransform.c
+++ b/compiler/asltransform.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -554,7 +554,7 @@ TrDoSwitch (
NewOp = NewOp2;
NewOp2 = TrCreateValuedLeafNode (PARSEOP_NAMESTRING,
- (ACPI_INTEGER) ACPI_TO_INTEGER (PredicateValueName));
+ (UINT64) ACPI_TO_INTEGER (PredicateValueName));
NewOp->Asl.Next = NewOp2;
TrAmlInitLineNumbers (NewOp2, Predicate);
@@ -612,7 +612,7 @@ TrDoSwitch (
* CaseOp->Child->Peer is the beginning of the case block
*/
NewOp = TrCreateValuedLeafNode (PARSEOP_NAMESTRING,
- (ACPI_INTEGER) ACPI_TO_INTEGER (PredicateValueName));
+ (UINT64) ACPI_TO_INTEGER (PredicateValueName));
NewOp->Asl.Next = Predicate;
TrAmlInitLineNumbers (NewOp, Predicate);
@@ -761,7 +761,7 @@ TrDoSwitch (
/* Create the NameSeg child for the Name node */
NewOp2 = TrCreateValuedLeafNode (PARSEOP_NAMESEG,
- (ACPI_INTEGER) ACPI_TO_INTEGER (PredicateValueName));
+ (UINT64) ACPI_TO_INTEGER (PredicateValueName));
NewOp2->Asl.CompileFlags |= NODE_IS_NAME_DECLARATION;
NewOp->Asl.Child = NewOp2;
@@ -771,22 +771,22 @@ TrDoSwitch (
{
case ACPI_BTYPE_INTEGER:
NewOp2->Asl.Next = TrCreateValuedLeafNode (PARSEOP_ZERO,
- (ACPI_INTEGER) 0);
+ (UINT64) 0);
break;
case ACPI_BTYPE_STRING:
NewOp2->Asl.Next = TrCreateValuedLeafNode (PARSEOP_STRING_LITERAL,
- (ACPI_INTEGER) ACPI_TO_INTEGER (""));
+ (UINT64) ACPI_TO_INTEGER (""));
break;
case ACPI_BTYPE_BUFFER:
(void) TrLinkPeerNode (NewOp2, TrCreateValuedLeafNode (PARSEOP_BUFFER,
- (ACPI_INTEGER) 0));
+ (UINT64) 0));
Next = NewOp2->Asl.Next;
(void) TrLinkChildren (Next, 1, TrCreateValuedLeafNode (PARSEOP_ZERO,
- (ACPI_INTEGER) 1));
+ (UINT64) 1));
(void) TrLinkPeerNode (Next->Asl.Child,
- TrCreateValuedLeafNode (PARSEOP_DEFAULT_ARG, (ACPI_INTEGER) 0));
+ TrCreateValuedLeafNode (PARSEOP_DEFAULT_ARG, (UINT64) 0));
TrAmlSetSubtreeParent (Next->Asl.Child, Next);
break;
@@ -821,7 +821,7 @@ TrDoSwitch (
Predicate->Asl.Parent = StoreOp;
NewOp = TrCreateValuedLeafNode (PARSEOP_NAMESEG,
- (ACPI_INTEGER) ACPI_TO_INTEGER (PredicateValueName));
+ (UINT64) ACPI_TO_INTEGER (PredicateValueName));
NewOp->Asl.Parent = StoreOp;
Predicate->Asl.Next = NewOp;
diff --git a/compiler/asltree.c b/compiler/asltree.c
index 30f59ee46d85d..1167f51bec714 100644
--- a/compiler/asltree.c
+++ b/compiler/asltree.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -490,7 +490,7 @@ TrCreateLeafNode (
ACPI_PARSE_OBJECT *
TrCreateValuedLeafNode (
UINT32 ParseOpcode,
- ACPI_INTEGER Value)
+ UINT64 Value)
{
ACPI_PARSE_OBJECT *Op;
diff --git a/compiler/asltypes.h b/compiler/asltypes.h
index 0500ba9d3776b..9e1d426d2b757 100644
--- a/compiler/asltypes.h
+++ b/compiler/asltypes.h
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -571,11 +571,6 @@ char *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = {
#define ASL_ERROR_LEVEL_LENGTH 8 /* Length of strings above */
-/* Exception counters */
-
-UINT32 Gbl_ExceptionCount[ASL_NUM_REPORT_LEVELS] = {0,0,0,0,0,0};
-
-#endif
-
+#endif /* ASL_EXCEPTIONS */
#endif /* __ASLTYPES_H */
diff --git a/compiler/aslutils.c b/compiler/aslutils.c
index ecba7c32cf9bc..01db90a3066c2 100644
--- a/compiler/aslutils.c
+++ b/compiler/aslutils.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -142,7 +142,7 @@ static ACPI_STATUS
UtStrtoul64 (
char *String,
UINT32 Base,
- ACPI_INTEGER *RetInteger);
+ UINT64 *RetInteger);
static void
UtPadNameWithUnderscores (
@@ -846,12 +846,12 @@ UtAttachNamepathToOwner (
*
******************************************************************************/
-ACPI_INTEGER
+UINT64
UtDoConstant (
char *String)
{
ACPI_STATUS Status;
- ACPI_INTEGER Converted;
+ UINT64 Converted;
char ErrBuf[64];
@@ -888,11 +888,11 @@ static ACPI_STATUS
UtStrtoul64 (
char *String,
UINT32 Base,
- ACPI_INTEGER *RetInteger)
+ UINT64 *RetInteger)
{
UINT32 Index;
UINT32 Sign;
- ACPI_INTEGER ReturnValue = 0;
+ UINT64 ReturnValue = 0;
ACPI_STATUS Status = AE_OK;
@@ -916,7 +916,7 @@ UtStrtoul64 (
/* Skip over any white space in the buffer: */
- while (isspace (*String) || *String == '\t')
+ while (isspace ((int) *String) || *String == '\t')
{
++String;
}
@@ -948,7 +948,7 @@ UtStrtoul64 (
{
if (*String == '0')
{
- if (tolower (*(++String)) == 'x')
+ if (tolower ((int) *(++String)) == 'x')
{
Base = 16;
++String;
@@ -975,7 +975,7 @@ UtStrtoul64 (
if (Base == 16 &&
*String == '0' &&
- tolower (*(++String)) == 'x')
+ tolower ((int) *(++String)) == 'x')
{
String++;
}
@@ -984,14 +984,14 @@ UtStrtoul64 (
while (*String)
{
- if (isdigit (*String))
+ if (isdigit ((int) *String))
{
Index = ((UINT8) *String) - '0';
}
else
{
- Index = (UINT8) toupper (*String);
- if (isupper ((char) Index))
+ Index = (UINT8) toupper ((int) *String);
+ if (isupper ((int) Index))
{
Index = Index - 'A' + 10;
}
@@ -1008,8 +1008,8 @@ UtStrtoul64 (
/* Check to see if value is out of range: */
- if (ReturnValue > ((ACPI_INTEGER_MAX - (ACPI_INTEGER) Index) /
- (ACPI_INTEGER) Base))
+ if (ReturnValue > ((ACPI_UINT64_MAX - (UINT64) Index) /
+ (UINT64) Base))
{
goto ErrorExit;
}
diff --git a/debugger/dbcmds.c b/debugger/dbcmds.c
index 0a542d952f457..50a8b2e037e3e 100644
--- a/debugger/dbcmds.c
+++ b/debugger/dbcmds.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/debugger/dbdisply.c b/debugger/dbdisply.c
index fbcb8f10d39a2..7c04ffca8bc0d 100644
--- a/debugger/dbdisply.c
+++ b/debugger/dbdisply.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/debugger/dbexec.c b/debugger/dbexec.c
index 7990890fc0562..da21a12589c54 100644
--- a/debugger/dbexec.c
+++ b/debugger/dbexec.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -243,7 +243,7 @@ AcpiDbExecuteMethod (
default:
Params[i].Type = ACPI_TYPE_INTEGER;
- Params[i].Integer.Value = i * (ACPI_INTEGER) 0x1000;
+ Params[i].Integer.Value = i * (UINT64) 0x1000;
break;
}
}
@@ -484,7 +484,7 @@ AcpiDbExecute (
* Allow any handlers in separate threads to complete.
* (Such as Notify handlers invoked from AML executed above).
*/
- AcpiOsSleep ((ACPI_INTEGER) 10);
+ AcpiOsSleep ((UINT64) 10);
#ifdef ACPI_DEBUG_OUTPUT
diff --git a/debugger/dbfileio.c b/debugger/dbfileio.c
index d52a72caa6a5d..c6f2e253accff 100644
--- a/debugger/dbfileio.c
+++ b/debugger/dbfileio.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -150,9 +150,6 @@ AcpiDbCheckTextModeCorruption (
UINT32 TableLength,
UINT32 FileLength);
-static ACPI_STATUS
-AeLocalLoadTable (
- ACPI_TABLE_HEADER *TablePtr);
#endif
/*******************************************************************************
@@ -424,7 +421,7 @@ AcpiDbReadTable (
{
/* Now validate the checksum */
- Status = AcpiTbChecksum ((void *) *Table,
+ Status = AcpiTbVerifyChecksum ((void *) *Table,
ACPI_CAST_PTR (ACPI_TABLE_HEADER, *Table)->Length);
if (Status == AE_BAD_CHECKSUM)
diff --git a/debugger/dbhistry.c b/debugger/dbhistry.c
index e8e8a76bf104e..613711e0fd230 100644
--- a/debugger/dbhistry.c
+++ b/debugger/dbhistry.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/debugger/dbinput.c b/debugger/dbinput.c
index 74b2dca6edd74..29b51b6d75230 100644
--- a/debugger/dbinput.c
+++ b/debugger/dbinput.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/debugger/dbstats.c b/debugger/dbstats.c
index 63a62ecbef8bd..ace8263734ea3 100644
--- a/debugger/dbstats.c
+++ b/debugger/dbstats.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/debugger/dbutils.c b/debugger/dbutils.c
index 15799eb7b4c9f..19ff3f02a2ae6 100644
--- a/debugger/dbutils.c
+++ b/debugger/dbutils.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/debugger/dbxface.c b/debugger/dbxface.c
index f3f7a4474601c..1c0557ac3151f 100644
--- a/debugger/dbxface.c
+++ b/debugger/dbxface.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmbuffer.c b/disassembler/dmbuffer.c
index 5a4d1742f3e4a..b9222f95336f7 100644
--- a/disassembler/dmbuffer.c
+++ b/disassembler/dmbuffer.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmnames.c b/disassembler/dmnames.c
index b09d3d35f503c..bdfa15ac9e225 100644
--- a/disassembler/dmnames.c
+++ b/disassembler/dmnames.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmobject.c b/disassembler/dmobject.c
index 0f569922addb8..6156caed59523 100644
--- a/disassembler/dmobject.c
+++ b/disassembler/dmobject.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmopcode.c b/disassembler/dmopcode.c
index 931ef6c0db89b..bbc3a2d27f8f7 100644
--- a/disassembler/dmopcode.c
+++ b/disassembler/dmopcode.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -473,8 +473,8 @@ AcpiDmDisassembleOneOp (
case AML_QWORD_OP:
- AcpiOsPrintf ("0x%8.8X%8.8X", Op->Common.Value.Integer64.Hi,
- Op->Common.Value.Integer64.Lo);
+ AcpiOsPrintf ("0x%8.8X%8.8X",
+ ACPI_FORMAT_UINT64 (Op->Common.Value.Integer));
break;
diff --git a/disassembler/dmresrc.c b/disassembler/dmresrc.c
index f0fc4b1bd614e..12bde688d4c96 100644
--- a/disassembler/dmresrc.c
+++ b/disassembler/dmresrc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmresrcl.c b/disassembler/dmresrcl.c
index b1b86db2f3212..d8a549b58cfdb 100644
--- a/disassembler/dmresrcl.c
+++ b/disassembler/dmresrcl.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmresrcs.c b/disassembler/dmresrcs.c
index 50898527fbceb..6af288b1e8f86 100644
--- a/disassembler/dmresrcs.c
+++ b/disassembler/dmresrcs.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmutils.c b/disassembler/dmutils.c
index 111c785ceea1d..7eea82ed5f9ea 100644
--- a/disassembler/dmutils.c
+++ b/disassembler/dmutils.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/disassembler/dmwalk.c b/disassembler/dmwalk.c
index 85477fede960a..f460e6ac3f9ee 100644
--- a/disassembler/dmwalk.c
+++ b/disassembler/dmwalk.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dsfield.c b/dispatcher/dsfield.c
index 12d55f40c4326..8453c88087111 100644
--- a/dispatcher/dsfield.c
+++ b/dispatcher/dsfield.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -314,7 +314,7 @@ AcpiDsGetFieldNames (
ACPI_PARSE_OBJECT *Arg)
{
ACPI_STATUS Status;
- ACPI_INTEGER Position;
+ UINT64 Position;
ACPI_FUNCTION_TRACE_PTR (DsGetFieldNames, Info);
@@ -338,8 +338,8 @@ AcpiDsGetFieldNames (
{
case AML_INT_RESERVEDFIELD_OP:
- Position = (ACPI_INTEGER) Info->FieldBitPosition
- + (ACPI_INTEGER) Arg->Common.Value.Size;
+ Position = (UINT64) Info->FieldBitPosition
+ + (UINT64) Arg->Common.Value.Size;
if (Position > ACPI_UINT32_MAX)
{
@@ -406,8 +406,8 @@ AcpiDsGetFieldNames (
/* Keep track of bit position for the next field */
- Position = (ACPI_INTEGER) Info->FieldBitPosition
- + (ACPI_INTEGER) Arg->Common.Value.Size;
+ Position = (UINT64) Info->FieldBitPosition
+ + (UINT64) Arg->Common.Value.Size;
if (Position > ACPI_UINT32_MAX)
{
diff --git a/dispatcher/dsinit.c b/dispatcher/dsinit.c
index efea20e83d355..4525a0bc4fe4f 100644
--- a/dispatcher/dsinit.c
+++ b/dispatcher/dsinit.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dsmethod.c b/dispatcher/dsmethod.c
index 48172e962e291..29153b0754a0f 100644
--- a/dispatcher/dsmethod.c
+++ b/dispatcher/dsmethod.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dsmthdat.c b/dispatcher/dsmthdat.c
index 551e8480a9844..128308286ca1b 100644
--- a/dispatcher/dsmthdat.c
+++ b/dispatcher/dsmthdat.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dsobject.c b/dispatcher/dsobject.c
index cf444a1df2bcd..2796f66c70f4c 100644
--- a/dispatcher/dsobject.c
+++ b/dispatcher/dsobject.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -787,7 +787,7 @@ AcpiDsInitObjectFromOp (
case AML_ONES_OP:
- ObjDesc->Integer.Value = ACPI_INTEGER_MAX;
+ ObjDesc->Integer.Value = ACPI_UINT64_MAX;
/* Truncate value if we are executing from a 32-bit ACPI table */
diff --git a/dispatcher/dsopcode.c b/dispatcher/dsopcode.c
index 3edbacc1d956f..328a350092a57 100644
--- a/dispatcher/dsopcode.c
+++ b/dispatcher/dsopcode.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dsutils.c b/dispatcher/dsutils.c
index 6c211ace8c603..8eb8b3dbbd6ff 100644
--- a/dispatcher/dsutils.c
+++ b/dispatcher/dsutils.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dswexec.c b/dispatcher/dswexec.c
index 9485c62bb1c05..d4b3f0c9280cc 100644
--- a/dispatcher/dswexec.c
+++ b/dispatcher/dswexec.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dswload.c b/dispatcher/dswload.c
index 48c4ae6f163a7..1a02f9f1c8686 100644
--- a/dispatcher/dswload.c
+++ b/dispatcher/dswload.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dswscope.c b/dispatcher/dswscope.c
index 023f9ef6662e0..5ab611ec67ef2 100644
--- a/dispatcher/dswscope.c
+++ b/dispatcher/dswscope.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/dispatcher/dswstate.c b/dispatcher/dswstate.c
index f0962bf53f1f4..ffe2895fa8e79 100644
--- a/dispatcher/dswstate.c
+++ b/dispatcher/dswstate.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evevent.c b/events/evevent.c
index 16f40271fcf14..05cc4cd8b7394 100644
--- a/events/evevent.c
+++ b/events/evevent.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evgpe.c b/events/evgpe.c
index 17738b384040a..de1f861d5d924 100644
--- a/events/evgpe.c
+++ b/events/evgpe.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evgpeblk.c b/events/evgpeblk.c
index c86f80aa7f546..10f48a5d91393 100644
--- a/events/evgpeblk.c
+++ b/events/evgpeblk.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evmisc.c b/events/evmisc.c
index 1e7f9e1cb56d1..62f549d1cadff 100644
--- a/events/evmisc.c
+++ b/events/evmisc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evregion.c b/events/evregion.c
index 2bdfb872fe0b7..f3e10bec8b449 100644
--- a/events/evregion.c
+++ b/events/evregion.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -442,7 +442,7 @@ Cleanup1:
* RegionOffset - Where in the region to read or write
* BitWidth - Field width in bits (8, 16, 32, or 64)
* Value - Pointer to in or out value, must be
- * full 64-bit ACPI_INTEGER
+ * a full 64-bit integer
*
* RETURN: Status
*
@@ -457,7 +457,7 @@ AcpiEvAddressSpaceDispatch (
UINT32 Function,
UINT32 RegionOffset,
UINT32 BitWidth,
- ACPI_INTEGER *Value)
+ UINT64 *Value)
{
ACPI_STATUS Status;
ACPI_ADR_SPACE_HANDLER Handler;
diff --git a/events/evrgnini.c b/events/evrgnini.c
index 67f6cddf66d87..8a6cbfd941559 100644
--- a/events/evrgnini.c
+++ b/events/evrgnini.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -260,7 +260,7 @@ AcpiEvPciConfigRegionSetup (
void **RegionContext)
{
ACPI_STATUS Status = AE_OK;
- ACPI_INTEGER PciValue;
+ UINT64 PciValue;
ACPI_PCI_ID *PciId = *RegionContext;
ACPI_OPERAND_OBJECT *HandlerObj;
ACPI_NAMESPACE_NODE *ParentNode;
diff --git a/events/evsci.c b/events/evsci.c
index cde433ce3ee58..ec622d4f825bd 100644
--- a/events/evsci.c
+++ b/events/evsci.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evxface.c b/events/evxface.c
index 6eb5a14af0689..3ca00215e84e7 100644
--- a/events/evxface.c
+++ b/events/evxface.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evxfevnt.c b/events/evxfevnt.c
index 27066a399468a..886096153c724 100644
--- a/events/evxfevnt.c
+++ b/events/evxfevnt.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/events/evxfregn.c b/events/evxfregn.c
index 3b60589b71a42..365174fb68bce 100644
--- a/events/evxfregn.c
+++ b/events/evxfregn.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exconfig.c b/executer/exconfig.c
index d0acdd5f80304..034afb65c34d0 100644
--- a/executer/exconfig.c
+++ b/executer/exconfig.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -387,7 +387,7 @@ AcpiExRegionRead (
UINT8 *Buffer)
{
ACPI_STATUS Status;
- ACPI_INTEGER Value;
+ UINT64 Value;
UINT32 RegionOffset = 0;
UINT32 i;
@@ -610,7 +610,10 @@ AcpiExLoadOp (
Status = AcpiTbAddTable (&TableDesc, &TableIndex);
if (ACPI_FAILURE (Status))
{
- goto Cleanup;
+ /* Delete allocated table buffer */
+
+ AcpiTbDeleteTable (&TableDesc);
+ return_ACPI_STATUS (Status);
}
/*
@@ -653,13 +656,6 @@ AcpiExLoadOp (
AcpiGbl_TableHandlerContext);
}
-Cleanup:
- if (ACPI_FAILURE (Status))
- {
- /* Delete allocated table buffer */
-
- AcpiTbDeleteTable (&TableDesc);
- }
return_ACPI_STATUS (Status);
}
diff --git a/executer/exconvrt.c b/executer/exconvrt.c
index fd8fec1c711eb..2e154d1202ae3 100644
--- a/executer/exconvrt.c
+++ b/executer/exconvrt.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -129,7 +129,7 @@
static UINT32
AcpiExConvertToAscii (
- ACPI_INTEGER Integer,
+ UINT64 Integer,
UINT16 Base,
UINT8 *String,
UINT8 MaxLength);
@@ -158,7 +158,7 @@ AcpiExConvertToInteger (
{
ACPI_OPERAND_OBJECT *ReturnDesc;
UINT8 *Pointer;
- ACPI_INTEGER Result;
+ UINT64 Result;
UINT32 i;
UINT32 Count;
ACPI_STATUS Status;
@@ -247,7 +247,7 @@ AcpiExConvertToInteger (
* Little endian is used, meaning that the first byte of the buffer
* is the LSB of the integer
*/
- Result |= (((ACPI_INTEGER) Pointer[i]) << (i * 8));
+ Result |= (((UINT64) Pointer[i]) << (i * 8));
}
break;
@@ -389,12 +389,12 @@ AcpiExConvertToBuffer (
static UINT32
AcpiExConvertToAscii (
- ACPI_INTEGER Integer,
+ UINT64 Integer,
UINT16 Base,
UINT8 *String,
UINT8 DataWidth)
{
- ACPI_INTEGER Digit;
+ UINT64 Digit;
UINT32 i;
UINT32 j;
UINT32 k = 0;
@@ -659,7 +659,7 @@ AcpiExConvertToString (
for (i = 0; i < ObjDesc->Buffer.Length; i++)
{
NewBuf += AcpiExConvertToAscii (
- (ACPI_INTEGER) ObjDesc->Buffer.Pointer[i], Base,
+ (UINT64) ObjDesc->Buffer.Pointer[i], Base,
NewBuf, 1);
*NewBuf++ = Separator; /* each separated by a comma or space */
}
diff --git a/executer/excreate.c b/executer/excreate.c
index e5463187a8655..728603e49c28e 100644
--- a/executer/excreate.c
+++ b/executer/excreate.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exdump.c b/executer/exdump.c
index 5de5a6f6e4039..5ef9fe83c77a1 100644
--- a/executer/exdump.c
+++ b/executer/exdump.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exfield.c b/executer/exfield.c
index 503e8e6b370b6..5657ea88479ae 100644
--- a/executer/exfield.c
+++ b/executer/exfield.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -217,7 +217,7 @@ AcpiExReadDataFromField (
/* Call the region handler for the read */
Status = AcpiExAccessRegion (ObjDesc, 0,
- ACPI_CAST_PTR (ACPI_INTEGER, BufferDesc->Buffer.Pointer),
+ ACPI_CAST_PTR (UINT64, BufferDesc->Buffer.Pointer),
Function);
AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags);
goto Exit;
@@ -226,7 +226,7 @@ AcpiExReadDataFromField (
/*
* Allocate a buffer for the contents of the field.
*
- * If the field is larger than the size of an ACPI_INTEGER, create
+ * If the field is larger than the current integer width, create
* a BUFFER to hold it. Otherwise, use an INTEGER. This allows
* the use of arithmetic operators on the returned value if the
* field size is equal or smaller than an Integer.
@@ -408,7 +408,7 @@ AcpiExWriteDataToField (
* same buffer)
*/
Status = AcpiExAccessRegion (ObjDesc, 0,
- (ACPI_INTEGER *) Buffer, Function);
+ (UINT64 *) Buffer, Function);
AcpiExReleaseGlobalLock (ObjDesc->CommonField.FieldFlags);
*ResultDesc = BufferDesc;
diff --git a/executer/exfldio.c b/executer/exfldio.c
index 37a6786551725..403cb069446d5 100644
--- a/executer/exfldio.c
+++ b/executer/exfldio.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -133,13 +133,13 @@ static ACPI_STATUS
AcpiExFieldDatumIo (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 FieldDatumByteOffset,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
UINT32 ReadWrite);
static BOOLEAN
AcpiExRegisterOverflow (
ACPI_OPERAND_OBJECT *ObjDesc,
- ACPI_INTEGER Value);
+ UINT64 Value);
static ACPI_STATUS
AcpiExSetupRegion (
@@ -296,7 +296,7 @@ AcpiExSetupRegion (
* FieldDatumByteOffset - Byte offset of this datum within the
* parent field
* Value - Where to store value (must at least
- * the size of ACPI_INTEGER)
+ * 64 bits)
* Function - Read or Write flag plus other region-
* dependent flags
*
@@ -310,7 +310,7 @@ ACPI_STATUS
AcpiExAccessRegion (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 FieldDatumByteOffset,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
UINT32 Function)
{
ACPI_STATUS Status;
@@ -408,7 +408,7 @@ AcpiExAccessRegion (
static BOOLEAN
AcpiExRegisterOverflow (
ACPI_OPERAND_OBJECT *ObjDesc,
- ACPI_INTEGER Value)
+ UINT64 Value)
{
if (ObjDesc->CommonField.BitLength >= ACPI_INTEGER_BIT_SIZE)
@@ -420,7 +420,7 @@ AcpiExRegisterOverflow (
return (FALSE);
}
- if (Value >= ((ACPI_INTEGER) 1 << ObjDesc->CommonField.BitLength))
+ if (Value >= ((UINT64) 1 << ObjDesc->CommonField.BitLength))
{
/*
* The Value is larger than the maximum value that can fit into
@@ -457,11 +457,11 @@ static ACPI_STATUS
AcpiExFieldDatumIo (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 FieldDatumByteOffset,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
UINT32 ReadWrite)
{
ACPI_STATUS Status;
- ACPI_INTEGER LocalValue;
+ UINT64 LocalValue;
ACPI_FUNCTION_TRACE_U32 (ExFieldDatumIo, FieldDatumByteOffset);
@@ -543,7 +543,7 @@ AcpiExFieldDatumIo (
* the register
*/
if (AcpiExRegisterOverflow (ObjDesc->BankField.BankObj,
- (ACPI_INTEGER) ObjDesc->BankField.Value))
+ (UINT64) ObjDesc->BankField.Value))
{
return_ACPI_STATUS (AE_AML_REGISTER_LIMIT);
}
@@ -586,7 +586,7 @@ AcpiExFieldDatumIo (
* the register
*/
if (AcpiExRegisterOverflow (ObjDesc->IndexField.IndexObj,
- (ACPI_INTEGER) ObjDesc->IndexField.Value))
+ (UINT64) ObjDesc->IndexField.Value))
{
return_ACPI_STATUS (AE_AML_REGISTER_LIMIT);
}
@@ -615,7 +615,7 @@ AcpiExFieldDatumIo (
"Read from Data Register\n"));
Status = AcpiExExtractFromField (ObjDesc->IndexField.DataObj,
- Value, sizeof (ACPI_INTEGER));
+ Value, sizeof (UINT64));
}
else
{
@@ -626,7 +626,7 @@ AcpiExFieldDatumIo (
ACPI_FORMAT_UINT64 (*Value)));
Status = AcpiExInsertIntoField (ObjDesc->IndexField.DataObj,
- Value, sizeof (ACPI_INTEGER));
+ Value, sizeof (UINT64));
}
break;
@@ -679,13 +679,13 @@ AcpiExFieldDatumIo (
ACPI_STATUS
AcpiExWriteWithUpdateRule (
ACPI_OPERAND_OBJECT *ObjDesc,
- ACPI_INTEGER Mask,
- ACPI_INTEGER FieldValue,
+ UINT64 Mask,
+ UINT64 FieldValue,
UINT32 FieldDatumByteOffset)
{
ACPI_STATUS Status = AE_OK;
- ACPI_INTEGER MergedValue;
- ACPI_INTEGER CurrentValue;
+ UINT64 MergedValue;
+ UINT64 CurrentValue;
ACPI_FUNCTION_TRACE_U32 (ExWriteWithUpdateRule, Mask);
@@ -697,7 +697,7 @@ AcpiExWriteWithUpdateRule (
/* If the mask is all ones, we don't need to worry about the update rule */
- if (Mask != ACPI_INTEGER_MAX)
+ if (Mask != ACPI_UINT64_MAX)
{
/* Decode the update rule */
@@ -787,8 +787,8 @@ AcpiExExtractFromField (
UINT32 BufferLength)
{
ACPI_STATUS Status;
- ACPI_INTEGER RawDatum;
- ACPI_INTEGER MergedDatum;
+ UINT64 RawDatum;
+ UINT64 MergedDatum;
UINT32 FieldOffset = 0;
UINT32 BufferOffset = 0;
UINT32 BufferTailBits;
@@ -917,10 +917,10 @@ AcpiExInsertIntoField (
UINT32 BufferLength)
{
ACPI_STATUS Status;
- ACPI_INTEGER Mask;
- ACPI_INTEGER WidthMask;
- ACPI_INTEGER MergedDatum;
- ACPI_INTEGER RawDatum = 0;
+ UINT64 Mask;
+ UINT64 WidthMask;
+ UINT64 MergedDatum;
+ UINT64 RawDatum = 0;
UINT32 FieldOffset = 0;
UINT32 BufferOffset = 0;
UINT32 BufferTailBits;
@@ -972,7 +972,7 @@ AcpiExInsertIntoField (
*/
if (ObjDesc->CommonField.AccessBitWidth == ACPI_INTEGER_BIT_SIZE)
{
- WidthMask = ACPI_INTEGER_MAX;
+ WidthMask = ACPI_UINT64_MAX;
}
else
{
diff --git a/executer/exmisc.c b/executer/exmisc.c
index 41e4a9752ecbf..54cb1f0019f2c 100644
--- a/executer/exmisc.c
+++ b/executer/exmisc.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -508,11 +508,11 @@ Cleanup:
*
******************************************************************************/
-ACPI_INTEGER
+UINT64
AcpiExDoMathOp (
UINT16 Opcode,
- ACPI_INTEGER Integer0,
- ACPI_INTEGER Integer1)
+ UINT64 Integer0,
+ UINT64 Integer1)
{
ACPI_FUNCTION_ENTRY ();
@@ -615,8 +615,8 @@ AcpiExDoMathOp (
ACPI_STATUS
AcpiExDoLogicalNumericOp (
UINT16 Opcode,
- ACPI_INTEGER Integer0,
- ACPI_INTEGER Integer1,
+ UINT64 Integer0,
+ UINT64 Integer1,
BOOLEAN *LogicalResult)
{
ACPI_STATUS Status = AE_OK;
@@ -690,8 +690,8 @@ AcpiExDoLogicalOp (
BOOLEAN *LogicalResult)
{
ACPI_OPERAND_OBJECT *LocalOperand1 = Operand1;
- ACPI_INTEGER Integer0;
- ACPI_INTEGER Integer1;
+ UINT64 Integer0;
+ UINT64 Integer1;
UINT32 Length0;
UINT32 Length1;
ACPI_STATUS Status = AE_OK;
diff --git a/executer/exmutex.c b/executer/exmutex.c
index 8b1bebf1e917e..d0aa9deda282a 100644
--- a/executer/exmutex.c
+++ b/executer/exmutex.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exnames.c b/executer/exnames.c
index 89fa2d4874d60..a0ee8a5dbd654 100644
--- a/executer/exnames.c
+++ b/executer/exnames.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exoparg1.c b/executer/exoparg1.c
index 4a90b9c9506da..b7ee459685d99 100644
--- a/executer/exoparg1.c
+++ b/executer/exoparg1.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -368,8 +368,8 @@ AcpiExOpcode_1A_1T_1R (
ACPI_OPERAND_OBJECT *ReturnDesc2 = NULL;
UINT32 Temp32;
UINT32 i;
- ACPI_INTEGER PowerOfTen;
- ACPI_INTEGER Digit;
+ UINT64 PowerOfTen;
+ UINT64 Digit;
ACPI_FUNCTION_TRACE_STR (ExOpcode_1A_1T_1R,
@@ -477,7 +477,7 @@ AcpiExOpcode_1A_1T_1R (
/* Sum the digit into the result with the current power of 10 */
ReturnDesc->Integer.Value +=
- (((ACPI_INTEGER) Temp32) * PowerOfTen);
+ (((UINT64) Temp32) * PowerOfTen);
/* Shift to next BCD digit */
@@ -506,7 +506,7 @@ AcpiExOpcode_1A_1T_1R (
* remainder from above
*/
ReturnDesc->Integer.Value |=
- (((ACPI_INTEGER) Temp32) << ACPI_MUL_4 (i));
+ (((UINT64) Temp32) << ACPI_MUL_4 (i));
}
/* Overflow if there is any data left in Digit */
@@ -553,7 +553,7 @@ AcpiExOpcode_1A_1T_1R (
/* The object exists in the namespace, return TRUE */
- ReturnDesc->Integer.Value = ACPI_INTEGER_MAX;
+ ReturnDesc->Integer.Value = ACPI_UINT64_MAX;
goto Cleanup;
@@ -719,7 +719,7 @@ AcpiExOpcode_1A_0T_1R (
ACPI_OPERAND_OBJECT *ReturnDesc = NULL;
ACPI_STATUS Status = AE_OK;
UINT32 Type;
- ACPI_INTEGER Value;
+ UINT64 Value;
ACPI_FUNCTION_TRACE_STR (ExOpcode_1A_0T_1R,
@@ -745,7 +745,7 @@ AcpiExOpcode_1A_0T_1R (
*/
if (!Operand[0]->Integer.Value)
{
- ReturnDesc->Integer.Value = ACPI_INTEGER_MAX;
+ ReturnDesc->Integer.Value = ACPI_UINT64_MAX;
}
break;
diff --git a/executer/exoparg2.c b/executer/exoparg2.c
index 7c42652cc4cbd..81eda0e191b07 100644
--- a/executer/exoparg2.c
+++ b/executer/exoparg2.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -383,7 +383,7 @@ AcpiExOpcode_2A_1T_1R (
{
ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0];
ACPI_OPERAND_OBJECT *ReturnDesc = NULL;
- ACPI_INTEGER Index;
+ UINT64 Index;
ACPI_STATUS Status = AE_OK;
ACPI_SIZE Length;
@@ -716,7 +716,7 @@ StoreLogicalResult:
*/
if (LogicalResult)
{
- ReturnDesc->Integer.Value = ACPI_INTEGER_MAX;
+ ReturnDesc->Integer.Value = ACPI_UINT64_MAX;
}
Cleanup:
diff --git a/executer/exoparg3.c b/executer/exoparg3.c
index 591d6aceb1219..923337cd27372 100644
--- a/executer/exoparg3.c
+++ b/executer/exoparg3.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -239,7 +239,7 @@ AcpiExOpcode_3A_1T_1R (
ACPI_OPERAND_OBJECT *ReturnDesc = NULL;
char *Buffer = NULL;
ACPI_STATUS Status = AE_OK;
- ACPI_INTEGER Index;
+ UINT64 Index;
ACPI_SIZE Length;
diff --git a/executer/exoparg6.c b/executer/exoparg6.c
index c2609471dd7c3..5b35710c9a1ea 100644
--- a/executer/exoparg6.c
+++ b/executer/exoparg6.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -305,7 +305,7 @@ AcpiExOpcode_6A_0T_1R (
ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0];
ACPI_OPERAND_OBJECT *ReturnDesc = NULL;
ACPI_STATUS Status = AE_OK;
- ACPI_INTEGER Index;
+ UINT64 Index;
ACPI_OPERAND_OBJECT *ThisElement;
@@ -344,9 +344,9 @@ AcpiExOpcode_6A_0T_1R (
}
/* Create an integer for the return value */
- /* Default return value is ACPI_INTEGER_MAX if no match found */
+ /* Default return value is ACPI_UINT64_MAX if no match found */
- ReturnDesc = AcpiUtCreateIntegerObject (ACPI_INTEGER_MAX);
+ ReturnDesc = AcpiUtCreateIntegerObject (ACPI_UINT64_MAX);
if (!ReturnDesc)
{
Status = AE_NO_MEMORY;
@@ -362,7 +362,7 @@ AcpiExOpcode_6A_0T_1R (
*
* Upon finding a match, the loop will terminate via "break" at
* the bottom. If it terminates "normally", MatchValue will be
- * ACPI_INTEGER_MAX (Ones) (its initial value) indicating that no
+ * ACPI_UINT64_MAX (Ones) (its initial value) indicating that no
* match was found.
*/
for ( ; Index < Operand[0]->Package.Count; Index++)
diff --git a/executer/exprep.c b/executer/exprep.c
index c915361e810d7..d6b144bf848fb 100644
--- a/executer/exprep.c
+++ b/executer/exprep.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exregion.c b/executer/exregion.c
index 5a37be25950e8..f551f1768770e 100644
--- a/executer/exregion.c
+++ b/executer/exregion.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -149,7 +149,7 @@ AcpiExSystemMemorySpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext)
{
@@ -198,7 +198,7 @@ AcpiExSystemMemorySpaceHandler (
* Hardware does not support non-aligned data transfers, we must verify
* the request.
*/
- (void) AcpiUtShortDivide ((ACPI_INTEGER) Address, Length, NULL, &Remainder);
+ (void) AcpiUtShortDivide ((UINT64) Address, Length, NULL, &Remainder);
if (Remainder != 0)
{
return_ACPI_STATUS (AE_AML_ALIGNMENT);
@@ -211,8 +211,8 @@ AcpiExSystemMemorySpaceHandler (
* 2) Address beyond the current mapping?
*/
if ((Address < MemInfo->MappedPhysicalAddress) ||
- (((ACPI_INTEGER) Address + Length) >
- ((ACPI_INTEGER)
+ (((UINT64) Address + Length) >
+ ((UINT64)
MemInfo->MappedPhysicalAddress + MemInfo->MappedLength)))
{
/*
@@ -282,7 +282,7 @@ AcpiExSystemMemorySpaceHandler (
* access
*/
LogicalAddrPtr = MemInfo->MappedLogicalAddress +
- ((ACPI_INTEGER) Address - (ACPI_INTEGER) MemInfo->MappedPhysicalAddress);
+ ((UINT64) Address - (UINT64) MemInfo->MappedPhysicalAddress);
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
"System-Memory (width %d) R/W %d Address=%8.8X%8.8X\n",
@@ -304,19 +304,19 @@ AcpiExSystemMemorySpaceHandler (
switch (BitWidth)
{
case 8:
- *Value = (ACPI_INTEGER) ACPI_GET8 (LogicalAddrPtr);
+ *Value = (UINT64) ACPI_GET8 (LogicalAddrPtr);
break;
case 16:
- *Value = (ACPI_INTEGER) ACPI_GET16 (LogicalAddrPtr);
+ *Value = (UINT64) ACPI_GET16 (LogicalAddrPtr);
break;
case 32:
- *Value = (ACPI_INTEGER) ACPI_GET32 (LogicalAddrPtr);
+ *Value = (UINT64) ACPI_GET32 (LogicalAddrPtr);
break;
case 64:
- *Value = (ACPI_INTEGER) ACPI_GET64 (LogicalAddrPtr);
+ *Value = (UINT64) ACPI_GET64 (LogicalAddrPtr);
break;
default:
@@ -383,7 +383,7 @@ AcpiExSystemIoSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext)
{
@@ -447,7 +447,7 @@ AcpiExPciConfigSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext)
{
@@ -527,7 +527,7 @@ AcpiExCmosSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext)
{
@@ -564,7 +564,7 @@ AcpiExPciBarSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext)
{
@@ -601,7 +601,7 @@ AcpiExDataTableSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext)
{
diff --git a/executer/exresnte.c b/executer/exresnte.c
index 5481bc899a856..a4922c0b71728 100644
--- a/executer/exresnte.c
+++ b/executer/exresnte.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exresolv.c b/executer/exresolv.c
index a3c8ab9b5cee5..f78c119aedcb4 100644
--- a/executer/exresolv.c
+++ b/executer/exresolv.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exresop.c b/executer/exresop.c
index ecc63f61357df..ed60d2a42af67 100644
--- a/executer/exresop.c
+++ b/executer/exresop.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exstore.c b/executer/exstore.c
index 8ec8a23cffd7f..5ff1175867997 100644
--- a/executer/exstore.c
+++ b/executer/exstore.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exstoren.c b/executer/exstoren.c
index 0810560d39c0a..22ccbbf6d4c6a 100644
--- a/executer/exstoren.c
+++ b/executer/exstoren.c
@@ -10,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exstorob.c b/executer/exstorob.c
index b2f125d01fba0..0649fdf698783 100644
--- a/executer/exstorob.c
+++ b/executer/exstorob.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/executer/exsystem.c b/executer/exsystem.c
index 19674606a601b..9f4583fc13831 100644
--- a/executer/exsystem.c
+++ b/executer/exsystem.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -293,7 +293,7 @@ AcpiExSystemDoStall (
ACPI_STATUS
AcpiExSystemDoSuspend (
- ACPI_INTEGER HowLong)
+ UINT64 HowLong)
{
ACPI_FUNCTION_ENTRY ();
diff --git a/executer/exutils.c b/executer/exutils.c
index 1f5e861b68cbf..d8815aa517bb1 100644
--- a/executer/exutils.c
+++ b/executer/exutils.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -144,7 +144,7 @@
static UINT32
AcpiExDigitsNeeded (
- ACPI_INTEGER Value,
+ UINT64 Value,
UINT32 Base);
@@ -334,7 +334,7 @@ AcpiExTruncateFor32bitTable (
* We are running a method that exists in a 32-bit ACPI table.
* Truncate the value to 32 bits by zeroing out the upper 32-bit field
*/
- ObjDesc->Integer.Value &= (ACPI_INTEGER) ACPI_UINT32_MAX;
+ ObjDesc->Integer.Value &= (UINT64) ACPI_UINT32_MAX;
}
}
@@ -446,17 +446,17 @@ AcpiExReleaseGlobalLock (
static UINT32
AcpiExDigitsNeeded (
- ACPI_INTEGER Value,
+ UINT64 Value,
UINT32 Base)
{
UINT32 NumDigits;
- ACPI_INTEGER CurrentValue;
+ UINT64 CurrentValue;
ACPI_FUNCTION_TRACE (ExDigitsNeeded);
- /* ACPI_INTEGER is unsigned, so we don't worry about a '-' prefix */
+ /* UINT64 is unsigned, so we don't worry about a '-' prefix */
if (Value == 0)
{
@@ -497,7 +497,7 @@ AcpiExDigitsNeeded (
void
AcpiExEisaIdToString (
char *OutString,
- ACPI_INTEGER CompressedId)
+ UINT64 CompressedId)
{
UINT32 SwappedId;
@@ -523,10 +523,10 @@ AcpiExEisaIdToString (
OutString[0] = (char) (0x40 + (((unsigned long) SwappedId >> 26) & 0x1F));
OutString[1] = (char) (0x40 + ((SwappedId >> 21) & 0x1F));
OutString[2] = (char) (0x40 + ((SwappedId >> 16) & 0x1F));
- OutString[3] = AcpiUtHexToAsciiChar ((ACPI_INTEGER) SwappedId, 12);
- OutString[4] = AcpiUtHexToAsciiChar ((ACPI_INTEGER) SwappedId, 8);
- OutString[5] = AcpiUtHexToAsciiChar ((ACPI_INTEGER) SwappedId, 4);
- OutString[6] = AcpiUtHexToAsciiChar ((ACPI_INTEGER) SwappedId, 0);
+ OutString[3] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 12);
+ OutString[4] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 8);
+ OutString[5] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 4);
+ OutString[6] = AcpiUtHexToAsciiChar ((UINT64) SwappedId, 0);
OutString[7] = 0;
}
@@ -551,7 +551,7 @@ AcpiExEisaIdToString (
void
AcpiExIntegerToString (
char *OutString,
- ACPI_INTEGER Value)
+ UINT64 Value)
{
UINT32 Count;
UINT32 DigitsNeeded;
diff --git a/hardware/hwacpi.c b/hardware/hwacpi.c
index 6b6d90ee02e76..fb88f9663a46c 100644
--- a/hardware/hwacpi.c
+++ b/hardware/hwacpi.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/hardware/hwgpe.c b/hardware/hwgpe.c
index a45603d9d5fb3..24e741e11a1ad 100644
--- a/hardware/hwgpe.c
+++ b/hardware/hwgpe.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -320,7 +320,7 @@ AcpiHwGetGpeStatus (
Status = AcpiHwRead (&InByte, &GpeRegisterInfo->StatusAddress);
if (ACPI_FAILURE (Status))
{
- goto UnlockAndExit;
+ return (Status);
}
if (RegisterBit & InByte)
@@ -331,10 +331,7 @@ AcpiHwGetGpeStatus (
/* Set return value */
(*EventStatus) = LocalEventStatus;
-
-
-UnlockAndExit:
- return (Status);
+ return (AE_OK);
}
diff --git a/hardware/hwregs.c b/hardware/hwregs.c
index 163840d7f4ad6..60ca92cc8143c 100644
--- a/hardware/hwregs.c
+++ b/hardware/hwregs.c
@@ -10,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/hardware/hwsleep.c b/hardware/hwsleep.c
index fed4f1ddbf716..ad6ad1e796f05 100644
--- a/hardware/hwsleep.c
+++ b/hardware/hwsleep.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/hardware/hwtimer.c b/hardware/hwtimer.c
index f86fb7f865e10..2675dadf353e5 100644
--- a/hardware/hwtimer.c
+++ b/hardware/hwtimer.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -232,7 +232,7 @@ AcpiGetTimerDuration (
{
ACPI_STATUS Status;
UINT32 DeltaTicks;
- ACPI_INTEGER Quotient;
+ UINT64 Quotient;
ACPI_FUNCTION_TRACE (AcpiGetTimerDuration);
diff --git a/hardware/hwvalid.c b/hardware/hwvalid.c
index 650b695b2cc58..905dc7950f046 100644
--- a/hardware/hwvalid.c
+++ b/hardware/hwvalid.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/hardware/hwxface.c b/hardware/hwxface.c
index 6c345a593e1c8..9ef6286bdbadc 100644
--- a/hardware/hwxface.c
+++ b/hardware/hwxface.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acapps.h b/include/acapps.h
index c5ebef1d4afd8..418e20fb08408 100644
--- a/include/acapps.h
+++ b/include/acapps.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -135,6 +135,7 @@ AcpiGetopt(
char *opts);
extern int AcpiGbl_Optind;
+extern int AcpiGbl_Opterr;
extern char *AcpiGbl_Optarg;
@@ -232,11 +233,6 @@ FlSplitInputPathname (
char **OutFilename);
char *
-FlGenerateFilename (
- char *InputFilename,
- char *Suffix);
-
-char *
AdGenerateFilename (
char *Prefix,
char *TableId);
diff --git a/include/accommon.h b/include/accommon.h
index 690d3cdba9556..36026d768e604 100644
--- a/include/accommon.h
+++ b/include/accommon.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acconfig.h b/include/acconfig.h
index 8fbe0e371b268..9417b449dc70c 100644
--- a/include/acconfig.h
+++ b/include/acconfig.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acdebug.h b/include/acdebug.h
index 82f2b6d49c158..2be2fd409b92b 100644
--- a/include/acdebug.h
+++ b/include/acdebug.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acdisasm.h b/include/acdisasm.h
index de198ff5742ff..1fe077b059a10 100644
--- a/include/acdisasm.h
+++ b/include/acdisasm.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acdispat.h b/include/acdispat.h
index 2aa86232b2f00..d7af8003df2b6 100644
--- a/include/acdispat.h
+++ b/include/acdispat.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acevents.h b/include/acevents.h
index 0cd5e2e286969..567ac1ec0e131 100644
--- a/include/acevents.h
+++ b/include/acevents.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -265,7 +265,7 @@ AcpiEvAddressSpaceDispatch (
UINT32 Function,
UINT32 RegionOffset,
UINT32 BitWidth,
- ACPI_INTEGER *Value);
+ UINT64 *Value);
ACPI_STATUS
AcpiEvAttachRegion (
diff --git a/include/acexcep.h b/include/acexcep.h
index dfe2e2ee7342b..89fe5c66898fa 100644
--- a/include/acexcep.h
+++ b/include/acexcep.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acglobal.h b/include/acglobal.h
index 82fe445169d4e..4469ee334e3bd 100644
--- a/include/acglobal.h
+++ b/include/acglobal.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/achware.h b/include/achware.h
index c171a5fc1df8d..be0b4df327d8b 100644
--- a/include/achware.h
+++ b/include/achware.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acinterp.h b/include/acinterp.h
index 74c5f0b4ebaeb..de7dbf8030eb9 100644
--- a/include/acinterp.h
+++ b/include/acinterp.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -214,13 +214,13 @@ AcpiExCommonBufferSetup (
ACPI_STATUS
AcpiExWriteWithUpdateRule (
ACPI_OPERAND_OBJECT *ObjDesc,
- ACPI_INTEGER Mask,
- ACPI_INTEGER FieldValue,
+ UINT64 Mask,
+ UINT64 FieldValue,
UINT32 FieldDatumByteOffset);
void
AcpiExGetBufferDatum(
- ACPI_INTEGER *Datum,
+ UINT64 *Datum,
void *Buffer,
UINT32 BufferLength,
UINT32 ByteGranularity,
@@ -228,7 +228,7 @@ AcpiExGetBufferDatum(
void
AcpiExSetBufferDatum (
- ACPI_INTEGER MergedDatum,
+ UINT64 MergedDatum,
void *Buffer,
UINT32 BufferLength,
UINT32 ByteGranularity,
@@ -266,7 +266,7 @@ ACPI_STATUS
AcpiExAccessRegion (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 FieldDatumByteOffset,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
UINT32 ReadWrite);
@@ -296,8 +296,8 @@ AcpiExDoConcatenate (
ACPI_STATUS
AcpiExDoLogicalNumericOp (
UINT16 Opcode,
- ACPI_INTEGER Integer0,
- ACPI_INTEGER Integer1,
+ UINT64 Integer0,
+ UINT64 Integer1,
BOOLEAN *LogicalResult);
ACPI_STATUS
@@ -307,11 +307,11 @@ AcpiExDoLogicalOp (
ACPI_OPERAND_OBJECT *Operand1,
BOOLEAN *LogicalResult);
-ACPI_INTEGER
+UINT64
AcpiExDoMathOp (
UINT16 Opcode,
- ACPI_INTEGER Operand0,
- ACPI_INTEGER Operand1);
+ UINT64 Operand0,
+ UINT64 Operand1);
ACPI_STATUS
AcpiExCreateMutex (
@@ -425,7 +425,7 @@ AcpiExSystemDoNotifyOp (
ACPI_STATUS
AcpiExSystemDoSuspend(
- ACPI_INTEGER Time);
+ UINT64 Time);
ACPI_STATUS
AcpiExSystemDoStall (
@@ -697,12 +697,12 @@ AcpiExReleaseGlobalLock (
void
AcpiExEisaIdToString (
char *Dest,
- ACPI_INTEGER CompressedId);
+ UINT64 CompressedId);
void
AcpiExIntegerToString (
char *Dest,
- ACPI_INTEGER Value);
+ UINT64 Value);
/*
@@ -713,7 +713,7 @@ AcpiExSystemMemorySpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -722,7 +722,7 @@ AcpiExSystemIoSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -731,7 +731,7 @@ AcpiExPciConfigSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -740,7 +740,7 @@ AcpiExCmosSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -749,7 +749,7 @@ AcpiExPciBarSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -758,7 +758,7 @@ AcpiExEmbeddedControllerSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -767,7 +767,7 @@ AcpiExSmBusSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -777,7 +777,7 @@ AcpiExDataTableSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
diff --git a/include/aclocal.h b/include/aclocal.h
index 52dbec3a6dce2..0aeacff6c525e 100644
--- a/include/aclocal.h
+++ b/include/aclocal.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -500,6 +500,7 @@ typedef struct acpi_predefined_data
{
char *Pathname;
const ACPI_PREDEFINED_INFO *Predefined;
+ union acpi_operand_object *ParentPackage;
UINT32 Flags;
UINT8 NodeFlags;
@@ -852,8 +853,7 @@ typedef struct acpi_opcode_info
typedef union acpi_parse_value
{
- ACPI_INTEGER Integer; /* Integer constant (Up to 64 bits) */
- UINT64_STRUCT Integer64; /* Structure overlay for 2 32-bit Dwords */
+ UINT64 Integer; /* Integer constant (Up to 64 bits) */
UINT32 Size; /* bytelist or field size */
char *String; /* NULL terminated string */
UINT8 *Buffer; /* buffer or string */
diff --git a/include/acmacros.h b/include/acmacros.h
index 3d351f9fc85e9..e9a6f42cbf21e 100644
--- a/include/acmacros.h
+++ b/include/acmacros.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -335,8 +335,8 @@
* MASK_BITS_ABOVE creates a mask starting AT the position and above
* MASK_BITS_BELOW creates a mask starting one bit BELOW the position
*/
-#define ACPI_MASK_BITS_ABOVE(position) (~((ACPI_INTEGER_MAX) << ((UINT32) (position))))
-#define ACPI_MASK_BITS_BELOW(position) ((ACPI_INTEGER_MAX) << ((UINT32) (position)))
+#define ACPI_MASK_BITS_ABOVE(position) (~((ACPI_UINT64_MAX) << ((UINT32) (position))))
+#define ACPI_MASK_BITS_BELOW(position) ((ACPI_UINT64_MAX) << ((UINT32) (position)))
/* Bitfields within ACPI registers */
@@ -473,16 +473,16 @@
AcpiUtPtrExit (ACPI_DEBUG_PARAMETERS, (UINT8 *) _s); \
return (_s); })
#define return_VALUE(s) ACPI_DO_WHILE0 ({ \
- register ACPI_INTEGER _s = (s); \
+ register UINT64 _s = (s); \
AcpiUtValueExit (ACPI_DEBUG_PARAMETERS, _s); \
return (_s); })
#define return_UINT8(s) ACPI_DO_WHILE0 ({ \
register UINT8 _s = (UINT8) (s); \
- AcpiUtValueExit (ACPI_DEBUG_PARAMETERS, (ACPI_INTEGER) _s); \
+ AcpiUtValueExit (ACPI_DEBUG_PARAMETERS, (UINT64) _s); \
return (_s); })
#define return_UINT32(s) ACPI_DO_WHILE0 ({ \
register UINT32 _s = (UINT32) (s); \
- AcpiUtValueExit (ACPI_DEBUG_PARAMETERS, (ACPI_INTEGER) _s); \
+ AcpiUtValueExit (ACPI_DEBUG_PARAMETERS, (UINT64) _s); \
return (_s); })
#else /* Use original less-safe macros */
@@ -493,7 +493,7 @@
AcpiUtPtrExit (ACPI_DEBUG_PARAMETERS, (UINT8 *) (s)); \
return((s)); })
#define return_VALUE(s) ACPI_DO_WHILE0 ({ \
- AcpiUtValueExit (ACPI_DEBUG_PARAMETERS, (ACPI_INTEGER) (s)); \
+ AcpiUtValueExit (ACPI_DEBUG_PARAMETERS, (UINT64) (s)); \
return((s)); })
#define return_UINT8(s) return_VALUE(s)
#define return_UINT32(s) return_VALUE(s)
diff --git a/include/acnames.h b/include/acnames.h
index eb9944aa16e5e..12dd89ce14d32 100644
--- a/include/acnames.h
+++ b/include/acnames.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acnamesp.h b/include/acnamesp.h
index 65798662d5965..9ddd12e210bc0 100644
--- a/include/acnamesp.h
+++ b/include/acnamesp.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -444,6 +444,19 @@ AcpiNsRepairPackageList (
ACPI_PREDEFINED_DATA *Data,
ACPI_OPERAND_OBJECT **ObjDescPtr);
+ACPI_STATUS
+AcpiNsRepairNullElement (
+ ACPI_PREDEFINED_DATA *Data,
+ UINT32 ExpectedBtypes,
+ UINT32 PackageIndex,
+ ACPI_OPERAND_OBJECT **ReturnObjectPtr);
+
+void
+AcpiNsRemoveNullElements (
+ ACPI_PREDEFINED_DATA *Data,
+ UINT8 PackageType,
+ ACPI_OPERAND_OBJECT *ObjDesc);
+
/*
* nsrepair2 - Return object repair for specific
@@ -456,11 +469,6 @@ AcpiNsComplexRepairs (
ACPI_STATUS ValidateStatus,
ACPI_OPERAND_OBJECT **ReturnObjectPtr);
-void
-AcpiNsRemoveNullElements (
- ACPI_PREDEFINED_DATA *Data,
- UINT8 PackageType,
- ACPI_OPERAND_OBJECT *ObjDesc);
/*
* nssearch - Namespace searching and entry
diff --git a/include/acobject.h b/include/acobject.h
index 76f623c83db86..f86f8392679ff 100644
--- a/include/acobject.h
+++ b/include/acobject.h
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -190,7 +190,7 @@ typedef struct acpi_object_integer
{
ACPI_OBJECT_COMMON_HEADER
UINT8 Fill[3]; /* Prevent warning on some compilers */
- ACPI_INTEGER Value;
+ UINT64 Value;
} ACPI_OBJECT_INTEGER;
diff --git a/include/acopcode.h b/include/acopcode.h
index bb309c78d3fe5..94d585d2273c9 100644
--- a/include/acopcode.h
+++ b/include/acopcode.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acoutput.h b/include/acoutput.h
index 4f4b1d9c69dd0..8018fed538421 100644
--- a/include/acoutput.h
+++ b/include/acoutput.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acparser.h b/include/acparser.h
index 086688e3224d9..35fe0060f1a24 100644
--- a/include/acparser.h
+++ b/include/acparser.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acpi.h b/include/acpi.h
index ac0af0387bc90..fa7cec4568e64 100644
--- a/include/acpi.h
+++ b/include/acpi.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acpiosxf.h b/include/acpiosxf.h
index 730057d1efac6..0c22b63bb6931 100644
--- a/include/acpiosxf.h
+++ b/include/acpiosxf.h
@@ -12,7 +12,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -346,7 +346,7 @@ AcpiOsWaitEventsComplete (
void
AcpiOsSleep (
- ACPI_INTEGER Milliseconds);
+ UINT64 Milliseconds);
void
AcpiOsStall (
@@ -401,7 +401,7 @@ ACPI_STATUS
AcpiOsWritePciConfiguration (
ACPI_PCI_ID *PciId,
UINT32 Reg,
- ACPI_INTEGER Value,
+ UINT64 Value,
UINT32 Width);
diff --git a/include/acpixf.h b/include/acpixf.h
index a961009465a2c..c67b8b9f4587f 100644
--- a/include/acpixf.h
+++ b/include/acpixf.h
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -120,7 +120,7 @@
/* Current ACPICA subsystem version in YYYYMMDD format */
-#define ACPI_CA_VERSION 0x20091214
+#define ACPI_CA_VERSION 0x20100121
#include "actypes.h"
#include "actbl.h"
diff --git a/include/acpredef.h b/include/acpredef.h
index 2be401520b3d1..9b881fb8007a9 100644
--- a/include/acpredef.h
+++ b/include/acpredef.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acresrc.h b/include/acresrc.h
index c70aa5e23d4dc..323d040bd023d 100644
--- a/include/acresrc.h
+++ b/include/acresrc.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/acrestyp.h b/include/acrestyp.h
index 7eb7600d9822d..0a85d29f5a489 100644
--- a/include/acrestyp.h
+++ b/include/acrestyp.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -534,7 +534,7 @@ typedef struct acpi_pci_routing_table
{
UINT32 Length;
UINT32 Pin;
- ACPI_INTEGER Address; /* here for 64-bit alignment */
+ UINT64 Address; /* here for 64-bit alignment */
UINT32 SourceIndex;
char Source[4]; /* pad to 64 bits so sizeof() works in all cases */
diff --git a/include/acstruct.h b/include/acstruct.h
index 45c85fe0b2f11..d4696b83005d3 100644
--- a/include/acstruct.h
+++ b/include/acstruct.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/actables.h b/include/actables.h
index e4428e6415508..54fdaae9b1a77 100644
--- a/include/actables.h
+++ b/include/actables.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/actbl.h b/include/actbl.h
index caa3bdbe3b5c6..c25ad50a575aa 100644
--- a/include/actbl.h
+++ b/include/actbl.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/actbl1.h b/include/actbl1.h
index 8af7a18380862..ac11a3fe6b3ef 100644
--- a/include/actbl1.h
+++ b/include/actbl1.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/actbl2.h b/include/actbl2.h
index e57c02356cc9d..c96715d3c05e5 100644
--- a/include/actbl2.h
+++ b/include/actbl2.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/actypes.h b/include/actypes.h
index 0e01b97bbe066..8d0d06ad62ce2 100644
--- a/include/actypes.h
+++ b/include/actypes.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -470,22 +470,7 @@ typedef union uint64_overlay
} UINT64_OVERLAY;
-typedef struct uint32_struct
-{
- UINT32 Lo;
- UINT32 Hi;
-
-} UINT32_STRUCT;
-
-/*
- * Acpi integer width. In ACPI version 1, integers are 32 bits. In ACPI
- * version 2, integers are 64 bits. Note that this pertains to the ACPI integer
- * type only, not other integers used in the implementation of the ACPI CA
- * subsystem.
- */
-typedef UINT64 ACPI_INTEGER;
-#define ACPI_INTEGER_MAX ACPI_UINT64_MAX
#define ACPI_INTEGER_BIT_SIZE 64
#define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */
#define ACPI_MAX64_DECIMAL_DIGITS 20
@@ -500,6 +485,19 @@ typedef UINT64 ACPI_INTEGER;
#define ACPI_WAIT_FOREVER 0xFFFF /* UINT16, as per ACPI spec */
#define ACPI_DO_NOT_WAIT 0
+/*
+ * Obsolete: Acpi integer width. In ACPI version 1 (1996), integers are 32 bits.
+ * In ACPI version 2 (2000) and later, integers are 64 bits. Note that this
+ * pertains to the ACPI integer type only, not to other integers used in the
+ * implementation of the ACPICA subsystem.
+ *
+ * 01/2010: This type is obsolete and has been removed from the entire ACPICA
+ * code base. It remains here for compatibility with device drivers that use
+ * the type. However, it will be removed in the future.
+ */
+typedef UINT64 ACPI_INTEGER;
+#define ACPI_INTEGER_MAX ACPI_UINT64_MAX
+
/*******************************************************************************
*
@@ -890,7 +888,7 @@ typedef union acpi_object
struct
{
ACPI_OBJECT_TYPE Type; /* ACPI_TYPE_INTEGER */
- ACPI_INTEGER Value; /* The actual number */
+ UINT64 Value; /* The actual number */
} Integer;
struct
@@ -1094,7 +1092,7 @@ ACPI_STATUS (*ACPI_ADR_SPACE_HANDLER) (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
@@ -1164,7 +1162,7 @@ typedef struct acpi_device_info
UINT8 HighestDstates[4]; /* _SxD values: 0xFF indicates not valid */
UINT8 LowestDstates[5]; /* _SxW values: 0xFF indicates not valid */
UINT32 CurrentStatus; /* _STA value */
- ACPI_INTEGER Address; /* _ADR value */
+ UINT64 Address; /* _ADR value */
ACPI_DEVICE_ID HardwareId; /* _HID value */
ACPI_DEVICE_ID UniqueId; /* _UID value */
ACPI_DEVICE_ID_LIST CompatibleIdList; /* _CID list <must be last> */
diff --git a/include/acutils.h b/include/acutils.h
index 3e12b7ca36177..ae406c3882a0e 100644
--- a/include/acutils.h
+++ b/include/acutils.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -235,7 +235,7 @@ AcpiUtGetEventName (
char
AcpiUtHexToAsciiChar (
- ACPI_INTEGER Integer,
+ UINT64 Integer,
UINT32 Position);
BOOLEAN
@@ -470,7 +470,7 @@ AcpiUtValueExit (
const char *FunctionName,
const char *ModuleName,
UINT32 ComponentId,
- ACPI_INTEGER Value);
+ UINT64 Value);
void
AcpiUtPtrExit (
@@ -550,7 +550,7 @@ ACPI_STATUS
AcpiUtEvaluateNumericObject (
char *ObjectName,
ACPI_NAMESPACE_NODE *DeviceNode,
- ACPI_INTEGER *Value);
+ UINT64 *Value);
ACPI_STATUS
AcpiUtExecute_STA (
@@ -720,16 +720,16 @@ AcpiUtDeleteGenericState (
*/
ACPI_STATUS
AcpiUtDivide (
- ACPI_INTEGER InDividend,
- ACPI_INTEGER InDivisor,
- ACPI_INTEGER *OutQuotient,
- ACPI_INTEGER *OutRemainder);
+ UINT64 InDividend,
+ UINT64 InDivisor,
+ UINT64 *OutQuotient,
+ UINT64 *OutRemainder);
ACPI_STATUS
AcpiUtShortDivide (
- ACPI_INTEGER InDividend,
+ UINT64 InDividend,
UINT32 Divisor,
- ACPI_INTEGER *OutQuotient,
+ UINT64 *OutQuotient,
UINT32 *OutRemainder);
/*
@@ -788,7 +788,7 @@ ACPI_STATUS
AcpiUtStrtoul64 (
char *String,
UINT32 Base,
- ACPI_INTEGER *RetInteger);
+ UINT64 *RetInteger);
void ACPI_INTERNAL_VAR_XFACE
AcpiUtPredefinedWarning (
diff --git a/include/amlcode.h b/include/amlcode.h
index 19740d9083c27..d6fc7d00ce3b4 100644
--- a/include/amlcode.h
+++ b/include/amlcode.h
@@ -10,7 +10,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/amlresrc.h b/include/amlresrc.h
index 689564c6289ee..9084e44540aa2 100644
--- a/include/amlresrc.h
+++ b/include/amlresrc.h
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/accygwin.h b/include/platform/accygwin.h
index e9585b44b1096..6936024839ef6 100644
--- a/include/platform/accygwin.h
+++ b/include/platform/accygwin.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -155,6 +155,9 @@
#define inline
#endif
+#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (GLptr) Acq=1; else Acq=0;
+#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending) Pending = 1
+
/* Cygwin uses GCC */
diff --git a/include/platform/acefi.h b/include/platform/acefi.h
index 40afaa401cfab..5c900ef9cfc71 100644
--- a/include/platform/acefi.h
+++ b/include/platform/acefi.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acenv.h b/include/platform/acenv.h
index 58cb03bfc1a5d..0567a003c6d1e 100644
--- a/include/platform/acenv.h
+++ b/include/platform/acenv.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -262,11 +262,11 @@
/* Global Lock acquire/release */
#ifndef ACPI_ACQUIRE_GLOBAL_LOCK
-#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) Acq = 1
+#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acquired) Acquired = 1
#endif
#ifndef ACPI_RELEASE_GLOBAL_LOCK
-#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Acq) Acq = 0
+#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending) Pending = 0
#endif
/* Flush CPU cache - used when going to sleep. Wbinvd or similar. */
@@ -424,8 +424,8 @@ typedef char *va_list;
#define ACPI_MEMCMP(s1,s2,n) AcpiUtMemcmp((const char *)(s1), (const char *)(s2), (ACPI_SIZE)(n))
#define ACPI_MEMCPY(d,s,n) (void) AcpiUtMemcpy ((d), (s), (ACPI_SIZE)(n))
#define ACPI_MEMSET(d,v,n) (void) AcpiUtMemset ((d), (v), (ACPI_SIZE)(n))
-#define ACPI_TOUPPER AcpiUtToUpper
-#define ACPI_TOLOWER AcpiUtToLower
+#define ACPI_TOUPPER(c) AcpiUtToUpper ((int) (c))
+#define ACPI_TOLOWER(c) AcpiUtToLower ((int) (c))
#endif /* ACPI_USE_SYSTEM_CLIBRARY */
diff --git a/include/platform/acfreebsd.h b/include/platform/acfreebsd.h
index 20c5687c20b9f..09ad54ae1b255 100644
--- a/include/platform/acfreebsd.h
+++ b/include/platform/acfreebsd.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acgcc.h b/include/platform/acgcc.h
index 449942278c999..d0098b1800ab8 100644
--- a/include/platform/acgcc.h
+++ b/include/platform/acgcc.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acintel.h b/include/platform/acintel.h
index 44197a09946ee..a7e75ec603138 100644
--- a/include/platform/acintel.h
+++ b/include/platform/acintel.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/aclinux.h b/include/platform/aclinux.h
index c6f868cdbf954..9009689c938d3 100644
--- a/include/platform/aclinux.h
+++ b/include/platform/aclinux.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acmsvc.h b/include/platform/acmsvc.h
index 0320e74d1e186..62e69d16dc1de 100644
--- a/include/platform/acmsvc.h
+++ b/include/platform/acmsvc.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acnetbsd.h b/include/platform/acnetbsd.h
index c04851b926a20..302d719f2a730 100644
--- a/include/platform/acnetbsd.h
+++ b/include/platform/acnetbsd.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acos2.h b/include/platform/acos2.h
index 21e3373c24de7..90e6b2e4914c6 100644
--- a/include/platform/acos2.h
+++ b/include/platform/acos2.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acwin.h b/include/platform/acwin.h
index d1fa2ee22b943..583f677b47519 100644
--- a/include/platform/acwin.h
+++ b/include/platform/acwin.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/include/platform/acwin64.h b/include/platform/acwin64.h
index faec855e22d89..64c1f99702a6c 100644
--- a/include/platform/acwin64.h
+++ b/include/platform/acwin64.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsaccess.c b/namespace/nsaccess.c
index 2bc7d8d71182f..86f412a9c8971 100644
--- a/namespace/nsaccess.c
+++ b/namespace/nsaccess.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsalloc.c b/namespace/nsalloc.c
index 9693cb7835a17..aadafbf7818be 100644
--- a/namespace/nsalloc.c
+++ b/namespace/nsalloc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsdump.c b/namespace/nsdump.c
index d799f7c64ce9f..a0dd59e3d203f 100644
--- a/namespace/nsdump.c
+++ b/namespace/nsdump.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsdumpdv.c b/namespace/nsdumpdv.c
index fbb66a6167594..deabaaee03e0d 100644
--- a/namespace/nsdumpdv.c
+++ b/namespace/nsdumpdv.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nseval.c b/namespace/nseval.c
index 07af96ed93dcd..200a957089010 100644
--- a/namespace/nseval.c
+++ b/namespace/nseval.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsinit.c b/namespace/nsinit.c
index b36fa6c7ea965..770235e8e33d0 100644
--- a/namespace/nsinit.c
+++ b/namespace/nsinit.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsload.c b/namespace/nsload.c
index a9f3824718bc8..bf20ac5f06718 100644
--- a/namespace/nsload.c
+++ b/namespace/nsload.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsnames.c b/namespace/nsnames.c
index c00a4457b2a8d..9423d561b71ac 100644
--- a/namespace/nsnames.c
+++ b/namespace/nsnames.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsobject.c b/namespace/nsobject.c
index c0163f4ea2444..af5df1983eb7b 100644
--- a/namespace/nsobject.c
+++ b/namespace/nsobject.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsparse.c b/namespace/nsparse.c
index 58301560ae064..52cbc975992f4 100644
--- a/namespace/nsparse.c
+++ b/namespace/nsparse.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nspredef.c b/namespace/nspredef.c
index d979c43e93f91..ef76930b51f31 100644
--- a/namespace/nspredef.c
+++ b/namespace/nspredef.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -329,6 +329,7 @@ AcpiNsCheckPredefinedNames (
*/
if ((*ReturnObjectPtr)->Common.Type == ACPI_TYPE_PACKAGE)
{
+ Data->ParentPackage = *ReturnObjectPtr;
Status = AcpiNsCheckPackage (Data, ReturnObjectPtr);
if (ACPI_FAILURE (Status))
{
@@ -831,6 +832,7 @@ AcpiNsCheckPackageList (
{
SubPackage = *Elements;
SubElements = SubPackage->Package.Elements;
+ Data->ParentPackage = SubPackage;
/* Each sub-object must be of type Package */
@@ -843,6 +845,7 @@ AcpiNsCheckPackageList (
/* Examine the different types of expected sub-packages */
+ Data->ParentPackage = SubPackage;
switch (Package->RetInfo.Type)
{
case ACPI_PTYPE2:
@@ -919,7 +922,7 @@ AcpiNsCheckPackageList (
/*
* First element is the (Integer) count of elements, including
- * the count field.
+ * the count field (the ACPI name is NumElements)
*/
Status = AcpiNsCheckObjectType (Data, SubElements,
ACPI_RTYPE_INTEGER, 0);
@@ -942,6 +945,17 @@ AcpiNsCheckPackageList (
ExpectedCount = Package->RetInfo.Count1;
goto PackageTooSmall;
}
+ if (ExpectedCount == 0)
+ {
+ /*
+ * Either the NumEntries element was originally zero or it was
+ * a NULL element and repaired to an Integer of value zero.
+ * In either case, repair it by setting NumEntries to be the
+ * actual size of the subpackage.
+ */
+ ExpectedCount = SubPackage->Package.Count;
+ (*SubElements)->Integer.Value = ExpectedCount;
+ }
/* Check the type of each sub-package element */
@@ -1076,11 +1090,19 @@ AcpiNsCheckObjectType (
/*
- * If we get a NULL ReturnObject here, it is a NULL package element,
- * and this is always an error.
+ * If we get a NULL ReturnObject here, it is a NULL package element.
+ * Since all extraneous NULL package elements were removed earlier by a
+ * call to AcpiNsRemoveNullElements, this is an unexpected NULL element.
+ * We will attempt to repair it.
*/
if (!ReturnObject)
{
+ Status = AcpiNsRepairNullElement (Data, ExpectedBtypes,
+ PackageIndex, ReturnObjectPtr);
+ if (ACPI_SUCCESS (Status))
+ {
+ return (AE_OK); /* Repair was successful */
+ }
goto TypeErrorExit;
}
@@ -1133,28 +1155,27 @@ AcpiNsCheckObjectType (
/* Is the object one of the expected types? */
- if (!(ReturnBtype & ExpectedBtypes))
+ if (ReturnBtype & ExpectedBtypes)
{
- /* Type mismatch -- attempt repair of the returned object */
+ /* For reference objects, check that the reference type is correct */
- Status = AcpiNsRepairObject (Data, ExpectedBtypes,
- PackageIndex, ReturnObjectPtr);
- if (ACPI_SUCCESS (Status))
+ if (ReturnObject->Common.Type == ACPI_TYPE_LOCAL_REFERENCE)
{
- return (AE_OK); /* Repair was successful */
+ Status = AcpiNsCheckReference (Data, ReturnObject);
}
- goto TypeErrorExit;
+
+ return (Status);
}
- /* For reference objects, check that the reference type is correct */
+ /* Type mismatch -- attempt repair of the returned object */
- if (ReturnObject->Common.Type == ACPI_TYPE_LOCAL_REFERENCE)
+ Status = AcpiNsRepairObject (Data, ExpectedBtypes,
+ PackageIndex, ReturnObjectPtr);
+ if (ACPI_SUCCESS (Status))
{
- Status = AcpiNsCheckReference (Data, ReturnObject);
+ return (AE_OK); /* Repair was successful */
}
- return (Status);
-
TypeErrorExit:
diff --git a/namespace/nsrepair.c b/namespace/nsrepair.c
index 5c402df36b569..76d62bf7a0a54 100644
--- a/namespace/nsrepair.c
+++ b/namespace/nsrepair.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -119,6 +119,7 @@
#include "accommon.h"
#include "acnamesp.h"
#include "acinterp.h"
+#include "acpredef.h"
#define _COMPONENT ACPI_NAMESPACE
ACPI_MODULE_NAME ("nsrepair")
@@ -146,6 +147,12 @@
* Buffer -> Package of Integers
* Package -> Package of one Package
*
+ * Additional possible repairs:
+ *
+ * Optional/unnecessary NULL package elements removed
+ * Required package elements that are NULL replaced by Integer/String/Buffer
+ * Incorrect standalone package wrapped with required outer package
+ *
******************************************************************************/
@@ -629,6 +636,189 @@ AcpiNsConvertToPackage (
/*******************************************************************************
*
+ * FUNCTION: AcpiNsRepairNullElement
+ *
+ * PARAMETERS: Data - Pointer to validation data structure
+ * ExpectedBtypes - Object types expected
+ * PackageIndex - Index of object within parent package (if
+ * applicable - ACPI_NOT_PACKAGE_ELEMENT
+ * otherwise)
+ * ReturnObjectPtr - Pointer to the object returned from the
+ * evaluation of a method or object
+ *
+ * RETURN: Status. AE_OK if repair was successful.
+ *
+ * DESCRIPTION: Attempt to repair a NULL element of a returned Package object.
+ *
+ ******************************************************************************/
+
+ACPI_STATUS
+AcpiNsRepairNullElement (
+ ACPI_PREDEFINED_DATA *Data,
+ UINT32 ExpectedBtypes,
+ UINT32 PackageIndex,
+ ACPI_OPERAND_OBJECT **ReturnObjectPtr)
+{
+ ACPI_OPERAND_OBJECT *ReturnObject = *ReturnObjectPtr;
+ ACPI_OPERAND_OBJECT *NewObject;
+
+
+ ACPI_FUNCTION_NAME (NsRepairNullElement);
+
+
+ /* No repair needed if return object is non-NULL */
+
+ if (ReturnObject)
+ {
+ return (AE_OK);
+ }
+
+ /*
+ * Attempt to repair a NULL element of a Package object. This applies to
+ * predefined names that return a fixed-length package and each element
+ * is required. It does not apply to variable-length packages where NULL
+ * elements are allowed, especially at the end of the package.
+ */
+ if (ExpectedBtypes & ACPI_RTYPE_INTEGER)
+ {
+ /* Need an Integer - create a zero-value integer */
+
+ NewObject = AcpiUtCreateIntegerObject (0);
+ }
+ else if (ExpectedBtypes & ACPI_RTYPE_STRING)
+ {
+ /* Need a String - create a NULL string */
+
+ NewObject = AcpiUtCreateStringObject (0);
+ }
+ else if (ExpectedBtypes & ACPI_RTYPE_BUFFER)
+ {
+ /* Need a Buffer - create a zero-length buffer */
+
+ NewObject = AcpiUtCreateBufferObject (0);
+ }
+ else
+ {
+ /* Error for all other expected types */
+
+ return (AE_AML_OPERAND_TYPE);
+ }
+
+ if (!NewObject)
+ {
+ return (AE_NO_MEMORY);
+ }
+
+ /* Set the reference count according to the parent Package object */
+
+ NewObject->Common.ReferenceCount = Data->ParentPackage->Common.ReferenceCount;
+
+ ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR,
+ "%s: Converted NULL package element to expected %s at index %u\n",
+ Data->Pathname, AcpiUtGetObjectTypeName (NewObject), PackageIndex));
+
+ *ReturnObjectPtr = NewObject;
+ Data->Flags |= ACPI_OBJECT_REPAIRED;
+ return (AE_OK);
+}
+
+
+/******************************************************************************
+ *
+ * FUNCTION: AcpiNsRemoveNullElements
+ *
+ * PARAMETERS: Data - Pointer to validation data structure
+ * PackageType - An AcpiReturnPackageTypes value
+ * ObjDesc - A Package object
+ *
+ * RETURN: None.
+ *
+ * DESCRIPTION: Remove all NULL package elements from packages that contain
+ * a variable number of sub-packages. For these types of
+ * packages, NULL elements can be safely removed.
+ *
+ *****************************************************************************/
+
+void
+AcpiNsRemoveNullElements (
+ ACPI_PREDEFINED_DATA *Data,
+ UINT8 PackageType,
+ ACPI_OPERAND_OBJECT *ObjDesc)
+{
+ ACPI_OPERAND_OBJECT **Source;
+ ACPI_OPERAND_OBJECT **Dest;
+ UINT32 Count;
+ UINT32 NewCount;
+ UINT32 i;
+
+
+ ACPI_FUNCTION_NAME (NsRemoveNullElements);
+
+
+ /*
+ * PTYPE1 packages contain no subpackages.
+ * PTYPE2 packages contain a variable number of sub-packages. We can
+ * safely remove all NULL elements from the PTYPE2 packages.
+ */
+ switch (PackageType)
+ {
+ case ACPI_PTYPE1_FIXED:
+ case ACPI_PTYPE1_VAR:
+ case ACPI_PTYPE1_OPTION:
+ return;
+
+ case ACPI_PTYPE2:
+ case ACPI_PTYPE2_COUNT:
+ case ACPI_PTYPE2_PKG_COUNT:
+ case ACPI_PTYPE2_FIXED:
+ case ACPI_PTYPE2_MIN:
+ case ACPI_PTYPE2_REV_FIXED:
+ break;
+
+ default:
+ return;
+ }
+
+ Count = ObjDesc->Package.Count;
+ NewCount = Count;
+
+ Source = ObjDesc->Package.Elements;
+ Dest = Source;
+
+ /* Examine all elements of the package object, remove nulls */
+
+ for (i = 0; i < Count; i++)
+ {
+ if (!*Source)
+ {
+ NewCount--;
+ }
+ else
+ {
+ *Dest = *Source;
+ Dest++;
+ }
+ Source++;
+ }
+
+ /* Update parent package if any null elements were removed */
+
+ if (NewCount < Count)
+ {
+ ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR,
+ "%s: Found and removed %u NULL elements\n",
+ Data->Pathname, (Count - NewCount)));
+
+ /* NULL terminate list and update the package count */
+
+ *Dest = NULL;
+ ObjDesc->Package.Count = NewCount;
+ }
+}
+
+
+/*******************************************************************************
+ *
* FUNCTION: AcpiNsRepairPackageList
*
* PARAMETERS: Data - Pointer to validation data structure
diff --git a/namespace/nsrepair2.c b/namespace/nsrepair2.c
index c08028452b4ce..220608e2db613 100644
--- a/namespace/nsrepair2.c
+++ b/namespace/nsrepair2.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -119,7 +119,6 @@
#include "acpi.h"
#include "accommon.h"
#include "acnamesp.h"
-#include "acpredef.h"
#define _COMPONENT ACPI_NAMESPACE
ACPI_MODULE_NAME ("nsrepair2")
@@ -177,7 +176,7 @@ AcpiNsCheckSortedList (
UINT8 SortDirection,
char *SortKeyName);
-static ACPI_STATUS
+static void
AcpiNsSortList (
ACPI_OPERAND_OBJECT **Elements,
UINT32 Count,
@@ -557,7 +556,6 @@ AcpiNsCheckSortedList (
ACPI_OPERAND_OBJECT *ObjDesc;
UINT32 i;
UINT32 PreviousValue;
- ACPI_STATUS Status;
ACPI_FUNCTION_NAME (NsCheckSortedList);
@@ -616,19 +614,15 @@ AcpiNsCheckSortedList (
/*
* The list must be sorted in the specified order. If we detect a
- * discrepancy, issue a warning and sort the entire list
+ * discrepancy, sort the entire list.
*/
if (((SortDirection == ACPI_SORT_ASCENDING) &&
(ObjDesc->Integer.Value < PreviousValue)) ||
((SortDirection == ACPI_SORT_DESCENDING) &&
(ObjDesc->Integer.Value > PreviousValue)))
{
- Status = AcpiNsSortList (ReturnObject->Package.Elements,
- OuterElementCount, SortIndex, SortDirection);
- if (ACPI_FAILURE (Status))
- {
- return (Status);
- }
+ AcpiNsSortList (ReturnObject->Package.Elements,
+ OuterElementCount, SortIndex, SortDirection);
Data->Flags |= ACPI_OBJECT_REPAIRED;
@@ -648,99 +642,6 @@ AcpiNsCheckSortedList (
/******************************************************************************
*
- * FUNCTION: AcpiNsRemoveNullElements
- *
- * PARAMETERS: Data - Pointer to validation data structure
- * PackageType - An AcpiReturnPackageTypes value
- * ObjDesc - A Package object
- *
- * RETURN: None.
- *
- * DESCRIPTION: Remove all NULL package elements from packages that contain
- * a variable number of sub-packages.
- *
- *****************************************************************************/
-
-void
-AcpiNsRemoveNullElements (
- ACPI_PREDEFINED_DATA *Data,
- UINT8 PackageType,
- ACPI_OPERAND_OBJECT *ObjDesc)
-{
- ACPI_OPERAND_OBJECT **Source;
- ACPI_OPERAND_OBJECT **Dest;
- UINT32 Count;
- UINT32 NewCount;
- UINT32 i;
-
-
- ACPI_FUNCTION_NAME (NsRemoveNullElements);
-
-
- /*
- * PTYPE1 packages contain no subpackages.
- * PTYPE2 packages contain a variable number of sub-packages. We can
- * safely remove all NULL elements from the PTYPE2 packages.
- */
- switch (PackageType)
- {
- case ACPI_PTYPE1_FIXED:
- case ACPI_PTYPE1_VAR:
- case ACPI_PTYPE1_OPTION:
- return;
-
- case ACPI_PTYPE2:
- case ACPI_PTYPE2_COUNT:
- case ACPI_PTYPE2_PKG_COUNT:
- case ACPI_PTYPE2_FIXED:
- case ACPI_PTYPE2_MIN:
- case ACPI_PTYPE2_REV_FIXED:
- break;
-
- default:
- return;
- }
-
- Count = ObjDesc->Package.Count;
- NewCount = Count;
-
- Source = ObjDesc->Package.Elements;
- Dest = Source;
-
- /* Examine all elements of the package object, remove nulls */
-
- for (i = 0; i < Count; i++)
- {
- if (!*Source)
- {
- NewCount--;
- }
- else
- {
- *Dest = *Source;
- Dest++;
- }
- Source++;
- }
-
- /* Update parent package if any null elements were removed */
-
- if (NewCount < Count)
- {
- ACPI_DEBUG_PRINT ((ACPI_DB_REPAIR,
- "%s: Found and removed %u NULL elements\n",
- Data->Pathname, (Count - NewCount)));
-
- /* NULL terminate list and update the package count */
-
- *Dest = NULL;
- ObjDesc->Package.Count = NewCount;
- }
-}
-
-
-/******************************************************************************
- *
* FUNCTION: AcpiNsSortList
*
* PARAMETERS: Elements - Package object element list
@@ -748,15 +649,16 @@ AcpiNsRemoveNullElements (
* Index - Sort by which package element
* SortDirection - Ascending or Descending sort
*
- * RETURN: Status
+ * RETURN: None
*
* DESCRIPTION: Sort the objects that are in a package element list.
*
- * NOTE: Assumes that all NULL elements have been removed from the package.
+ * NOTE: Assumes that all NULL elements have been removed from the package,
+ * and that all elements have been verified to be of type Integer.
*
*****************************************************************************/
-static ACPI_STATUS
+static void
AcpiNsSortList (
ACPI_OPERAND_OBJECT **Elements,
UINT32 Count,
@@ -791,6 +693,4 @@ AcpiNsSortList (
}
}
}
-
- return (AE_OK);
}
diff --git a/namespace/nssearch.c b/namespace/nssearch.c
index fce7c5ad4de95..b17f60f7bd903 100644
--- a/namespace/nssearch.c
+++ b/namespace/nssearch.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsutils.c b/namespace/nsutils.c
index ed0c3f7ec8106..ee40473aaf3e7 100644
--- a/namespace/nsutils.c
+++ b/namespace/nsutils.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nswalk.c b/namespace/nswalk.c
index 7711e9a37684c..b6c573bda7d50 100644
--- a/namespace/nswalk.c
+++ b/namespace/nswalk.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsxfeval.c b/namespace/nsxfeval.c
index a0f96a04ee091..945690a7c164f 100644
--- a/namespace/nsxfeval.c
+++ b/namespace/nsxfeval.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -688,27 +688,20 @@ AcpiNsGetDeviceCallback (
return (AE_BAD_PARAMETER);
}
- /* Run _STA to determine if device is present */
-
- Status = AcpiUtExecute_STA (Node, &Flags);
- if (ACPI_FAILURE (Status))
- {
- return (AE_CTRL_DEPTH);
- }
-
- if (!(Flags & ACPI_STA_DEVICE_PRESENT) &&
- !(Flags & ACPI_STA_DEVICE_FUNCTIONING))
- {
- /*
- * Don't examine the children of the device only when the
- * device is neither present nor functional. See ACPI spec,
- * description of _STA for more information.
- */
- return (AE_CTRL_DEPTH);
- }
-
- /* Filter based on device HID & CID */
-
+ /*
+ * First, filter based on the device HID and CID.
+ *
+ * 01/2010: For this case where a specific HID is requested, we don't
+ * want to run _STA until we have an actual HID match. Thus, we will
+ * not unnecessarily execute _STA on devices for which the caller
+ * doesn't care about. Previously, _STA was executed unconditionally
+ * on all devices found here.
+ *
+ * A side-effect of this change is that now we will continue to search
+ * for a matching HID even under device trees where the parent device
+ * would have returned a _STA that indicates it is not present or
+ * not functioning (thus aborting the search on that branch).
+ */
if (Info->Hid != NULL)
{
Status = AcpiUtExecute_HID (Node, &Hid);
@@ -762,6 +755,25 @@ AcpiNsGetDeviceCallback (
}
}
+ /* Run _STA to determine if device is present */
+
+ Status = AcpiUtExecute_STA (Node, &Flags);
+ if (ACPI_FAILURE (Status))
+ {
+ return (AE_CTRL_DEPTH);
+ }
+
+ if (!(Flags & ACPI_STA_DEVICE_PRESENT) &&
+ !(Flags & ACPI_STA_DEVICE_FUNCTIONING))
+ {
+ /*
+ * Don't examine the children of the device only when the
+ * device is neither present nor functional. See ACPI spec,
+ * description of _STA for more information.
+ */
+ return (AE_CTRL_DEPTH);
+ }
+
/* We have a valid device, invoke the user function */
Status = Info->UserFunction (ObjHandle, NestingLevel, Info->Context,
diff --git a/namespace/nsxfname.c b/namespace/nsxfname.c
index cb7aaa6f941fc..8fd3d4c7eac18 100644
--- a/namespace/nsxfname.c
+++ b/namespace/nsxfname.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/namespace/nsxfobj.c b/namespace/nsxfobj.c
index 9c42a33f8b21a..aef106e80b93c 100644
--- a/namespace/nsxfobj.c
+++ b/namespace/nsxfobj.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/os_specific/service_layers/osunixdir.c b/os_specific/service_layers/osunixdir.c
index d9c55a1ef84a5..897d17340b9f3 100644
--- a/os_specific/service_layers/osunixdir.c
+++ b/os_specific/service_layers/osunixdir.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -295,11 +295,11 @@ strlwr (
int i;
- length = strlen(str);
+ length = strlen (str);
for (i = 0; i < length; i++)
{
- str[i] = tolower(str[i]);
+ str[i] = tolower ((int) str[i]);
}
return (str);
diff --git a/os_specific/service_layers/osunixxf.c b/os_specific/service_layers/osunixxf.c
index b430e83f1600b..e62ed738be1a7 100644
--- a/os_specific/service_layers/osunixxf.c
+++ b/os_specific/service_layers/osunixxf.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -871,7 +871,7 @@ AcpiOsStall (
void
AcpiOsSleep (
- ACPI_INTEGER milliseconds)
+ UINT64 milliseconds)
{
sleep (milliseconds / 1000); /* Sleep for whole seconds */
@@ -976,7 +976,7 @@ ACPI_STATUS
AcpiOsWritePciConfiguration (
ACPI_PCI_ID *PciId,
UINT32 Register,
- ACPI_INTEGER Value,
+ UINT64 Value,
UINT32 Width)
{
diff --git a/os_specific/service_layers/oswindir.c b/os_specific/service_layers/oswindir.c
index 445813d7b79cb..1c7df069ffa6f 100644
--- a/os_specific/service_layers/oswindir.c
+++ b/os_specific/service_layers/oswindir.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/os_specific/service_layers/oswintbl.c b/os_specific/service_layers/oswintbl.c
index 889582ff75412..30d7ba66b9c7d 100644
--- a/os_specific/service_layers/oswintbl.c
+++ b/os_specific/service_layers/oswintbl.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/os_specific/service_layers/oswinxf.c b/os_specific/service_layers/oswinxf.c
index 166e5e250adcc..c932c2ca6c962 100644
--- a/os_specific/service_layers/oswinxf.c
+++ b/os_specific/service_layers/oswinxf.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -1146,7 +1146,7 @@ AcpiOsStall (
void
AcpiOsSleep (
- ACPI_INTEGER milliseconds)
+ UINT64 milliseconds)
{
/* Add 10ms to account for clock tick granularity */
@@ -1224,7 +1224,7 @@ ACPI_STATUS
AcpiOsWritePciConfiguration (
ACPI_PCI_ID *PciId,
UINT32 Register,
- ACPI_INTEGER Value,
+ UINT64 Value,
UINT32 Width)
{
diff --git a/osunixxf.c b/osunixxf.c
index b430e83f1600b..e62ed738be1a7 100644
--- a/osunixxf.c
+++ b/osunixxf.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -871,7 +871,7 @@ AcpiOsStall (
void
AcpiOsSleep (
- ACPI_INTEGER milliseconds)
+ UINT64 milliseconds)
{
sleep (milliseconds / 1000); /* Sleep for whole seconds */
@@ -976,7 +976,7 @@ ACPI_STATUS
AcpiOsWritePciConfiguration (
ACPI_PCI_ID *PciId,
UINT32 Register,
- ACPI_INTEGER Value,
+ UINT64 Value,
UINT32 Width)
{
diff --git a/parser/psargs.c b/parser/psargs.c
index 60d4a835b1b73..78127e5d4d331 100644
--- a/parser/psargs.c
+++ b/parser/psargs.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -514,7 +514,7 @@ AcpiPsGetNextSimpleArg (
/* Get 1 byte from the AML stream */
Opcode = AML_BYTE_OP;
- Arg->Common.Value.Integer = (ACPI_INTEGER) *Aml;
+ Arg->Common.Value.Integer = (UINT64) *Aml;
Length = 1;
break;
diff --git a/parser/psloop.c b/parser/psloop.c
index 4171e0dc6de02..67f79261f3f89 100644
--- a/parser/psloop.c
+++ b/parser/psloop.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/parser/psopcode.c b/parser/psopcode.c
index d107c523707cc..e3e32ea555da3 100644
--- a/parser/psopcode.c
+++ b/parser/psopcode.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/parser/psparse.c b/parser/psparse.c
index 820f54bd0ca99..4a1c29d2f42f4 100644
--- a/parser/psparse.c
+++ b/parser/psparse.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/parser/psscope.c b/parser/psscope.c
index 979dbb1515143..bb7e149390c0c 100644
--- a/parser/psscope.c
+++ b/parser/psscope.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/parser/pstree.c b/parser/pstree.c
index 20ac405cac3ac..6a425e9cf49a3 100644
--- a/parser/pstree.c
+++ b/parser/pstree.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/parser/psutils.c b/parser/psutils.c
index 42f2b015d6c22..17be364a27808 100644
--- a/parser/psutils.c
+++ b/parser/psutils.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/parser/pswalk.c b/parser/pswalk.c
index d8d5f5e6f21d3..81310ba09f8bf 100644
--- a/parser/pswalk.c
+++ b/parser/pswalk.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/parser/psxface.c b/parser/psxface.c
index 1bf36e01c93a6..b34d9859afc95 100644
--- a/parser/psxface.c
+++ b/parser/psxface.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsaddr.c b/resources/rsaddr.c
index f2f3c4421f665..eeed1dffdb68c 100644
--- a/resources/rsaddr.c
+++ b/resources/rsaddr.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rscalc.c b/resources/rscalc.c
index 76aa44ff839a3..3215c9ecdbd70 100644
--- a/resources/rscalc.c
+++ b/resources/rscalc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rscreate.c b/resources/rscreate.c
index e9c840b64e583..c2929aa430446 100644
--- a/resources/rscreate.c
+++ b/resources/rscreate.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -270,7 +270,7 @@ AcpiRsCreatePciRoutingTable (
/*
* Loop through the ACPI_INTERNAL_OBJECTS - Each object should be a
- * package that in turn contains an ACPI_INTEGER Address, a UINT8 Pin,
+ * package that in turn contains an UINT64 Address, a UINT8 Pin,
* a Name, and a UINT8 SourceIndex.
*/
TopObjectList = PackageObject->Package.Elements;
diff --git a/resources/rsdump.c b/resources/rsdump.c
index 62db284c6f37d..3c1275f52fed5 100644
--- a/resources/rsdump.c
+++ b/resources/rsdump.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsinfo.c b/resources/rsinfo.c
index abf79943d971b..8f6aa0aa358b8 100644
--- a/resources/rsinfo.c
+++ b/resources/rsinfo.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsio.c b/resources/rsio.c
index fb9213dd72e9c..a29c655c483f1 100644
--- a/resources/rsio.c
+++ b/resources/rsio.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsirq.c b/resources/rsirq.c
index 7eab435139964..21120f6edbfe4 100644
--- a/resources/rsirq.c
+++ b/resources/rsirq.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rslist.c b/resources/rslist.c
index 3adce2b393989..8d31a91519752 100644
--- a/resources/rslist.c
+++ b/resources/rslist.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsmemory.c b/resources/rsmemory.c
index a3d08c01a1b7e..f4d1cca436b29 100644
--- a/resources/rsmemory.c
+++ b/resources/rsmemory.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsmisc.c b/resources/rsmisc.c
index 3565334e73245..ecea3e0c1aff9 100644
--- a/resources/rsmisc.c
+++ b/resources/rsmisc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsutils.c b/resources/rsutils.c
index 4e0f04ce8e527..b5c2ab5a7334d 100644
--- a/resources/rsutils.c
+++ b/resources/rsutils.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/resources/rsxface.c b/resources/rsxface.c
index a509c7afc7a48..2a019d18440ec 100644
--- a/resources/rsxface.c
+++ b/resources/rsxface.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tables/tbfadt.c b/tables/tbfadt.c
index c657a0b75ac13..b6d32f3cc14cf 100644
--- a/tables/tbfadt.c
+++ b/tables/tbfadt.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tables/tbfind.c b/tables/tbfind.c
index 1838b5eb78ae8..e1c110f4523ae 100644
--- a/tables/tbfind.c
+++ b/tables/tbfind.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tables/tbinstal.c b/tables/tbinstal.c
index c911f84f68b97..78cf164a99eae 100644
--- a/tables/tbinstal.c
+++ b/tables/tbinstal.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tables/tbutils.c b/tables/tbutils.c
index ec2a88e283d3f..0959ab25a5fc7 100644
--- a/tables/tbutils.c
+++ b/tables/tbutils.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tables/tbxface.c b/tables/tbxface.c
index 4c12916c5ac3d..6a4f413d04c58 100644
--- a/tables/tbxface.c
+++ b/tables/tbxface.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tables/tbxfroot.c b/tables/tbxfroot.c
index e0a571f36f449..4f0ab81084a1a 100644
--- a/tables/tbxfroot.c
+++ b/tables/tbxfroot.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tools/acpiexec/aecommon.h b/tools/acpiexec/aecommon.h
index 53f7a17bace79..7608c5de4887e 100644
--- a/tools/acpiexec/aecommon.h
+++ b/tools/acpiexec/aecommon.h
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -232,7 +232,7 @@ AeRegionHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext);
diff --git a/tools/acpiexec/aeexec.c b/tools/acpiexec/aeexec.c
index 676bd9382bfa7..06dbddbb1591e 100644
--- a/tools/acpiexec/aeexec.c
+++ b/tools/acpiexec/aeexec.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tools/acpiexec/aehandlers.c b/tools/acpiexec/aehandlers.c
index ae57483c49f03..28450cec74b64 100644
--- a/tools/acpiexec/aehandlers.c
+++ b/tools/acpiexec/aehandlers.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -653,7 +653,7 @@ AeRegionHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
- ACPI_INTEGER *Value,
+ UINT64 *Value,
void *HandlerContext,
void *RegionContext)
{
@@ -918,8 +918,8 @@ AeRegionHandler (
* NOTE: RegionElement->Length is in bytes, therefore it we compare against
* ByteWidth (see above)
*/
- if (((ACPI_INTEGER) Address + ByteWidth) >
- ((ACPI_INTEGER)(RegionElement->Address) + RegionElement->Length))
+ if (((UINT64) Address + ByteWidth) >
+ ((UINT64)(RegionElement->Address) + RegionElement->Length))
{
ACPI_WARNING ((AE_INFO,
"Request on [%4.4s] is beyond region limit Req-%X+%X, Base=%X, Len-%X",
@@ -934,7 +934,7 @@ AeRegionHandler (
* Get BufferValue to point to the "address" in the buffer
*/
BufferValue = ((UINT8 *) RegionElement->Buffer +
- ((ACPI_INTEGER) Address - (ACPI_INTEGER) RegionElement->Address));
+ ((UINT64) Address - (UINT64) RegionElement->Address));
DoFunction:
diff --git a/tools/acpiexec/aemain.c b/tools/acpiexec/aemain.c
index 777c5741e739f..55f701d1ac310 100644
--- a/tools/acpiexec/aemain.c
+++ b/tools/acpiexec/aemain.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -336,9 +336,10 @@ FlSplitInputPathname (
*
* FUNCTION: AsDoWildcard
*
- * PARAMETERS: None
+ * PARAMETERS: DirectoryPathname - Path to parent directory
+ * FileSpecifier - the wildcard specification (*.c, etc.)
*
- * RETURN: None
+ * RETURN: Pointer to a list of filenames
*
* DESCRIPTION: Process files via wildcards. This function is for the Windows
* case only.
@@ -393,6 +394,11 @@ AsDoWildcard (
return (FileList);
#else
+ if (!FileSpecifier)
+ {
+ return (NULL);
+ }
+
/*
* Linux/Unix cases - Wildcards are expanded by the shell automatically.
* Just return the filename in a null terminated list
diff --git a/tools/acpiexec/aetables.c b/tools/acpiexec/aetables.c
index e29bf65b8f46f..4c3734a05cbd4 100644
--- a/tools/acpiexec/aetables.c
+++ b/tools/acpiexec/aetables.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tools/acpiexec/osunixdir.c b/tools/acpiexec/osunixdir.c
index d9c55a1ef84a5..897d17340b9f3 100644
--- a/tools/acpiexec/osunixdir.c
+++ b/tools/acpiexec/osunixdir.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -295,11 +295,11 @@ strlwr (
int i;
- length = strlen(str);
+ length = strlen (str);
for (i = 0; i < length; i++)
{
- str[i] = tolower(str[i]);
+ str[i] = tolower ((int) str[i]);
}
return (str);
diff --git a/tools/acpisrc/acpisrc.h b/tools/acpisrc/acpisrc.h
index 651a0553f6f01..1d97479a0dccb 100644
--- a/tools/acpisrc/acpisrc.h
+++ b/tools/acpisrc/acpisrc.h
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tools/acpisrc/ascase.c b/tools/acpisrc/ascase.c
index da1112d562de9..e52578dc4056b 100644
--- a/tools/acpisrc/ascase.c
+++ b/tools/acpisrc/ascase.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -197,7 +197,7 @@ AsLowerCaseString (
for (i = 0; i < TargetLength; i++)
{
- SubString1[i] = (char) tolower (SubString1[i]);
+ SubString1[i] = (char) tolower ((int) SubString1[i]);
}
SubBuffer = SubString1 + TargetLength;
@@ -294,7 +294,7 @@ AsMixedCaseToUnderscores (
continue;
}
- if (islower (*SubBuffer))
+ if (islower ((int) *SubBuffer))
{
HasLowerCase = TRUE;
}
@@ -323,7 +323,7 @@ AsMixedCaseToUnderscores (
(SubBuffer[1] == 'X'))
{
SubBuffer += 2;
- while (isxdigit (*SubBuffer))
+ while (isxdigit ((int) *SubBuffer))
{
SubBuffer++;
}
@@ -367,9 +367,9 @@ AsMixedCaseToUnderscores (
/* Check the rest of the identifier for any lower case letters */
SubString = SubBuffer;
- while ((isalnum (*SubString)) || (*SubString == '_'))
+ while ((isalnum ((int) *SubString)) || (*SubString == '_'))
{
- if (islower (*SubString))
+ if (islower ((int) *SubString))
{
HasLowerCase = TRUE;
}
@@ -387,7 +387,7 @@ AsMixedCaseToUnderscores (
/* A capital letter may indicate the start of a token; save it */
- if (isupper (SubBuffer[0]))
+ if (isupper ((int) SubBuffer[0]))
{
TokenStart = SubBuffer;
}
@@ -399,15 +399,15 @@ AsMixedCaseToUnderscores (
* to
* <LowerCase><Underscore><LowerCase>
*/
- else if ((islower (SubBuffer[0]) || isdigit (SubBuffer[0])) &&
- (isupper (SubBuffer[1])))
+ else if ((islower ((int) SubBuffer[0]) || isdigit ((int) SubBuffer[0])) &&
+ (isupper ((int) SubBuffer[1])))
{
- if (isdigit (SubBuffer[0]))
+ if (isdigit ((int) SubBuffer[0]))
{
/* Ignore <UpperCase><Digit><UpperCase> */
/* Ignore <Underscore><Digit><UpperCase> */
- if (isupper (*(SubBuffer-1)) ||
+ if (isupper ((int) *(SubBuffer-1)) ||
*(SubBuffer-1) == '_')
{
SubBuffer++;
@@ -420,7 +420,7 @@ AsMixedCaseToUnderscores (
* Find the end of this identifier (token)
*/
TokenEnd = SubBuffer;
- while ((isalnum (*TokenEnd)) || (*TokenEnd == '_'))
+ while ((isalnum ((int) *TokenEnd)) || (*TokenEnd == '_'))
{
TokenEnd++;
}
@@ -428,7 +428,7 @@ AsMixedCaseToUnderscores (
/* Force the UpperCase letter (#2) to lower case */
Gbl_MadeChanges = TRUE;
- SubBuffer[1] = (char) tolower (SubBuffer[1]);
+ SubBuffer[1] = (char) tolower ((int) SubBuffer[1]);
SubString = TokenEnd;
Length = 0;
@@ -463,7 +463,7 @@ AsMixedCaseToUnderscores (
if (TokenStart)
{
- *TokenStart = (char) tolower (*TokenStart);
+ *TokenStart = (char) tolower ((int) *TokenStart);
TokenStart = NULL;
}
}
@@ -554,11 +554,11 @@ AsLowerCaseIdentifiers (
* Only lower case if we have an upper followed by a lower
* This leaves the all-uppercase things (macros, etc.) intact
*/
- if ((isupper (SubBuffer[0])) &&
- (islower (SubBuffer[1])))
+ if ((isupper ((int) SubBuffer[0])) &&
+ (islower ((int) SubBuffer[1])))
{
Gbl_MadeChanges = TRUE;
- *SubBuffer = (char) tolower (*SubBuffer);
+ *SubBuffer = (char) tolower ((int) *SubBuffer);
}
SubBuffer++;
@@ -595,15 +595,15 @@ AsUppercaseTokens (
if (SubBuffer)
{
TokenEnd = SubBuffer;
- while ((isalnum (*TokenEnd)) || (*TokenEnd == '_'))
+ while ((isalnum ((int) *TokenEnd)) || (*TokenEnd == '_'))
{
TokenEnd++;
}
for (i = 0; i < (TokenEnd - SubBuffer); i++)
{
- if ((islower (SubBuffer[i])) &&
- (isupper (SubBuffer[i+1])))
+ if ((islower ((int) SubBuffer[i])) &&
+ (isupper ((int) SubBuffer[i+1])))
{
SubString = TokenEnd;
@@ -635,7 +635,7 @@ AsUppercaseTokens (
for (i = 0; i < (TokenEnd - SubBuffer); i++)
{
- SubBuffer[i] = (char) toupper (SubBuffer[i]);
+ SubBuffer[i] = (char) toupper ((int) SubBuffer[i]);
}
SubBuffer = TokenEnd;
diff --git a/tools/acpisrc/asconvrt.c b/tools/acpisrc/asconvrt.c
index e17e51f1bb494..4ceb43563313c 100644
--- a/tools/acpisrc/asconvrt.c
+++ b/tools/acpisrc/asconvrt.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -153,9 +153,9 @@ AsMatchExactWord (
NextChar = Word[WordLength];
PrevChar = * (Word -1);
- if (isalnum (NextChar) ||
+ if (isalnum ((int) NextChar) ||
(NextChar == '_') ||
- isalnum (PrevChar) ||
+ isalnum ((int) PrevChar) ||
(PrevChar == '_'))
{
return (FALSE);
@@ -700,7 +700,7 @@ AsBracesOnSameLine (
* Check for digit will ignore initializer lists surrounded by braces.
* This will work until we we need more complex detection.
*/
- if ((*SubBuffer == '{') && !isdigit (SubBuffer[1]))
+ if ((*SubBuffer == '{') && !isdigit ((int) SubBuffer[1]))
{
if (BlockBegin)
{
diff --git a/tools/acpisrc/asfile.c b/tools/acpisrc/asfile.c
index d6561898095ef..ab62f176c9d2f 100644
--- a/tools/acpisrc/asfile.c
+++ b/tools/acpisrc/asfile.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tools/acpisrc/asmain.c b/tools/acpisrc/asmain.c
index c1fbb0cf133c9..4eaf94b3259b6 100644
--- a/tools/acpisrc/asmain.c
+++ b/tools/acpisrc/asmain.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -191,8 +191,8 @@ AsStricmp (
do
{
- c1 = tolower (*String1);
- c2 = tolower (*String2);
+ c1 = tolower ((int) *String1);
+ c2 = tolower ((int) *String2);
String1++;
String2++;
diff --git a/tools/acpisrc/asremove.c b/tools/acpisrc/asremove.c
index 18f72f3c15781..0f7939a43fd81 100644
--- a/tools/acpisrc/asremove.c
+++ b/tools/acpisrc/asremove.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tools/acpisrc/astable.c b/tools/acpisrc/astable.c
index e66fe72fdffaf..2a9eee6b673d3 100644
--- a/tools/acpisrc/astable.c
+++ b/tools/acpisrc/astable.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -163,7 +163,7 @@ ACPI_STRING_TABLE StandardDataTypes[] = {
char LinuxHeader[] =
"/*\n"
-" * Copyright (C) 2000 - 2009, Intel Corp.\n"
+" * Copyright (C) 2000 - 2010, Intel Corp.\n"
" * All rights reserved.\n"
" *\n"
" * Redistribution and use in source and binary forms, with or without\n"
@@ -500,7 +500,6 @@ ACPI_TYPED_IDENTIFIER_TABLE AcpiIdentifiers[] = {
{"ASL_RESOURCE_NODE", SRC_TYPE_STRUCT},
{"ASL_WALK_CALLBACK", SRC_TYPE_SIMPLE},
{"COMMAND_INFO", SRC_TYPE_STRUCT},
- {"UINT32_STRUCT", SRC_TYPE_STRUCT},
{"UINT64_OVERLAY", SRC_TYPE_UNION},
{"UINT64_STRUCT", SRC_TYPE_STRUCT},
@@ -781,11 +780,15 @@ ACPI_CONVERSION_TABLE StatsConversionTable = {
ACPI_STRING_TABLE CustomReplacements[] = {
- {"(c) 1999 - 2009", "(c) 1999 - 2009", REPLACE_WHOLE_WORD},
+ {"ACPI_INTEGER_MAX", "ACPI_UINT64_MAX", REPLACE_WHOLE_WORD},
#if 0
+ {"(ACPI_INTEGER)", "(UINT64)", REPLACE_WHOLE_WORD},
+ {"ACPI_INTEGER ", "UINT64 ", REPLACE_WHOLE_WORD},
+ {"ACPI_INTEGER", "UINT64", REPLACE_WHOLE_WORD},
+ {"(c) 1999 - 2009", "(c) 1999 - 2010", REPLACE_WHOLE_WORD}, /* Main ACPICA source */
+ {"(c) 2006 - 2009", "(c) 2006 - 2010", REPLACE_WHOLE_WORD}, /* Test suites */
{"#include \"acpi.h\"", "#include \"acpi.h\"\n#include \"accommon.h\"", REPLACE_SUBSTRINGS},
- {"(c) 1999 - 2009", "(c) 1999 - 2009", REPLACE_WHOLE_WORD},
{"AcpiTbSumTable", "AcpiTbSumTable", REPLACE_WHOLE_WORD},
{"ACPI_SIG_BOOT", "ACPI_SIG_BOOT", REPLACE_WHOLE_WORD},
{"ACPI_SIG_DBGP", "ACPI_SIG_DBGP", REPLACE_WHOLE_WORD},
diff --git a/tools/acpisrc/asutils.c b/tools/acpisrc/asutils.c
index 7b59178a5a1d8..401ebcb45e6e0 100644
--- a/tools/acpisrc/asutils.c
+++ b/tools/acpisrc/asutils.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/tools/acpisrc/osunixdir.c b/tools/acpisrc/osunixdir.c
index d9c55a1ef84a5..897d17340b9f3 100644
--- a/tools/acpisrc/osunixdir.c
+++ b/tools/acpisrc/osunixdir.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -295,11 +295,11 @@ strlwr (
int i;
- length = strlen(str);
+ length = strlen (str);
for (i = 0; i < length; i++)
{
- str[i] = tolower(str[i]);
+ str[i] = tolower ((int) str[i]);
}
return (str);
diff --git a/tools/acpixtract/acpixtract.c b/tools/acpixtract/acpixtract.c
index 044d552240d99..5a99fc4710fb5 100644
--- a/tools/acpixtract/acpixtract.c
+++ b/tools/acpixtract/acpixtract.c
@@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -122,7 +122,7 @@
/* Note: This is a 32-bit program only */
-#define VERSION 0x20091002
+#define VERSION 0x20100107
#define FIND_HEADER 0
#define EXTRACT_DATA 1
#define BUFFER_SIZE 256
@@ -250,7 +250,7 @@ CheckAscii (
for (i = 0; i < Count; i++)
{
- if (!Name[i] || !isprint (Name[i]))
+ if (!Name[i] || !isprint ((int) Name[i]))
{
Name[i] = ' ';
}
diff --git a/tools/examples/examples.c b/tools/examples/examples.c
index e2dfacd20d026..dc88bae62cb6b 100644
--- a/tools/examples/examples.c
+++ b/tools/examples/examples.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utalloc.c b/utilities/utalloc.c
index a66b94005c1fe..f72959a4d82a4 100644
--- a/utilities/utalloc.c
+++ b/utilities/utalloc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utcache.c b/utilities/utcache.c
index aabc0a23052e7..2cee9a13ce148 100644
--- a/utilities/utcache.c
+++ b/utilities/utcache.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utclib.c b/utilities/utclib.c
index a9b8122fab863..fd7796fee501d 100644
--- a/utilities/utclib.c
+++ b/utilities/utclib.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utcopy.c b/utilities/utcopy.c
index 5423eff9dec49..fe44083c5983e 100644
--- a/utilities/utcopy.c
+++ b/utilities/utcopy.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utdebug.c b/utilities/utdebug.c
index 3901b07d197e4..0a91716f24ccb 100644
--- a/utilities/utdebug.c
+++ b/utilities/utdebug.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -598,7 +598,7 @@ AcpiUtValueExit (
const char *FunctionName,
const char *ModuleName,
UINT32 ComponentId,
- ACPI_INTEGER Value)
+ UINT64 Value)
{
AcpiDebugPrint (ACPI_LV_FUNCTIONS,
diff --git a/utilities/utdelete.c b/utilities/utdelete.c
index bf30aee74e06b..31bf40b4e745a 100644
--- a/utilities/utdelete.c
+++ b/utilities/utdelete.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/uteval.c b/utilities/uteval.c
index ecb0cf19a704e..c959d44bb5942 100644
--- a/utilities/uteval.c
+++ b/utilities/uteval.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -423,7 +423,7 @@ ACPI_STATUS
AcpiUtEvaluateNumericObject (
char *ObjectName,
ACPI_NAMESPACE_NODE *DeviceNode,
- ACPI_INTEGER *Value)
+ UINT64 *Value)
{
ACPI_OPERAND_OBJECT *ObjDesc;
ACPI_STATUS Status;
diff --git a/utilities/utglobal.c b/utilities/utglobal.c
index b49ce352fbc70..236d811714cd9 100644
--- a/utilities/utglobal.c
+++ b/utilities/utglobal.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -331,7 +331,7 @@ static const char AcpiGbl_HexToAscii[] =
char
AcpiUtHexToAsciiChar (
- ACPI_INTEGER Integer,
+ UINT64 Integer,
UINT32 Position)
{
diff --git a/utilities/utids.c b/utilities/utids.c
index 766933050083e..ee7b19d885c31 100644
--- a/utilities/utids.c
+++ b/utilities/utids.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utinit.c b/utilities/utinit.c
index d59904b46a2fc..767c5623ef74d 100644
--- a/utilities/utinit.c
+++ b/utilities/utinit.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utlock.c b/utilities/utlock.c
index dd4e100001af5..e17ca3e7d7817 100644
--- a/utilities/utlock.c
+++ b/utilities/utlock.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utmath.c b/utilities/utmath.c
index b0a40ff2bcfdc..54d492f234f3e 100644
--- a/utilities/utmath.c
+++ b/utilities/utmath.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -149,9 +149,9 @@
ACPI_STATUS
AcpiUtShortDivide (
- ACPI_INTEGER Dividend,
+ UINT64 Dividend,
UINT32 Divisor,
- ACPI_INTEGER *OutQuotient,
+ UINT64 *OutQuotient,
UINT32 *OutRemainder)
{
UINT64_OVERLAY DividendOvl;
@@ -213,10 +213,10 @@ AcpiUtShortDivide (
ACPI_STATUS
AcpiUtDivide (
- ACPI_INTEGER InDividend,
- ACPI_INTEGER InDivisor,
- ACPI_INTEGER *OutQuotient,
- ACPI_INTEGER *OutRemainder)
+ UINT64 InDividend,
+ UINT64 InDivisor,
+ UINT64 *OutQuotient,
+ UINT64 *OutRemainder)
{
UINT64_OVERLAY Dividend;
UINT64_OVERLAY Divisor;
@@ -293,8 +293,8 @@ AcpiUtDivide (
* The 64-bit remainder must be generated.
*/
Partial1 = Quotient.Part.Lo * Divisor.Part.Hi;
- Partial2.Full = (ACPI_INTEGER) Quotient.Part.Lo * Divisor.Part.Lo;
- Partial3.Full = (ACPI_INTEGER) Partial2.Part.Hi + Partial1;
+ Partial2.Full = (UINT64) Quotient.Part.Lo * Divisor.Part.Lo;
+ Partial3.Full = (UINT64) Partial2.Part.Hi + Partial1;
Remainder.Part.Hi = Partial3.Part.Lo;
Remainder.Part.Lo = Partial2.Part.Lo;
@@ -362,9 +362,9 @@ AcpiUtDivide (
ACPI_STATUS
AcpiUtShortDivide (
- ACPI_INTEGER InDividend,
+ UINT64 InDividend,
UINT32 Divisor,
- ACPI_INTEGER *OutQuotient,
+ UINT64 *OutQuotient,
UINT32 *OutRemainder)
{
@@ -395,10 +395,10 @@ AcpiUtShortDivide (
ACPI_STATUS
AcpiUtDivide (
- ACPI_INTEGER InDividend,
- ACPI_INTEGER InDivisor,
- ACPI_INTEGER *OutQuotient,
- ACPI_INTEGER *OutRemainder)
+ UINT64 InDividend,
+ UINT64 InDivisor,
+ UINT64 *OutQuotient,
+ UINT64 *OutRemainder)
{
ACPI_FUNCTION_TRACE (UtDivide);
diff --git a/utilities/utmisc.c b/utilities/utmisc.c
index bc27cd5293882..37b15e2c4c7b2 100644
--- a/utilities/utmisc.c
+++ b/utilities/utmisc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -929,12 +929,12 @@ ACPI_STATUS
AcpiUtStrtoul64 (
char *String,
UINT32 Base,
- ACPI_INTEGER *RetInteger)
+ UINT64 *RetInteger)
{
UINT32 ThisDigit = 0;
- ACPI_INTEGER ReturnValue = 0;
- ACPI_INTEGER Quotient;
- ACPI_INTEGER Dividend;
+ UINT64 ReturnValue = 0;
+ UINT64 Quotient;
+ UINT64 Dividend;
UINT32 ToIntegerOp = (Base == ACPI_ANY_BASE);
UINT32 Mode32 = (AcpiGbl_IntegerByteWidth == 4);
UINT8 ValidDigits = 0;
@@ -1071,7 +1071,7 @@ AcpiUtStrtoul64 (
/* Divide the digit into the correct position */
- (void) AcpiUtShortDivide ((Dividend - (ACPI_INTEGER) ThisDigit),
+ (void) AcpiUtShortDivide ((Dividend - (UINT64) ThisDigit),
Base, &Quotient, NULL);
if (ReturnValue > Quotient)
diff --git a/utilities/utmutex.c b/utilities/utmutex.c
index f6e7cc36522df..9e0ed3b713c74 100644
--- a/utilities/utmutex.c
+++ b/utilities/utmutex.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -128,7 +128,7 @@ static ACPI_STATUS
AcpiUtCreateMutex (
ACPI_MUTEX_HANDLE MutexId);
-static ACPI_STATUS
+static void
AcpiUtDeleteMutex (
ACPI_MUTEX_HANDLE MutexId);
@@ -216,7 +216,7 @@ AcpiUtMutexTerminate (
for (i = 0; i < ACPI_NUM_MUTEX; i++)
{
- (void) AcpiUtDeleteMutex (i);
+ AcpiUtDeleteMutex (i);
}
/* Delete the spinlocks */
@@ -253,11 +253,6 @@ AcpiUtCreateMutex (
ACPI_FUNCTION_TRACE_U32 (UtCreateMutex, MutexId);
- if (MutexId > ACPI_MAX_MUTEX)
- {
- return_ACPI_STATUS (AE_BAD_PARAMETER);
- }
-
if (!AcpiGbl_MutexInfo[MutexId].Mutex)
{
Status = AcpiOsCreateMutex (&AcpiGbl_MutexInfo[MutexId].Mutex);
@@ -281,7 +276,7 @@ AcpiUtCreateMutex (
*
******************************************************************************/
-static ACPI_STATUS
+static void
AcpiUtDeleteMutex (
ACPI_MUTEX_HANDLE MutexId)
{
@@ -289,17 +284,10 @@ AcpiUtDeleteMutex (
ACPI_FUNCTION_TRACE_U32 (UtDeleteMutex, MutexId);
- if (MutexId > ACPI_MAX_MUTEX)
- {
- return_ACPI_STATUS (AE_BAD_PARAMETER);
- }
-
AcpiOsDeleteMutex (AcpiGbl_MutexInfo[MutexId].Mutex);
AcpiGbl_MutexInfo[MutexId].Mutex = NULL;
AcpiGbl_MutexInfo[MutexId].ThreadId = ACPI_MUTEX_NOT_ACQUIRED;
-
- return_ACPI_STATUS (AE_OK);
}
diff --git a/utilities/utobject.c b/utilities/utobject.c
index 5164744891b88..fabed520c798b 100644
--- a/utilities/utobject.c
+++ b/utilities/utobject.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utresrc.c b/utilities/utresrc.c
index 2f19d639868c9..02bb1dbfe60ad 100644
--- a/utilities/utresrc.c
+++ b/utilities/utresrc.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utstate.c b/utilities/utstate.c
index 245ca02bfc5e7..08218d11c91a3 100644
--- a/utilities/utstate.c
+++ b/utilities/utstate.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/uttrack.c b/utilities/uttrack.c
index d712c1a3e5ab9..500ed458248cb 100644
--- a/utilities/uttrack.c
+++ b/utilities/uttrack.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License
diff --git a/utilities/utxface.c b/utilities/utxface.c
index ba57f4922b788..f59a08dba485c 100644
--- a/utilities/utxface.c
+++ b/utilities/utxface.c
@@ -8,7 +8,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
* All rights reserved.
*
* 2. License