bk://linux-acpi.bkbits.net/to-akpm len.brown@intel.com|ChangeSet|20050126073819|44553 len.brown # This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2005/01/26 18:28:25-08:00 akpm@bix.(none) # Merge bk://linux-acpi.bkbits.net/to-akpm # into bix.(none):/usr/src/bk-acpi # # drivers/acpi/debug.c # 2005/01/26 18:28:20-08:00 akpm@bix.(none) +0 -0 # Auto merged # # ChangeSet # 2005/01/26 02:32:41-05:00 len.brown@intel.com # [ACPI] ACPICA 20050125 from Bob Moore # # Fixed a recently introduced problem with the Global # Lock where the underlying semaphore was not created. # This problem was introduced in version 20050114, and # caused an AE_AML_NO_OPERAND exception during an Acquire() # operation on _GL. # # The local object cache is now optional, and is disabled # by default. #define ACPI_ENABLE_OBJECT_CACHE to enable # the local cache. # # Fixed an issue in the internal function # acpi_ut_evaluate_object() concerning the optional "implicit # return" support where an error was returned if no return # object was expected, but one was implicitly returned. AE_OK # is now returned in this case and the implicitly returned # object is deleted. acpi_ut_evaluate_object() is only # occasionally used, and only to execute reserved methods # such as _STA and _INI where the return type is known # up front. # # Fixed a few issues with the internal convert-to-integer # code. It now returns an error if an attempt is made to # convert a null string, a string of only blanks/tabs, or a # zero-length buffer. This affects both implicit conversion # and explicit conversion via the ToInteger() operator. # # The internal debug code in acpi_ut_acquire_mutex() # has been commented out. It is not needed for normal # operation and should increase the performance of the entire # subsystem. The code remains in case it is needed for debug # purposes again. # acpica-unix-20050125.patch # # include/acpi/platform/acenv.h # 2005/01/26 02:32:33-05:00 len.brown@intel.com +3 -0 # ACPICA 20050125 # # include/acpi/acutils.h # 2005/01/26 02:32:33-05:00 len.brown@intel.com +4 -0 # ACPICA 20050125 # # include/acpi/acparser.h # 2005/01/26 02:32:33-05:00 len.brown@intel.com +2 -0 # ACPICA 20050125 # # include/acpi/acdispat.h # 2005/01/26 02:32:33-05:00 len.brown@intel.com +2 -0 # ACPICA 20050125 # # include/acpi/acconfig.h # 2005/01/26 02:32:33-05:00 len.brown@intel.com +1 -1 # ACPICA 20050125 # # drivers/acpi/utilities/utxface.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +2 -0 # ACPICA 20050125 # # drivers/acpi/utilities/utobject.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +2 -0 # ACPICA 20050125 # # drivers/acpi/utilities/utmisc.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +34 -20 # ACPICA 20050125 # # drivers/acpi/utilities/utglobal.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +1 -1 # ACPICA 20050125 # # drivers/acpi/utilities/utalloc.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +25 -1 # ACPICA 20050125 # # drivers/acpi/parser/psutils.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +2 -0 # ACPICA 20050125 # # drivers/acpi/namespace/nsaccess.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +1 -1 # ACPICA 20050125 # # drivers/acpi/executer/exconvrt.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +6 -0 # ACPICA 20050125 # # drivers/acpi/dispatcher/dswstate.c # 2005/01/26 02:32:33-05:00 len.brown@intel.com +2 -0 # ACPICA 20050125 # # ChangeSet # 2005/01/24 23:32:11-05:00 len.brown@intel.com # Merge # # drivers/acpi/debug.c # 2005/01/24 23:32:09-05:00 len.brown@intel.com +0 -0 # SCCS merged # # ChangeSet # 2005/01/21 17:44:33-05:00 len.brown@intel.com # [ACPI] avoid benign AE_TYPE warnings # caused by "implicit return" BIOS workaround # returning unsolicited (and thus mis-typed) AML values. # # Signed-off-by: Bob Moore # Signed-off-by: Len Brown # # drivers/acpi/utilities/uteval.c # 2005/01/21 17:44:25-05:00 len.brown@intel.com +11 -0 # avoid complaints about unsolicited return values # that result from the "implicit-return" BIOS workaround # # ChangeSet # 2005/01/21 12:05:08-08:00 akpm@bix.(none) # Merge # # drivers/acpi/debug.c # 2005/01/21 12:05:06-08:00 akpm@bix.(none) +0 -0 # SCCS merged # # ChangeSet # 2005/01/21 00:28:02-05:00 len.brown@intel.com # Merge intel.com:/home/lenb/src/26-stable-dev # into intel.com:/home/lenb/src/26-latest-dev # # drivers/acpi/events/evgpeblk.c # 2005/01/21 00:27:58-05:00 len.brown@intel.com +0 -0 # Auto merged # # ChangeSet # 2005/01/21 00:18:05-05:00 len.brown@intel.com # [ACPI] ACPICA 20050114 from Bob Moore # # Added 2005 copyright to all ACPICA files. # # Fixed an issue with the String-to-Buffer conversion code # where the string null terminator was not included in the # buffer after conversion, but there is existing ASL that # assumes the string null terminator is included. This is the # root of the ACPI_AML_BUFFER_LIMIT regression. This problem # was introduced in the previous version when the code was # updated to correctly set the converted buffer size as per # the ACPI specification. The ACPI spec is ambiguous and # will be updated to specify that the null terminator must # be included in the converted buffer. This also affects # the ToBuffer() ASL operator. # # Fixed a problem with the Mid() ASL/AML operator where it # did not work correctly on Buffer objects. Newly created # sub-buffers were not being marked as initialized. # # Fixed a problem in acpi_tb_find_table where incorrect string # compares were performed on the oem_id and oem_table_d table # header fields. These fields are not null terminated, # so strncmp is now used instead of strcmp. # # Implemented a restriction on the Store() ASL/AML operator # to align the behavior with the ACPI specification. # Previously, any object could be used as the source # operand. Now, the only objects that may be used are # Integers, Buffers, Strings, Packages, Object References, # and DDB Handles. As acpi_gbl_enable_interpreter_slack # is FALSE by default, "acpi=strict" is needed to enable # this check. # # Enhanced the optional "implicit return" support to allow # an implicit return value from methods that are invoked # externally via the AcpiEvaluateObject interface. This # enables implicit returns from the _STA and _INI methods, # for example. # # Changed the Revision() ASL/AML operator to return the # current version of the AML interpreter, in the YYYYMMDD # format. Previously, it incorrectly returned the supported # ACPI version (This is the function of the _REV method). # # Updated the _REV predefined method to return the currently # supported version of ACPI, now 3. # # include/acpi/platform/aclinux.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/platform/acgcc.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/platform/acenv.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/amlresrc.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/amlcode.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +2 -1 # ACPICA 20050114 # # include/acpi/acutils.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/actypes.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/actbl2.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/actbl1.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/actbl.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/actables.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acstruct.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acresrc.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acpixf.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acpiosxf.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acpi.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acparser.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acoutput.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acobject.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acnamesp.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acmacros.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/aclocal.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acinterp.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/achware.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acglobal.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +2 -1 # ACPICA 20050114 # # include/acpi/acexcep.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acevents.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acdispat.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acdisasm.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acdebug.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # include/acpi/acconfig.h # 2005/01/21 00:17:55-05:00 len.brown@intel.com +2 -2 # ACPICA 20050114 # # drivers/acpi/utilities/utxface.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utobject.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utmisc.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utmath.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utinit.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utglobal.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +6 -4 # ACPICA 20050114 # # drivers/acpi/utilities/uteval.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +4 -3 # ACPICA 20050114 # # drivers/acpi/utilities/utdelete.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utdebug.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utcopy.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/utilities/utalloc.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/tables/tbxfroot.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +14 -8 # ACPICA 20050114 # # drivers/acpi/tables/tbxface.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/tables/tbutils.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/tables/tbrsdt.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/tables/tbinstal.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/tables/tbgetall.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/tables/tbget.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/tables/tbconvrt.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsxface.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsutils.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +8 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsmisc.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsmemory.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rslist.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsirq.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsio.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsdump.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rscreate.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rscalc.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/resources/rsaddr.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/parser/psxface.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/parser/pswalk.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/parser/psutils.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/parser/pstree.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/parser/psscope.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/parser/psparse.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/parser/psopcode.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +2 -2 # ACPICA 20050114 # # drivers/acpi/parser/psargs.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsxfobj.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsxfname.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsxfeval.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nswalk.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsutils.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nssearch.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsparse.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsobject.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsnames.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsload.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsinit.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +7 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nseval.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsdumpdv.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsdump.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsalloc.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/namespace/nsaccess.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +4 -7 # ACPICA 20050114 # # drivers/acpi/hardware/hwtimer.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/hardware/hwsleep.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/hardware/hwregs.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/hardware/hwgpe.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/hardware/hwacpi.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exutils.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exsystem.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exstorob.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exstoren.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exstore.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exresop.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +40 -1 # ACPICA 20050114 # # drivers/acpi/executer/exresolv.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exresnte.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exregion.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exprep.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exoparg6.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exoparg3.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +5 -1 # ACPICA 20050114 # # drivers/acpi/executer/exoparg2.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exoparg1.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exnames.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exmutex.c # 2005/01/21 00:17:54-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exmisc.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exfldio.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exfield.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exdump.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/excreate.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/executer/exconvrt.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +7 -2 # ACPICA 20050114 # # drivers/acpi/executer/exconfig.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evxfregn.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evxfevnt.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evxface.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evsci.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evrgnini.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evregion.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evmisc.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evgpeblk.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evgpe.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/events/evevent.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dswstate.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dswscope.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dswload.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dswexec.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dsutils.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +7 -5 # ACPICA 20050114 # # drivers/acpi/dispatcher/dsopcode.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dsobject.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +2 -2 # ACPICA 20050114 # # drivers/acpi/dispatcher/dsmthdat.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dsmethod.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dsinit.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # drivers/acpi/dispatcher/dsfield.c # 2005/01/21 00:17:53-05:00 len.brown@intel.com +1 -1 # ACPICA 20050114 # # ChangeSet # 2005/01/20 22:58:53-05:00 len.brown@intel.com # Merge intel.com:/home/lenb/src/26-stable-dev # into intel.com:/home/lenb/src/26-latest-dev # # include/acpi/processor.h # 2005/01/20 22:58:49-05:00 len.brown@intel.com +0 -0 # Auto merged # # drivers/acpi/processor_idle.c # 2005/01/20 22:58:49-05:00 len.brown@intel.com +0 -0 # Auto merged # # ChangeSet # 2005/01/20 22:43:52-05:00 len.brown@intel.com # [ACPI] Add a module parameter to allow tuning how much bus-master activity # we remember when entering C3 -- /sys/module/processor/parameters/bm_history # Default varies with HZ -- 40ms for 25 - 800 HZ, 32ms for 1000 HZ. # # Signed-off-by: Len Brown # # drivers/acpi/processor_idle.c # 2005/01/20 22:43:44-05:00 len.brown@intel.com +11 -2 # /sys/module/processor/parameters/bm_history # # ChangeSet # 2005/01/20 21:52:27-05:00 len.brown@intel.com # [ACPI] Make the bm_activity depend on "jiffies", instead of numbers # of the check being called. This means bus mastering activity # is assumed if bm_check isn't called; and multiple calls during # one jiffy will be |='ed. # # Signed-off-by: Dominik Brodowski # Signed-off-by: Len Brown # # include/acpi/processor.h # 2005/01/20 21:52:11-05:00 len.brown@intel.com +1 -0 # jiffies-based bus-master activity history # # drivers/acpi/processor_idle.c # 2005/01/20 21:52:11-05:00 len.brown@intel.com +14 -1 # jiffies-based bus-master activity history # # ChangeSet # 2005/01/07 13:42:16-05:00 len.brown@intel.com # [ACPI] Use kernel.h for ARRAY_SIZE() instead of using local NUM_OF(). # # Signed-off-by: Randy Dunlap # Signed-off-by: Len Brown # # drivers/acpi/debug.c # 2005/01/07 13:42:08-05:00 len.brown@intel.com +4 -4 # Use kernel.h for ARRAY_SIZE() instead of using local NUM_OF(). # # ChangeSet # 2005/01/06 02:06:24-05:00 len.brown@intel.com # Merge intel.com:/home/lenb/src/26-stable-dev # into intel.com:/home/lenb/src/26-latest-dev # # drivers/acpi/video.c # 2005/01/06 02:06:20-05:00 len.brown@intel.com +0 -1 # Auto merged # # ChangeSet # 2005/01/05 23:56:52-05:00 torvalds@evo.osdl.org # acpi video device enumeration: fix incorrect device list allocation # # It didn't allocate space for the final terminating entry, # which caused it to overwrite the next slab entry, which in turn # sometimes ended up being a slab array cache pointer. End result: # total slab cache corruption at a random time afterwards. Very # nasty. # # drivers/acpi/video.c # 2005/01/05 23:54:25-05:00 torvalds@evo.osdl.org +1 -1 # acpi video device enumeration: fix incorrect device list allocation # # It didn't allocate space for the final terminating entry, # which caused it to overwrite the next slab entry, which in turn # sometimes ended up being a slab array cache pointer. End result: # total slab cache corruption at a random time afterwards. Very # nasty. # diff -Nru a/drivers/acpi/debug.c b/drivers/acpi/debug.c --- a/drivers/acpi/debug.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/debug.c 2005-01-28 14:17:17 -08:00 @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -89,7 +90,6 @@ ACPI_DEBUG_INIT(ACPI_LV_FULL_TABLES), ACPI_DEBUG_INIT(ACPI_LV_EVENTS), }; -#define NUM_OF(v) ( sizeof(v)/sizeof(v[0]) ) static int acpi_system_read_debug ( @@ -102,7 +102,7 @@ { char *p = page; int size = 0; - int i; + unsigned int i; if (off != 0) goto end; @@ -111,7 +111,7 @@ switch ((unsigned long) data) { case 0: - for (i = 0; i < NUM_OF(acpi_debug_layers); i++) { + for (i = 0; i < ARRAY_SIZE(acpi_debug_layers); i++) { p += sprintf(p, "%-25s\t0x%08lX [%c]\n", acpi_debug_layers[i].name, acpi_debug_layers[i].value, @@ -128,7 +128,7 @@ acpi_dbg_layer); break; case 1: - for (i = 0; i < NUM_OF(acpi_debug_levels); i++) { + for (i = 0; i < ARRAY_SIZE(acpi_debug_levels); i++) { p += sprintf(p, "%-25s\t0x%08lX [%c]\n", acpi_debug_levels[i].name, acpi_debug_levels[i].value, diff -Nru a/drivers/acpi/dispatcher/dsfield.c b/drivers/acpi/dispatcher/dsfield.c --- a/drivers/acpi/dispatcher/dsfield.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dsfield.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dsinit.c b/drivers/acpi/dispatcher/dsinit.c --- a/drivers/acpi/dispatcher/dsinit.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dsinit.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dsmethod.c b/drivers/acpi/dispatcher/dsmethod.c --- a/drivers/acpi/dispatcher/dsmethod.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dsmethod.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dsmthdat.c b/drivers/acpi/dispatcher/dsmthdat.c --- a/drivers/acpi/dispatcher/dsmthdat.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dsmthdat.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dsobject.c b/drivers/acpi/dispatcher/dsobject.c --- a/drivers/acpi/dispatcher/dsobject.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dsobject.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -516,7 +516,7 @@ case AML_REVISION_OP: - obj_desc->integer.value = ACPI_CA_SUPPORT_LEVEL; + obj_desc->integer.value = ACPI_CA_VERSION; break; default: diff -Nru a/drivers/acpi/dispatcher/dsopcode.c b/drivers/acpi/dispatcher/dsopcode.c --- a/drivers/acpi/dispatcher/dsopcode.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dsopcode.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dsutils.c b/drivers/acpi/dispatcher/dsutils.c --- a/drivers/acpi/dispatcher/dsutils.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dsutils.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -88,11 +88,13 @@ } /* - * If there is no parent, we are executing at the method level. - * An executing method typically has no parent, since each method - * is parsed separately. + * If there is no parent, or the parent is a scope_op, we are executing + * at the method level. An executing method typically has no parent, + * since each method is parsed separately. A method invoked externally + * via execute_control_method has a scope_op as the parent. */ - if (!op->common.parent) { + if ((!op->common.parent) || + (op->common.parent->common.aml_opcode == AML_SCOPE_OP)) { /* * If this is the last statement in the method, we know it is not a * Return() operator (would not come here.) The following code is the diff -Nru a/drivers/acpi/dispatcher/dswexec.c b/drivers/acpi/dispatcher/dswexec.c --- a/drivers/acpi/dispatcher/dswexec.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dswexec.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dswload.c b/drivers/acpi/dispatcher/dswload.c --- a/drivers/acpi/dispatcher/dswload.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dswload.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dswscope.c b/drivers/acpi/dispatcher/dswscope.c --- a/drivers/acpi/dispatcher/dswscope.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dswscope.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/dispatcher/dswstate.c b/drivers/acpi/dispatcher/dswstate.c --- a/drivers/acpi/dispatcher/dswstate.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/dispatcher/dswstate.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -1071,6 +1071,7 @@ } +#ifdef ACPI_ENABLE_OBJECT_CACHE /****************************************************************************** * * FUNCTION: acpi_ds_delete_walk_state_cache @@ -1094,5 +1095,6 @@ acpi_ut_delete_generic_cache (ACPI_MEM_LIST_WALK); return_VOID; } +#endif diff -Nru a/drivers/acpi/events/evevent.c b/drivers/acpi/events/evevent.c --- a/drivers/acpi/events/evevent.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evevent.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evgpe.c b/drivers/acpi/events/evgpe.c --- a/drivers/acpi/events/evgpe.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evgpe.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evgpeblk.c b/drivers/acpi/events/evgpeblk.c --- a/drivers/acpi/events/evgpeblk.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evgpeblk.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evmisc.c b/drivers/acpi/events/evmisc.c --- a/drivers/acpi/events/evmisc.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evmisc.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evregion.c b/drivers/acpi/events/evregion.c --- a/drivers/acpi/events/evregion.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evregion.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evrgnini.c b/drivers/acpi/events/evrgnini.c --- a/drivers/acpi/events/evrgnini.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evrgnini.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evsci.c b/drivers/acpi/events/evsci.c --- a/drivers/acpi/events/evsci.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evsci.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evxface.c b/drivers/acpi/events/evxface.c --- a/drivers/acpi/events/evxface.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evxface.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evxfevnt.c b/drivers/acpi/events/evxfevnt.c --- a/drivers/acpi/events/evxfevnt.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evxfevnt.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/events/evxfregn.c b/drivers/acpi/events/evxfregn.c --- a/drivers/acpi/events/evxfregn.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/events/evxfregn.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c --- a/drivers/acpi/executer/exconfig.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exconfig.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exconvrt.c b/drivers/acpi/executer/exconvrt.c --- a/drivers/acpi/executer/exconvrt.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exconvrt.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -136,6 +136,12 @@ case ACPI_TYPE_BUFFER: + /* Check for zero-length buffer */ + + if (!count) { + return_ACPI_STATUS (AE_AML_BUFFER_LIMIT); + } + /* Transfer no more than an integer's worth of data */ if (count > acpi_gbl_integer_byte_width) { @@ -239,8 +245,13 @@ /* * Create a new Buffer object * Size will be the string length + * + * NOTE: Add one to the string length to include the null terminator. + * The ACPI spec is unclear on this subject, but there is existing + * ASL/AML code that depends on the null being transferred to the new + * buffer. */ - return_desc = acpi_ut_create_buffer_object ((acpi_size) obj_desc->string.length); + return_desc = acpi_ut_create_buffer_object ((acpi_size) obj_desc->string.length + 1); if (!return_desc) { return_ACPI_STATUS (AE_NO_MEMORY); } diff -Nru a/drivers/acpi/executer/excreate.c b/drivers/acpi/executer/excreate.c --- a/drivers/acpi/executer/excreate.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/excreate.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exdump.c b/drivers/acpi/executer/exdump.c --- a/drivers/acpi/executer/exdump.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exdump.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exfield.c b/drivers/acpi/executer/exfield.c --- a/drivers/acpi/executer/exfield.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exfield.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exfldio.c b/drivers/acpi/executer/exfldio.c --- a/drivers/acpi/executer/exfldio.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exfldio.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exmisc.c b/drivers/acpi/executer/exmisc.c --- a/drivers/acpi/executer/exmisc.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exmisc.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exmutex.c b/drivers/acpi/executer/exmutex.c --- a/drivers/acpi/executer/exmutex.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exmutex.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exnames.c b/drivers/acpi/executer/exnames.c --- a/drivers/acpi/executer/exnames.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exnames.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exoparg1.c b/drivers/acpi/executer/exoparg1.c --- a/drivers/acpi/executer/exoparg1.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exoparg1.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exoparg2.c b/drivers/acpi/executer/exoparg2.c --- a/drivers/acpi/executer/exoparg2.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exoparg2.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exoparg3.c b/drivers/acpi/executer/exoparg3.c --- a/drivers/acpi/executer/exoparg3.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exoparg3.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -218,6 +218,10 @@ return_desc->string.pointer = buffer; return_desc->string.length = (u32) length; } + + /* Mark buffer initialized */ + + return_desc->buffer.flags |= AOPOBJ_DATA_VALID; break; diff -Nru a/drivers/acpi/executer/exoparg6.c b/drivers/acpi/executer/exoparg6.c --- a/drivers/acpi/executer/exoparg6.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exoparg6.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exprep.c b/drivers/acpi/executer/exprep.c --- a/drivers/acpi/executer/exprep.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exprep.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exregion.c b/drivers/acpi/executer/exregion.c --- a/drivers/acpi/executer/exregion.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exregion.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exresnte.c b/drivers/acpi/executer/exresnte.c --- a/drivers/acpi/executer/exresnte.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exresnte.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exresolv.c b/drivers/acpi/executer/exresolv.c --- a/drivers/acpi/executer/exresolv.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exresolv.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exresop.c b/drivers/acpi/executer/exresop.c --- a/drivers/acpi/executer/exresop.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exresop.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -577,6 +577,45 @@ default: ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Needed [Region/region_field], found [%s] %p\n", + acpi_ut_get_object_type_name (obj_desc), obj_desc)); + + return_ACPI_STATUS (AE_AML_OPERAND_TYPE); + } + goto next_operand; + + + case ARGI_DATAREFOBJ: + + /* Used by the Store() operator only */ + + switch (ACPI_GET_OBJECT_TYPE (obj_desc)) { + case ACPI_TYPE_INTEGER: + case ACPI_TYPE_PACKAGE: + case ACPI_TYPE_STRING: + case ACPI_TYPE_BUFFER: + case ACPI_TYPE_BUFFER_FIELD: + case ACPI_TYPE_LOCAL_REFERENCE: + case ACPI_TYPE_LOCAL_REGION_FIELD: + case ACPI_TYPE_LOCAL_BANK_FIELD: + case ACPI_TYPE_LOCAL_INDEX_FIELD: + case ACPI_TYPE_DDB_HANDLE: + + /* Valid operand */ + break; + + default: + + if (acpi_gbl_enable_interpreter_slack) { + /* + * Enable original behavior of Store(), allowing any and all + * objects as the source operand. The ACPI spec does not + * allow this, however. + */ + break; + } + + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + "Needed Integer/Buffer/String/Package/Ref/Ddb], found [%s] %p\n", acpi_ut_get_object_type_name (obj_desc), obj_desc)); return_ACPI_STATUS (AE_AML_OPERAND_TYPE); diff -Nru a/drivers/acpi/executer/exstore.c b/drivers/acpi/executer/exstore.c --- a/drivers/acpi/executer/exstore.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exstore.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exstoren.c b/drivers/acpi/executer/exstoren.c --- a/drivers/acpi/executer/exstoren.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exstoren.c 2005-01-28 14:17:17 -08:00 @@ -7,7 +7,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exstorob.c b/drivers/acpi/executer/exstorob.c --- a/drivers/acpi/executer/exstorob.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exstorob.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exsystem.c b/drivers/acpi/executer/exsystem.c --- a/drivers/acpi/executer/exsystem.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exsystem.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/executer/exutils.c b/drivers/acpi/executer/exutils.c --- a/drivers/acpi/executer/exutils.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/executer/exutils.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/hardware/hwacpi.c b/drivers/acpi/hardware/hwacpi.c --- a/drivers/acpi/hardware/hwacpi.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/hardware/hwacpi.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/hardware/hwgpe.c b/drivers/acpi/hardware/hwgpe.c --- a/drivers/acpi/hardware/hwgpe.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/hardware/hwgpe.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/hardware/hwregs.c b/drivers/acpi/hardware/hwregs.c --- a/drivers/acpi/hardware/hwregs.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/hardware/hwregs.c 2005-01-28 14:17:17 -08:00 @@ -7,7 +7,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/hardware/hwsleep.c b/drivers/acpi/hardware/hwsleep.c --- a/drivers/acpi/hardware/hwsleep.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/hardware/hwsleep.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/hardware/hwtimer.c b/drivers/acpi/hardware/hwtimer.c --- a/drivers/acpi/hardware/hwtimer.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/hardware/hwtimer.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsaccess.c b/drivers/acpi/namespace/nsaccess.c --- a/drivers/acpi/namespace/nsaccess.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsaccess.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -155,8 +155,7 @@ */ switch (init_val->type) { case ACPI_TYPE_METHOD: - obj_desc->method.param_count = (u8) ACPI_STRTOUL - (val, NULL, 10); + obj_desc->method.param_count = (u8) ACPI_TO_INTEGER (val); obj_desc->common.flags |= AOPOBJ_DATA_VALID; #if defined (_ACPI_ASL_COMPILER) || defined (_ACPI_DUMP_App) @@ -176,8 +175,7 @@ case ACPI_TYPE_INTEGER: - obj_desc->integer.value = - (acpi_integer) ACPI_STRTOUL (val, NULL, 10); + obj_desc->integer.value = ACPI_TO_INTEGER (val); break; @@ -195,8 +193,7 @@ case ACPI_TYPE_MUTEX: obj_desc->mutex.node = new_node; - obj_desc->mutex.sync_level = (u8) ACPI_STRTOUL - (val, NULL, 10); + obj_desc->mutex.sync_level = (u8) (ACPI_TO_INTEGER (val) - 1); if (ACPI_STRCMP (init_val->name, "_GL_") == 0) { /* diff -Nru a/drivers/acpi/namespace/nsalloc.c b/drivers/acpi/namespace/nsalloc.c --- a/drivers/acpi/namespace/nsalloc.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsalloc.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsdump.c b/drivers/acpi/namespace/nsdump.c --- a/drivers/acpi/namespace/nsdump.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsdump.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsdumpdv.c b/drivers/acpi/namespace/nsdumpdv.c --- a/drivers/acpi/namespace/nsdumpdv.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsdumpdv.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nseval.c b/drivers/acpi/namespace/nseval.c --- a/drivers/acpi/namespace/nseval.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nseval.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsinit.c b/drivers/acpi/namespace/nsinit.c --- a/drivers/acpi/namespace/nsinit.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsinit.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -420,6 +420,12 @@ status = AE_OK; } else { + /* Delete any return object (especially if implicit_return is enabled) */ + + if (pinfo.return_object) { + acpi_ut_remove_reference (pinfo.return_object); + } + /* Count of successful INIs */ info->num_INI++; diff -Nru a/drivers/acpi/namespace/nsload.c b/drivers/acpi/namespace/nsload.c --- a/drivers/acpi/namespace/nsload.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsload.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsnames.c b/drivers/acpi/namespace/nsnames.c --- a/drivers/acpi/namespace/nsnames.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsnames.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsobject.c b/drivers/acpi/namespace/nsobject.c --- a/drivers/acpi/namespace/nsobject.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsobject.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsparse.c b/drivers/acpi/namespace/nsparse.c --- a/drivers/acpi/namespace/nsparse.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsparse.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nssearch.c b/drivers/acpi/namespace/nssearch.c --- a/drivers/acpi/namespace/nssearch.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nssearch.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsutils.c b/drivers/acpi/namespace/nsutils.c --- a/drivers/acpi/namespace/nsutils.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsutils.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nswalk.c b/drivers/acpi/namespace/nswalk.c --- a/drivers/acpi/namespace/nswalk.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nswalk.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsxfeval.c b/drivers/acpi/namespace/nsxfeval.c --- a/drivers/acpi/namespace/nsxfeval.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsxfeval.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsxfname.c b/drivers/acpi/namespace/nsxfname.c --- a/drivers/acpi/namespace/nsxfname.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsxfname.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/namespace/nsxfobj.c b/drivers/acpi/namespace/nsxfobj.c --- a/drivers/acpi/namespace/nsxfobj.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/namespace/nsxfobj.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/parser/psargs.c b/drivers/acpi/parser/psargs.c --- a/drivers/acpi/parser/psargs.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/psargs.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/parser/psopcode.c b/drivers/acpi/parser/psopcode.c --- a/drivers/acpi/parser/psopcode.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/psopcode.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -322,7 +322,7 @@ #define ARGI_SLEEP_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_STALL_OP ARGI_LIST1 (ARGI_INTEGER) #define ARGI_STATICSTRING_OP ARGI_INVALID_OPCODE -#define ARGI_STORE_OP ARGI_LIST2 (ARGI_ANYTYPE, ARGI_TARGETREF) +#define ARGI_STORE_OP ARGI_LIST2 (ARGI_DATAREFOBJ, ARGI_TARGETREF) #define ARGI_STRING_OP ARGI_INVALID_OPCODE #define ARGI_SUBTRACT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) #define ARGI_THERMAL_ZONE_OP ARGI_INVALID_OPCODE diff -Nru a/drivers/acpi/parser/psparse.c b/drivers/acpi/parser/psparse.c --- a/drivers/acpi/parser/psparse.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/psparse.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/parser/psscope.c b/drivers/acpi/parser/psscope.c --- a/drivers/acpi/parser/psscope.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/psscope.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/parser/pstree.c b/drivers/acpi/parser/pstree.c --- a/drivers/acpi/parser/pstree.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/pstree.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/parser/psutils.c b/drivers/acpi/parser/psutils.c --- a/drivers/acpi/parser/psutils.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/psutils.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -208,6 +208,7 @@ } +#ifdef ACPI_ENABLE_OBJECT_CACHE /******************************************************************************* * * FUNCTION: acpi_ps_delete_parse_cache @@ -231,6 +232,7 @@ acpi_ut_delete_generic_cache (ACPI_MEM_LIST_PSNODE_EXT); return_VOID; } +#endif /******************************************************************************* diff -Nru a/drivers/acpi/parser/pswalk.c b/drivers/acpi/parser/pswalk.c --- a/drivers/acpi/parser/pswalk.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/pswalk.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/parser/psxface.c b/drivers/acpi/parser/psxface.c --- a/drivers/acpi/parser/psxface.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/parser/psxface.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c --- a/drivers/acpi/processor_idle.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/processor_idle.c 2005-01-28 14:17:17 -08:00 @@ -60,6 +60,15 @@ static unsigned int nocst = 0; module_param(nocst, uint, 0000); +/* + * bm_history -- bit-mask with a bit per jiffy of bus-master activity + * 1000 HZ: 0xFFFFFFFF: 32 jiffies = 32ms + * 800 HZ: 0xFFFFFFFF: 32 jiffies = 40ms + * 100 HZ: 0x0000000F: 4 jiffies = 40ms + * reduce history for more aggressive entry into C3 + */ +static unsigned int bm_history = (HZ >= 800 ? 0xFFFFFFFF : ((1U << (HZ / 25)) - 1)); +module_param(bm_history, uint, 0644); /* -------------------------------------------------------------------------- Power Management -------------------------------------------------------------------------- */ @@ -193,8 +202,18 @@ */ if (pr->flags.bm_check) { u32 bm_status = 0; + unsigned long diff = jiffies - pr->power.bm_check_timestamp; + + if (diff > 32) + diff = 32; - pr->power.bm_activity <<= 1; + while (diff) { + /* if we didn't get called, assume there was busmaster activity */ + diff--; + if (diff) + pr->power.bm_activity |= 0x1; + pr->power.bm_activity <<= 1; + } acpi_get_register(ACPI_BITREG_BUS_MASTER_STATUS, &bm_status, ACPI_MTX_DO_NOT_LOCK); @@ -213,6 +232,9 @@ || (inb_p(errata.piix4.bmisx + 0x0A) & 0x01)) pr->power.bm_activity++; } + + pr->power.bm_check_timestamp = jiffies; + /* * Apply bus mastering demotion policy. Automatically demote * to avoid a faulty transition. Note that the processor @@ -425,7 +447,7 @@ cx->demotion.threshold.ticks = cx->latency_ticks; cx->demotion.threshold.count = 1; if (cx->type == ACPI_STATE_C3) - cx->demotion.threshold.bm = 0x0F; + cx->demotion.threshold.bm = bm_history; } lower = cx; @@ -445,7 +467,7 @@ else cx->promotion.threshold.count = 10; if (higher->type == ACPI_STATE_C3) - cx->promotion.threshold.bm = 0x0F; + cx->promotion.threshold.bm = bm_history; } higher = cx; diff -Nru a/drivers/acpi/resources/rsaddr.c b/drivers/acpi/resources/rsaddr.c --- a/drivers/acpi/resources/rsaddr.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsaddr.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rscalc.c b/drivers/acpi/resources/rscalc.c --- a/drivers/acpi/resources/rscalc.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rscalc.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rscreate.c b/drivers/acpi/resources/rscreate.c --- a/drivers/acpi/resources/rscreate.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rscreate.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rsdump.c b/drivers/acpi/resources/rsdump.c --- a/drivers/acpi/resources/rsdump.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsdump.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rsio.c b/drivers/acpi/resources/rsio.c --- a/drivers/acpi/resources/rsio.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsio.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rsirq.c b/drivers/acpi/resources/rsirq.c --- a/drivers/acpi/resources/rsirq.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsirq.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rslist.c b/drivers/acpi/resources/rslist.c --- a/drivers/acpi/resources/rslist.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rslist.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rsmemory.c b/drivers/acpi/resources/rsmemory.c --- a/drivers/acpi/resources/rsmemory.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsmemory.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rsmisc.c b/drivers/acpi/resources/rsmisc.c --- a/drivers/acpi/resources/rsmisc.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsmisc.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/resources/rsutils.c b/drivers/acpi/resources/rsutils.c --- a/drivers/acpi/resources/rsutils.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsutils.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -339,6 +339,13 @@ * Execute the method, no return value */ status = acpi_ns_evaluate_relative ("_SRS", &info); + if (ACPI_SUCCESS (status)) { + /* Delete any return object (especially if implicit_return is enabled) */ + + if (info.return_object) { + acpi_ut_remove_reference (info.return_object); + } + } /* * Clean up and return the status from acpi_ns_evaluate_relative diff -Nru a/drivers/acpi/resources/rsxface.c b/drivers/acpi/resources/rsxface.c --- a/drivers/acpi/resources/rsxface.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/resources/rsxface.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbconvrt.c b/drivers/acpi/tables/tbconvrt.c --- a/drivers/acpi/tables/tbconvrt.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbconvrt.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbget.c b/drivers/acpi/tables/tbget.c --- a/drivers/acpi/tables/tbget.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbget.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbgetall.c b/drivers/acpi/tables/tbgetall.c --- a/drivers/acpi/tables/tbgetall.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbgetall.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbinstal.c b/drivers/acpi/tables/tbinstal.c --- a/drivers/acpi/tables/tbinstal.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbinstal.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbrsdt.c b/drivers/acpi/tables/tbrsdt.c --- a/drivers/acpi/tables/tbrsdt.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbrsdt.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbutils.c b/drivers/acpi/tables/tbutils.c --- a/drivers/acpi/tables/tbutils.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbutils.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbxface.c b/drivers/acpi/tables/tbxface.c --- a/drivers/acpi/tables/tbxface.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbxface.c 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/tables/tbxfroot.c b/drivers/acpi/tables/tbxfroot.c --- a/drivers/acpi/tables/tbxfroot.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/tables/tbxfroot.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -114,8 +114,10 @@ /* Check oem_id and oem_table_id */ - if ((oem_id[0] && ACPI_STRCMP (oem_id, table->oem_id)) || - (oem_table_id[0] && ACPI_STRCMP (oem_table_id, table->oem_table_id))) { + if ((oem_id[0] && ACPI_STRNCMP ( + oem_id, table->oem_id, sizeof (table->oem_id))) || + (oem_table_id[0] && ACPI_STRNCMP ( + oem_table_id, table->oem_table_id, sizeof (table->oem_table_id)))) { return_ACPI_STATUS (AE_AML_NAME_NOT_FOUND); } @@ -358,7 +360,8 @@ status = acpi_tb_find_rsdp (&table_info, flags); if (ACPI_FAILURE (status)) { - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "RSDP structure not found, %s Flags=%X\n", + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + "RSDP structure not found, %s Flags=%X\n", acpi_format_exception (status), flags)); return_ACPI_STATUS (AE_NO_ACPI_TABLES); } @@ -411,7 +414,7 @@ /* Signature matches, check the appropriate checksum */ - if (((struct rsdp_descriptor *) mem_rover)->revision < 2) { + if ((ACPI_CAST_PTR (struct rsdp_descriptor, mem_rover))->revision < 2) { /* ACPI version 1.0 */ checksum = acpi_tb_checksum (mem_rover, ACPI_RSDP_CHECKSUM_LENGTH); @@ -490,7 +493,8 @@ ACPI_EBDA_PTR_LENGTH, (void *) &table_ptr); if (ACPI_FAILURE (status)) { - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Could not map memory at %8.8X for length %X\n", + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + "Could not map memory at %8.8X for length %X\n", ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH)); return_ACPI_STATUS (status); } @@ -509,7 +513,8 @@ ACPI_EBDA_WINDOW_SIZE, (void *) &table_ptr); if (ACPI_FAILURE (status)) { - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Could not map memory at %8.8X for length %X\n", + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + "Could not map memory at %8.8X for length %X\n", physical_address, ACPI_EBDA_WINDOW_SIZE)); return_ACPI_STATUS (status); } @@ -534,7 +539,8 @@ ACPI_HI_RSDP_WINDOW_SIZE, (void *) &table_ptr); if (ACPI_FAILURE (status)) { - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Could not map memory at %8.8X for length %X\n", + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + "Could not map memory at %8.8X for length %X\n", ACPI_HI_RSDP_WINDOW_BASE, ACPI_HI_RSDP_WINDOW_SIZE)); return_ACPI_STATUS (status); } diff -Nru a/drivers/acpi/utilities/utalloc.c b/drivers/acpi/utilities/utalloc.c --- a/drivers/acpi/utilities/utalloc.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utalloc.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -73,9 +73,12 @@ ACPI_FUNCTION_ENTRY (); + cache_info = &acpi_gbl_memory_lists[list_id]; + +#ifdef ACPI_ENABLE_OBJECT_CACHE + /* If walk cache is full, just free this wallkstate object */ - cache_info = &acpi_gbl_memory_lists[list_id]; if (cache_info->cache_depth >= cache_info->max_cache_depth) { ACPI_MEM_FREE (object); ACPI_MEM_TRACKING (cache_info->total_freed++); @@ -101,6 +104,14 @@ (void) acpi_ut_release_mutex (ACPI_MTX_CACHES); } + +#else + + /* Object cache is disabled; just free the object */ + + ACPI_MEM_FREE (object); + ACPI_MEM_TRACKING (cache_info->total_freed++); +#endif } @@ -130,6 +141,9 @@ cache_info = &acpi_gbl_memory_lists[list_id]; + +#ifdef ACPI_ENABLE_OBJECT_CACHE + if (ACPI_FAILURE (acpi_ut_acquire_mutex (ACPI_MTX_CACHES))) { return (NULL); } @@ -174,10 +188,19 @@ ACPI_MEM_TRACKING (cache_info->total_allocated++); } +#else + + /* Object cache is disabled; just allocate the object */ + + object = ACPI_MEM_CALLOCATE (cache_info->object_size); + ACPI_MEM_TRACKING (cache_info->total_allocated++); +#endif + return (object); } +#ifdef ACPI_ENABLE_OBJECT_CACHE /****************************************************************************** * * FUNCTION: acpi_ut_delete_generic_cache @@ -212,6 +235,7 @@ cache_info->cache_depth--; } } +#endif /******************************************************************************* diff -Nru a/drivers/acpi/utilities/utcopy.c b/drivers/acpi/utilities/utcopy.c --- a/drivers/acpi/utilities/utcopy.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utcopy.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/utilities/utdebug.c b/drivers/acpi/utilities/utdebug.c --- a/drivers/acpi/utilities/utdebug.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utdebug.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/utilities/utdelete.c b/drivers/acpi/utilities/utdelete.c --- a/drivers/acpi/utilities/utdelete.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utdelete.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/utilities/uteval.c b/drivers/acpi/utilities/uteval.c --- a/drivers/acpi/utilities/uteval.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/uteval.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -198,6 +198,17 @@ break; } + if ((acpi_gbl_enable_interpreter_slack) && + (!expected_return_btypes)) { + /* + * We received a return object, but one was not expected. This can + * happen frequently if the "implicit return" feature is enabled. + * Just delete the return object and return AE_OK. + */ + acpi_ut_remove_reference (info.return_object); + return_ACPI_STATUS (AE_OK); + } + /* Is the return object one of the expected types? */ if (!(expected_return_btypes & return_btype)) { @@ -205,8 +216,9 @@ prefix_node, path, AE_TYPE); ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, - "Type returned from %s was incorrect: %X\n", - path, ACPI_GET_OBJECT_TYPE (info.return_object))); + "Type returned from %s was incorrect: %s, expected Btypes: %X\n", + path, acpi_ut_get_object_type_name (info.return_object), + expected_return_btypes)); /* On error exit, we must delete the return object */ diff -Nru a/drivers/acpi/utilities/utglobal.c b/drivers/acpi/utilities/utglobal.c --- a/drivers/acpi/utilities/utglobal.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utglobal.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -219,6 +219,8 @@ * NOTES: * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run * during the initialization sequence. + * 2) _TZ_ is defined to be a thermal zone in order to allow ASL code to + * perform a Notify() operation on it. */ const struct acpi_predefined_names acpi_gbl_pre_defined_names[] = { {"_GPE", ACPI_TYPE_LOCAL_SCOPE, NULL}, @@ -226,12 +228,12 @@ {"_SB_", ACPI_TYPE_DEVICE, NULL}, {"_SI_", ACPI_TYPE_LOCAL_SCOPE, NULL}, {"_TZ_", ACPI_TYPE_THERMAL, NULL}, - {"_REV", ACPI_TYPE_INTEGER, "2"}, + {"_REV", ACPI_TYPE_INTEGER, (char *) ACPI_CA_SUPPORT_LEVEL}, {"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME}, - {"_GL_", ACPI_TYPE_MUTEX, "0"}, + {"_GL_", ACPI_TYPE_MUTEX, (char *) 1}, #if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY) - {"_OSI", ACPI_TYPE_METHOD, "1"}, + {"_OSI", ACPI_TYPE_METHOD, (char *) 1}, #endif {NULL, ACPI_TYPE_ANY, NULL} /* Table terminator */ }; diff -Nru a/drivers/acpi/utilities/utinit.c b/drivers/acpi/utilities/utinit.c --- a/drivers/acpi/utilities/utinit.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utinit.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/utilities/utmath.c b/drivers/acpi/utilities/utmath.c --- a/drivers/acpi/utilities/utmath.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utmath.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/drivers/acpi/utilities/utmisc.c b/drivers/acpi/utilities/utmisc.c --- a/drivers/acpi/utilities/utmisc.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utmisc.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ ******************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -422,6 +422,12 @@ string++; } + /* Any string left? */ + + if (!(*string)) { + goto error_exit; + } + /* Main loop: convert the string to a 64-bit integer */ while (*string) { @@ -672,7 +678,6 @@ acpi_mutex_handle mutex_id) { acpi_status status; - u32 i; u32 this_thread_id; @@ -685,30 +690,37 @@ this_thread_id = acpi_os_get_thread_id (); - /* - * Deadlock prevention. Check if this thread owns any mutexes of value - * greater than or equal to this one. If so, the thread has violated - * the mutex ordering rule. This indicates a coding error somewhere in - * the ACPI subsystem code. - */ - for (i = mutex_id; i < MAX_MUTEX; i++) { - if (acpi_gbl_mutex_info[i].owner_id == this_thread_id) { - if (i == mutex_id) { - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, - "Mutex [%s] already acquired by this thread [%X]\n", - acpi_ut_get_mutex_name (mutex_id), this_thread_id)); +#ifdef ACPI_MUTEX_DEBUG + { + u32 i; + /* + * Mutex debug code, for internal debugging only. + * + * Deadlock prevention. Check if this thread owns any mutexes of value + * greater than or equal to this one. If so, the thread has violated + * the mutex ordering rule. This indicates a coding error somewhere in + * the ACPI subsystem code. + */ + for (i = mutex_id; i < MAX_MUTEX; i++) { + if (acpi_gbl_mutex_info[i].owner_id == this_thread_id) { + if (i == mutex_id) { + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + "Mutex [%s] already acquired by this thread [%X]\n", + acpi_ut_get_mutex_name (mutex_id), this_thread_id)); - return (AE_ALREADY_ACQUIRED); - } + return (AE_ALREADY_ACQUIRED); + } - ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, - "Invalid acquire order: Thread %X owns [%s], wants [%s]\n", - this_thread_id, acpi_ut_get_mutex_name (i), - acpi_ut_get_mutex_name (mutex_id))); + ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, + "Invalid acquire order: Thread %X owns [%s], wants [%s]\n", + this_thread_id, acpi_ut_get_mutex_name (i), + acpi_ut_get_mutex_name (mutex_id))); - return (AE_ACQUIRE_DEADLOCK); + return (AE_ACQUIRE_DEADLOCK); + } } } +#endif ACPI_DEBUG_PRINT ((ACPI_DB_MUTEX, "Thread %X attempting to acquire Mutex [%s]\n", @@ -1187,6 +1199,7 @@ } +#ifdef ACPI_ENABLE_OBJECT_CACHE /******************************************************************************* * * FUNCTION: acpi_ut_delete_generic_state_cache @@ -1210,6 +1223,7 @@ acpi_ut_delete_generic_cache (ACPI_MEM_LIST_STATE); return_VOID; } +#endif /******************************************************************************* diff -Nru a/drivers/acpi/utilities/utobject.c b/drivers/acpi/utilities/utobject.c --- a/drivers/acpi/utilities/utobject.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utobject.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -368,6 +368,7 @@ } +#ifdef ACPI_ENABLE_OBJECT_CACHE /******************************************************************************* * * FUNCTION: acpi_ut_delete_object_cache @@ -391,6 +392,7 @@ acpi_ut_delete_generic_cache (ACPI_MEM_LIST_OPERAND); return_VOID; } +#endif /******************************************************************************* diff -Nru a/drivers/acpi/utilities/utxface.c b/drivers/acpi/utilities/utxface.c --- a/drivers/acpi/utilities/utxface.c 2005-01-28 14:17:17 -08:00 +++ b/drivers/acpi/utilities/utxface.c 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -514,10 +514,12 @@ ACPI_FUNCTION_TRACE ("acpi_purge_cached_objects"); +#ifdef ACPI_ENABLE_OBJECT_CACHE acpi_ut_delete_generic_state_cache (); acpi_ut_delete_object_cache (); acpi_ds_delete_walk_state_cache (); acpi_ps_delete_parse_cache (); +#endif return_ACPI_STATUS (AE_OK); } diff -Nru a/include/acpi/acconfig.h b/include/acpi/acconfig.h --- a/include/acpi/acconfig.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acconfig.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -64,7 +64,7 @@ /* Version string */ -#define ACPI_CA_VERSION 0x20041210 +#define ACPI_CA_VERSION 0x20050125 /* * OS name, used for the _OS object. The _OS object is essentially obsolete, diff -Nru a/include/acpi/acdebug.h b/include/acpi/acdebug.h --- a/include/acpi/acdebug.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acdebug.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acdisasm.h b/include/acpi/acdisasm.h --- a/include/acpi/acdisasm.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acdisasm.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acdispat.h b/include/acpi/acdispat.h --- a/include/acpi/acdispat.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acdispat.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -484,9 +484,11 @@ acpi_ds_get_current_walk_state ( struct acpi_thread_state *thread); +#ifdef ACPI_ENABLE_OBJECT_CACHE void acpi_ds_delete_walk_state_cache ( void); +#endif #ifdef ACPI_FUTURE_USAGE acpi_status diff -Nru a/include/acpi/acevents.h b/include/acpi/acevents.h --- a/include/acpi/acevents.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acevents.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acexcep.h b/include/acpi/acexcep.h --- a/include/acpi/acexcep.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acexcep.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acglobal.h b/include/acpi/acglobal.h --- a/include/acpi/acglobal.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acglobal.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -96,6 +96,7 @@ * 1) Allow "implicit return" of last value in a control method * 2) Allow access beyond end of operation region * 3) Allow access to uninitialized locals/args (auto-init to integer 0) + * 4) Allow ANY object type to be a source operand for the Store() operator */ ACPI_EXTERN u8 ACPI_INIT_GLOBAL (acpi_gbl_enable_interpreter_slack, FALSE); diff -Nru a/include/acpi/achware.h b/include/acpi/achware.h --- a/include/acpi/achware.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/achware.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acinterp.h b/include/acpi/acinterp.h --- a/include/acpi/acinterp.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acinterp.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/aclocal.h b/include/acpi/aclocal.h --- a/include/acpi/aclocal.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/aclocal.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acmacros.h b/include/acpi/acmacros.h --- a/include/acpi/acmacros.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acmacros.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acnamesp.h b/include/acpi/acnamesp.h --- a/include/acpi/acnamesp.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acnamesp.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acobject.h b/include/acpi/acobject.h --- a/include/acpi/acobject.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acobject.h 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acoutput.h b/include/acpi/acoutput.h --- a/include/acpi/acoutput.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acoutput.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acparser.h b/include/acpi/acparser.h --- a/include/acpi/acparser.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acparser.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -303,9 +303,11 @@ acpi_ps_free_op ( union acpi_parse_object *op); +#ifdef ACPI_ENABLE_OBJECT_CACHE void acpi_ps_delete_parse_cache ( void); +#endif u8 acpi_ps_is_leading_char ( diff -Nru a/include/acpi/acpi.h b/include/acpi/acpi.h --- a/include/acpi/acpi.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acpi.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h --- a/include/acpi/acpiosxf.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acpiosxf.h 2005-01-28 14:17:17 -08:00 @@ -9,7 +9,7 @@ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acpixf.h b/include/acpi/acpixf.h --- a/include/acpi/acpixf.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acpixf.h 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acresrc.h b/include/acpi/acresrc.h --- a/include/acpi/acresrc.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acresrc.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acstruct.h b/include/acpi/acstruct.h --- a/include/acpi/acstruct.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acstruct.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/actables.h b/include/acpi/actables.h --- a/include/acpi/actables.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/actables.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/actbl.h b/include/acpi/actbl.h --- a/include/acpi/actbl.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/actbl.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/actbl1.h b/include/acpi/actbl1.h --- a/include/acpi/actbl1.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/actbl1.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/actbl2.h b/include/acpi/actbl2.h --- a/include/acpi/actbl2.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/actbl2.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/actypes.h b/include/acpi/actypes.h --- a/include/acpi/actypes.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/actypes.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/acutils.h b/include/acpi/acutils.h --- a/include/acpi/acutils.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/acutils.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -683,6 +683,7 @@ acpi_ut_delete_generic_state ( union acpi_generic_state *state); +#ifdef ACPI_ENABLE_OBJECT_CACHE void acpi_ut_delete_generic_state_cache ( void); @@ -690,6 +691,7 @@ void acpi_ut_delete_object_cache ( void); +#endif /* * utmisc @@ -778,9 +780,11 @@ u32 list_id, void *object); +#ifdef ACPI_ENABLE_OBJECT_CACHE void acpi_ut_delete_generic_cache ( u32 list_id); +#endif acpi_status acpi_ut_validate_buffer ( diff -Nru a/include/acpi/amlcode.h b/include/acpi/amlcode.h --- a/include/acpi/amlcode.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/amlcode.h 2005-01-28 14:17:17 -08:00 @@ -7,7 +7,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -278,6 +278,7 @@ #define ARGI_COMPLEXOBJ 0x13 /* Buffer, String, or package (Used by INDEX op only) */ #define ARGI_REF_OR_STRING 0x14 /* Reference or String (Used by DEREFOF op only) */ #define ARGI_REGION_OR_FIELD 0x15 /* Used by LOAD op only */ +#define ARGI_DATAREFOBJ 0x16 /* Note: types above can expand to 0x1F maximum */ diff -Nru a/include/acpi/amlresrc.h b/include/acpi/amlresrc.h --- a/include/acpi/amlresrc.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/amlresrc.h 2005-01-28 14:17:17 -08:00 @@ -6,7 +6,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h --- a/include/acpi/platform/acenv.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/platform/acenv.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -57,6 +57,7 @@ #define ACPI_DISASSEMBLER #define ACPI_NO_METHOD_EXECUTION #define ACPI_USE_SYSTEM_CLIBRARY +#define ACPI_ENABLE_OBJECT_CACHE #endif #ifdef _ACPI_EXEC_APP @@ -67,6 +68,7 @@ #define ACPI_DEBUGGER #define ACPI_DISASSEMBLER #define ACPI_USE_SYSTEM_CLIBRARY +#define ACPI_ENABLE_OBJECT_CACHE #endif #ifdef _ACPI_ASL_COMPILER @@ -75,6 +77,7 @@ #define ACPI_DISASSEMBLER #define ACPI_CONSTANT_EVAL_ONLY #define ACPI_USE_SYSTEM_CLIBRARY +#define ACPI_ENABLE_OBJECT_CACHE #endif /* diff -Nru a/include/acpi/platform/acgcc.h b/include/acpi/platform/acgcc.h --- a/include/acpi/platform/acgcc.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/platform/acgcc.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h --- a/include/acpi/platform/aclinux.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/platform/aclinux.h 2005-01-28 14:17:17 -08:00 @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2004, R. Byron Moore + * Copyright (C) 2000 - 2005, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff -Nru a/include/acpi/processor.h b/include/acpi/processor.h --- a/include/acpi/processor.h 2005-01-28 14:17:17 -08:00 +++ b/include/acpi/processor.h 2005-01-28 14:17:17 -08:00 @@ -54,6 +54,7 @@ struct acpi_processor_power { struct acpi_processor_cx *state; + unsigned long bm_check_timestamp; u32 default_state; u32 bm_activity; int count;