changes.txt revision 206117
1117521Snjl----------------------------------------
2206117Sjkim31 March 2010. Summary of changes for version 20100331:
3206117Sjkim
4206117Sjkim1) ACPI CA Core Subsystem:
5206117Sjkim
6206117SjkimCompleted a major update for the GPE support in order to improve support for 
7206117Sjkimshared GPEs and to simplify both host OS and ACPICA code. Added a reference 
8206117Sjkimcount mechanism to support shared GPEs that require multiple device drivers. 
9206117SjkimSeveral external interfaces have changed. One external interface has been 
10206117Sjkimremoved. One new external interface was added. Most of the GPE external 
11206117Sjkiminterfaces now use the GPE spinlock instead of the events mutex (and the 
12206117SjkimFlags parameter for many GPE interfaces has been removed.) See the updated 
13206117SjkimACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael 
14206117SjkimWysocki. ACPICA BZ 831.
15206117Sjkim
16206117SjkimChanged:
17206117Sjkim    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
18206117SjkimRemoved:
19206117Sjkim    AcpiSetGpeType
20206117SjkimNew:
21206117Sjkim    AcpiSetGpe
22206117Sjkim
23206117SjkimImplemented write support for DataTable operation regions. These regions are 
24206117Sjkimdefined via the DataTableRegion() operator. Previously, only read support was 
25206117Sjkimimplemented. The ACPI specification allows DataTableRegions to be read/write, 
26206117Sjkimhowever.
27206117Sjkim
28206117SjkimImplemented a new subsystem option to force a copy of the DSDT to local 
29206117Sjkimmemory. Optionally copy the entire DSDT to local memory (instead of simply 
30206117Sjkimmapping it.) There are some (albeit very rare) BIOSs that corrupt or replace 
31206117Sjkimthe original DSDT, creating the need for this option. Default is FALSE, do 
32206117Sjkimnot copy the DSDT.
33206117Sjkim
34206117SjkimImplemented detection of a corrupted or replaced DSDT. This change adds 
35206117Sjkimsupport to detect a DSDT that has been corrupted and/or replaced from outside 
36206117Sjkimthe OS (by firmware). This is typically catastrophic for the system, but has 
37206117Sjkimbeen seen on some machines. Once this problem has been detected, the DSDT 
38206117Sjkimcopy option can be enabled via system configuration. Lin Ming, Bob Moore.
39206117Sjkim
40206117SjkimFixed two problems with AcpiReallocateRootTable during the root table copy. 
41206117SjkimWhen copying the root table to the new allocation, the length used was 
42206117Sjkimincorrect. The new size was used instead of the current table size, meaning 
43206117Sjkimtoo much data was copied. Also, the count of available slots for ACPI tables 
44206117Sjkimwas not set correctly. Alexey Starikovskiy, Bob Moore.
45206117Sjkim
46206117SjkimExample Code and Data Size: These are the sizes for the OS-independent 
47206117Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
48206117Sjkimdebug version of the code includes the debug output trace mechanism and has a 
49206117Sjkimmuch larger code and data size.
50206117Sjkim
51206117Sjkim  Previous Release:
52206117Sjkim    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
53206117Sjkim    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
54206117Sjkim  Current Release:
55206117Sjkim    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
56206117Sjkim    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
57206117Sjkim
58206117Sjkim2) iASL Compiler/Disassembler and Tools:
59206117Sjkim
60206117SjkimiASL: Implement limited typechecking for values returned from predefined 
61206117Sjkimcontrol methods. The type of any returned static (unnamed) object is now 
62206117Sjkimvalidated. For example, Return(1). ACPICA BZ 786.
63206117Sjkim
64206117SjkimiASL: Fixed a predefined name object verification regression. Fixes a problem 
65206117Sjkimintroduced in version 20100304. An error is incorrectly generated if a 
66206117Sjkimpredefined name is declared as a static named object with a value defined 
67206117Sjkimusing the keywords "Zero", "One", or "Ones". Lin Ming.
68206117Sjkim
69206117SjkimiASL: Added Windows 7 support for the -g option (get local ACPI tables) by 
70206117Sjkimreducing the requested registry access rights. ACPICA BZ 842.
71206117Sjkim
72206117SjkimDisassembler: fixed a possible fault when generating External() statements. 
73206117SjkimIntroduced in commit ae7d6fd: Properly handle externals with parent-prefix 
74206117Sjkim(carat). Fixes a string length allocation calculation. Lin Ming.
75206117Sjkim
76206117Sjkim----------------------------------------
77204773Sjkim04 March 2010. Summary of changes for version 20100304:
78204773Sjkim
79204773Sjkim1) ACPI CA Core Subsystem:
80204773Sjkim
81204773SjkimFixed a possible problem with the AML Mutex handling function 
82204773SjkimAcpiExReleaseMutex where the function could fault under the very rare 
83204773Sjkimcondition when the interpreter has blocked, the interpreter lock is released, 
84204773Sjkimthe interpreter is then reentered via the same thread, and attempts to 
85204773Sjkimacquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin 
86204773SjkimMing.
87204773Sjkim
88204773SjkimImplemented additional configuration support for the AML "Debug Object". 
89204773SjkimOutput from the debug object can now be enabled via a global variable, 
90204773SjkimAcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. 
91204773SjkimThis debug output is now available in the release version of ACPICA instead 
92204773Sjkimof just the debug version. Also, the entire debug output module can now be 
93204773Sjkimconfigured out of the ACPICA build if desired. One new file added, 
94204773Sjkimexecuter/exdebug.c. Lin Ming, Bob Moore.
95204773Sjkim
96204773SjkimAdded header support for the ACPI MCHI table (Management Controller Host 
97204773SjkimInterface Table). This table was added in ACPI 4.0, but the defining document 
98204773Sjkimhas only recently become available.
99204773Sjkim
100204773SjkimStandardized output of integer values for ACPICA warnings/errors. Always use 
101204773Sjkim0x prefix for hex output, always use %u for unsigned integer decimal output. 
102204773SjkimAffects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 
103204773Sjkiminvocations.) These invocations were converted from the original 
104204773SjkimACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
105204773Sjkim
106204773SjkimExample Code and Data Size: These are the sizes for the OS-independent 
107204773Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
108204773Sjkimdebug version of the code includes the debug output trace mechanism and has a 
109204773Sjkimmuch larger code and data size.
110204773Sjkim
111204773Sjkim  Previous Release:
112204773Sjkim    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
113204773Sjkim    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
114204773Sjkim  Current Release:
115204773Sjkim    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
116204773Sjkim    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
117204773Sjkim
118204773Sjkim2) iASL Compiler/Disassembler and Tools:
119204773Sjkim
120204773SjkimiASL: Implemented typechecking support for static (non-control method) 
121204773Sjkimpredefined named objects that are declared with the Name() operator. For 
122204773Sjkimexample, the type of this object is now validated to be of type Integer: 
123204773SjkimName(_BBN, 1). This change migrates the compiler to using the core predefined 
124204773Sjkimname table instead of maintaining a local version. Added a new file, 
125204773Sjkimaslpredef.c. ACPICA BZ 832.
126204773Sjkim
127204773SjkimDisassembler: Added support for the ACPI 4.0 MCHI table.
128204773Sjkim
129204773Sjkim----------------------------------------
130202771Sjkim21 January 2010. Summary of changes for version 20100121:
131202771Sjkim
132202771Sjkim1) ACPI CA Core Subsystem:
133202771Sjkim
134202771SjkimAdded the 2010 copyright to all module headers and signons. This affects 
135202771Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, the 
136202771Sjkimtools/utilities, and the test suites.
137202771Sjkim
138202771SjkimImplemented a change to the AcpiGetDevices interface to eliminate unnecessary 
139202771Sjkiminvocations of the _STA method. In the case where a specific _HID is 
140202771Sjkimrequested, do not run _STA until a _HID match is found. This eliminates 
141202771Sjkimpotentially dozens of _STA calls during a search for a particular device/HID, 
142202771Sjkimwhich in turn can improve boot times. ACPICA BZ 828. Lin Ming.
143202771Sjkim
144202771SjkimImplemented an additional repair for predefined method return values. Attempt 
145202771Sjkimto repair unexpected NULL elements within returned Package objects. Create an 
146202771SjkimInteger of value zero, a NULL String, or a zero-length Buffer as appropriate. 
147202771SjkimACPICA BZ 818. Lin Ming, Bob Moore.
148202771Sjkim
149202771SjkimRemoved the obsolete ACPI_INTEGER data type. This type was introduced as the 
150202771Sjkimcode was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 
151202771Sjkim64-bit AML integers). It is now obsolete and this change removes it from the 
152202771SjkimACPICA code base, replaced by UINT64. The original typedef has been retained 
153202771Sjkimfor now for compatibility with existing device driver code. ACPICA BZ 824.
154202771Sjkim
155202771SjkimRemoved the unused UINT32_STRUCT type, and the obsolete Integer64 field in 
156202771Sjkimthe parse tree object.
157202771Sjkim
158202771SjkimAdded additional warning options for the gcc-4 generation. Updated the source 
159202771Sjkimaccordingly. This includes some code restructuring to eliminate unreachable 
160202771Sjkimcode, elimination of some gotos, elimination of unused return values, some 
161202771Sjkimadditional casting, and removal of redundant declarations.
162202771Sjkim
163202771SjkimExample Code and Data Size: These are the sizes for the OS-independent 
164202771Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
165202771Sjkimdebug version of the code includes the debug output trace mechanism and has a 
166202771Sjkimmuch larger code and data size.
167202771Sjkim
168202771Sjkim  Previous Release:
169202771Sjkim    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
170202771Sjkim    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
171202771Sjkim  Current Release:
172202771Sjkim    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
173202771Sjkim    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
174202771Sjkim
175202771Sjkim2) iASL Compiler/Disassembler and Tools:
176202771Sjkim
177202771SjkimNo functional changes for this release.
178202771Sjkim
179202771Sjkim----------------------------------------
180200553Sjkim14 December 2009. Summary of changes for version 20091214:
181200553Sjkim
182200553Sjkim1) ACPI CA Core Subsystem:
183200553Sjkim
184200553SjkimEnhanced automatic data type conversions for predefined name repairs. This 
185200553Sjkimchange expands the automatic repairs/conversions for predefined name return 
186200553Sjkimvalues to make Integers, Strings, and Buffers fully interchangeable. Also, a 
187200553SjkimBuffer can be converted to a Package of Integers if necessary. The nsrepair.c 
188200553Sjkimmodule was completely restructured. Lin Ming, Bob Moore.
189200553Sjkim
190200553SjkimImplemented automatic removal of null package elements during predefined name 
191200553Sjkimrepairs. This change will automatically remove embedded and trailing NULL 
192200553Sjkimpackage elements from returned package objects that are defined to contain a 
193200553Sjkimvariable number of sub-packages. The driver is then presented with a package 
194200553Sjkimwith no null elements to deal with. ACPICA BZ 819.
195200553Sjkim
196200553SjkimImplemented a repair for the predefined _FDE and _GTM names. The expected 
197200553Sjkimreturn value for both names is a Buffer of 5 DWORDs. This repair fixes two 
198200553Sjkimpossible problems (both seen in the field), where a package of integers is 
199200553Sjkimreturned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim.
200200553Sjkim
201200553SjkimImplemented additional module-level code support. This change will properly 
202200553Sjkimexecute module-level code that is not at the root of the namespace (under a 
203200553SjkimDevice object, etc.). Now executes the code within the current scope instead 
204200553Sjkimof the root. ACPICA BZ 762. Lin Ming.
205200553Sjkim
206200553SjkimFixed possible mutex acquisition errors when running _REG methods. Fixes a 
207200553Sjkimproblem where mutex errors can occur when running a _REG method that is in 
208200553Sjkimthe same scope as a method-defined operation region or an operation region 
209200553Sjkimunder a module-level IF block. This type of code is rare, so the problem has 
210200553Sjkimnot been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
211200553Sjkim
212200553SjkimFixed a possible memory leak during module-level code execution. An object 
213200553Sjkimcould be leaked for each block of executed module-level code if the 
214200553Sjkiminterpreter slack mode is enabled This change deletes any implicitly returned 
215200553Sjkimobject from the module-level code block. Lin Ming.
216200553Sjkim
217200553SjkimRemoved messages for successful predefined repair(s). The repair mechanism 
218200553Sjkimwas considered too wordy. Now, messages are only unconditionally emitted if 
219200553Sjkimthe return object cannot be repaired. Existing messages for successful 
220200553Sjkimrepairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827.
221200553Sjkim
222200553SjkimExample Code and Data Size: These are the sizes for the OS-independent 
223200553Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
224200553Sjkimdebug version of the code includes the debug output trace mechanism and has a 
225200553Sjkimmuch larger code and data size.
226200553Sjkim
227200553Sjkim  Previous Release:
228200553Sjkim    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
229200553Sjkim    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
230200553Sjkim  Current Release:
231200553Sjkim    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
232200553Sjkim    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
233200553Sjkim
234200553Sjkim2) iASL Compiler/Disassembler and Tools:
235200553Sjkim
236200553SjkimiASL: Fixed a regression introduced in 20091112 where intermediate .SRC files 
237200553Sjkimwere no longer automatically removed at the termination of the compile.
238200553Sjkim
239200553Sjkimacpiexec: Implemented the -f option to specify default region fill value. 
240200553SjkimThis option specifies the value used to initialize buffers that simulate 
241200553Sjkimoperation regions. Default value is zero. Useful for debugging problems that 
242200553Sjkimdepend on a specific initial value for a region or field.
243200553Sjkim
244200553Sjkim----------------------------------------
245199337Sjkim12 November 2009. Summary of changes for version 20091112:
246199337Sjkim
247199337Sjkim1) ACPI CA Core Subsystem:
248199337Sjkim
249199337SjkimImplemented a post-order callback to AcpiWalkNamespace. The existing 
250199337Sjkiminterface only has a pre-order callback. This change adds an additional 
251199337Sjkimparameter for a post-order callback which will be more useful for bus scans. 
252199337SjkimACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
253199337Sjkim
254199337SjkimModified the behavior of the operation region memory mapping cache for 
255199337SjkimSystemMemory. Ensure that the memory mappings created for operation regions 
256199337Sjkimdo not cross 4K page boundaries. Crossing a page boundary while mapping 
257199337Sjkimregions can cause kernel warnings on some hosts if the pages have different 
258199337Sjkimattributes. Such regions are probably BIOS bugs, and this is the workaround. 
259199337SjkimLinux BZ 14445. Lin Ming.
260199337Sjkim
261199337SjkimImplemented an automatic repair for predefined methods that must return 
262199337Sjkimsorted lists. This change will repair (by sorting) packages returned by _ALR, 
263199337Sjkim_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 
264199337Sjkimand do not contain NULL package elements. Adds one new file, 
265199337Sjkimnamespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
266199337Sjkim
267199337SjkimFixed a possible fault during predefined name validation if a return Package 
268199337Sjkimobject contains NULL elements. Also adds a warning if a NULL element is 
269199337Sjkimfollowed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 
270199337Sjkiminclude repair or removal of all such NULL elements where possible.
271199337Sjkim
272199337SjkimImplemented additional module-level executable AML code support. This change 
273199337Sjkimwill execute module-level code that is not at the root of the namespace 
274199337Sjkim(under a Device object, etc.) at table load time. Module-level executable AML 
275199337Sjkimcode has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
276199337Sjkim
277199337SjkimImplemented a new internal function to create Integer objects. This function 
278199337Sjkimsimplifies miscellaneous object creation code. ACPICA BZ 823.
279199337Sjkim
280199337SjkimReduced the severity of predefined repair messages, Warning to Info. Since 
281199337Sjkimthe object was successfully repaired, a warning is too severe. Reduced to an 
282199337Sjkiminfo message for now. These messages may eventually be changed to debug-only. 
283199337SjkimACPICA BZ 812.
284199337Sjkim
285199337SjkimExample Code and Data Size: These are the sizes for the OS-independent 
286199337Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
287199337Sjkimdebug version of the code includes the debug output trace mechanism and has a 
288199337Sjkimmuch larger code and data size.
289199337Sjkim
290199337Sjkim  Previous Release:
291199337Sjkim    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
292199337Sjkim    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
293199337Sjkim  Current Release:
294199337Sjkim    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
295199337Sjkim    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
296199337Sjkim
297199337Sjkim2) iASL Compiler/Disassembler and Tools:
298199337Sjkim
299199337SjkimiASL: Implemented Switch() with While(1) so that Break works correctly. This 
300199337Sjkimchange correctly implements the Switch operator with a surrounding While(1) 
301199337Sjkimso that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
302199337Sjkim
303199337SjkimiASL: Added a message if a package initializer list is shorter than package 
304199337Sjkimlength. Adds a new remark for a Package() declaration if an initializer list 
305199337Sjkimexists, but is shorter than the declared length of the package. Although 
306199337Sjkimtechnically legal, this is probably a coding error and it is seen in the 
307199337Sjkimfield. ACPICA BZ 815. Lin Ming, Bob Moore.
308199337Sjkim
309199337SjkimiASL: Fixed a problem where the compiler could fault after the maximum number 
310199337Sjkimof errors was reached (200).
311199337Sjkim
312199337Sjkimacpixtract: Fixed a possible warning for pointer cast if the compiler warning 
313199337Sjkimlevel set very high.
314199337Sjkim
315199337Sjkim----------------------------------------
316198237Sjkim13 October 2009. Summary of changes for version 20091013:
317197104Sjkim
318197104Sjkim1) ACPI CA Core Subsystem:
319197104Sjkim
320198237SjkimFixed a problem where an Operation Region _REG method could be executed more 
321198237Sjkimthan once. If a custom address space handler is installed by the host before 
322198237Sjkimthe "initialize operation regions" phase of the ACPICA initialization, any 
323198237Sjkim_REG methods for that address space could be executed twice. This change 
324198237Sjkimfixes the problem. ACPICA BZ 427. Lin Ming.
325198237Sjkim
326198237SjkimFixed a possible memory leak for the Scope() ASL operator. When the exact 
327198237Sjkiminvocation of "Scope(\)" is executed (change scope to root), one internal 
328198237Sjkimoperand object was leaked. Lin Ming.
329198237Sjkim
330198237SjkimImplemented a run-time repair for the _MAT predefined method. If the _MAT 
331198237Sjkimreturn value is defined as a Field object in the AML, and the field
332198237Sjkimsize is less than or equal to the default width of an integer (32 or 64),_MAT 
333198237Sjkimcan incorrectly return an Integer instead of a Buffer. ACPICA now 
334198237Sjkimautomatically repairs this problem. ACPICA BZ 810.
335198237Sjkim
336198237SjkimImplemented a run-time repair for the _BIF and _BIX predefined methods. The 
337198237Sjkim"OEM Information" field is often incorrectly returned as an Integer with 
338198237Sjkimvalue zero if the field is not supported by the platform. This is due to an 
339198237Sjkimambiguity in the ACPI specification. The field should always be a string. 
340198237SjkimACPICA now automatically repairs this problem by returning a NULL string 
341198237Sjkimwithin the returned Package. ACPICA BZ 807.
342198237Sjkim
343198237SjkimExample Code and Data Size: These are the sizes for the OS-independent 
344198237Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
345198237Sjkimdebug version of the code includes the debug output trace mechanism and has a 
346198237Sjkimmuch larger code and data size.
347198237Sjkim
348198237Sjkim  Previous Release:
349198237Sjkim    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
350198237Sjkim    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
351198237Sjkim  Current Release:
352198237Sjkim    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
353198237Sjkim    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
354198237Sjkim
355198237Sjkim2) iASL Compiler/Disassembler and Tools:
356198237Sjkim
357198237SjkimDisassembler: Fixed a problem where references to external symbols that 
358198237Sjkimcontained one or more parent-prefixes (carats) were not handled correctly, 
359198237Sjkimpossibly causing a fault. ACPICA BZ 806. Lin Ming.
360198237Sjkim
361198237SjkimDisassembler: Restructured the code so that all functions that handle 
362198237Sjkimexternal symbols are in a single module. One new file is added, 
363198237Sjkimcommon/dmextern.c.
364198237Sjkim
365198237SjkimAML Debugger: Added a max count argument for the Batch command (which 
366198237Sjkimexecutes multiple predefined methods within the namespace.)
367198237Sjkim
368198237SjkimiASL: Updated the compiler documentation (User Reference.) Available at 
369198237Sjkimhttp://www.acpica.org/documentation/. ACPICA BZ 750.
370198237Sjkim
371198237SjkimAcpiXtract: Updated for Lint and other formatting changes. Close all open 
372198237Sjkimfiles.
373198237Sjkim
374198237Sjkim----------------------------------------
375198237Sjkim03 September 2009. Summary of changes for version 20090903:
376198237Sjkim
377198237Sjkim1) ACPI CA Core Subsystem:
378198237Sjkim
379197104SjkimFor Windows Vista compatibility, added the automatic execution of an _INI 
380197104Sjkimmethod located at the namespace root (\_INI). This method is executed at 
381197104Sjkimtable load time. This support is in addition to the automatic execution of 
382197104Sjkim\_SB._INI. Lin Ming.
383197104Sjkim
384197104SjkimFixed a possible memory leak in the interpreter for AML package objects if 
385197104Sjkimthe package initializer list is longer than the defined size of the package. 
386197104SjkimThis apparently can only happen if the BIOS changes the package size on the 
387197104Sjkimfly (seen in a _PSS object), as ASL compilers do not allow this. The 
388197104Sjkiminterpreter will truncate the package to the defined size (and issue an error 
389197104Sjkimmessage), but previously could leave the extra objects undeleted if they were 
390197104Sjkimpre-created during the argument processing (such is the case if the package 
391197104Sjkimconsists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
392197104Sjkim
393197104SjkimFixed a problem seen when a Buffer or String is stored to itself via ASL. 
394197104SjkimThis has been reported in the field. Previously, ACPICA would zero out the 
395197104Sjkimbuffer/string. Now, the operation is treated as a noop. Provides Windows 
396197104Sjkimcompatibility. ACPICA BZ 803. Lin Ming.
397197104Sjkim
398197104SjkimRemoved an extraneous error message for ASL constructs of the form 
399197104SjkimStore(LocalX,LocalX) when LocalX is uninitialized. These curious statements 
400197104Sjkimare seen in many BIOSs and are once again treated as NOOPs and no error is 
401197104Sjkimemitted when they are encountered. ACPICA BZ 785.
402197104Sjkim
403197104SjkimFixed an extraneous warning message if a _DSM reserved method returns a 
404197104SjkimPackage object. _DSM can return any type of object, so validation on the 
405197104Sjkimreturn type cannot be performed. ACPICA BZ 802.
406197104Sjkim
407197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 
408197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
409197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 
410197104Sjkimmuch larger code and data size.
411197104Sjkim
412197104Sjkim  Previous Release:
413197104Sjkim    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
414197104Sjkim    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
415197104Sjkim  Current Release:
416197104Sjkim    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
417197104Sjkim    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
418197104Sjkim
419197104Sjkim2) iASL Compiler/Disassembler and Tools:
420197104Sjkim
421197104SjkimiASL: Fixed a problem with the use of the Alias operator and Resource 
422197104SjkimTemplates. The correct alias is now constructed and no error is emitted. 
423197104SjkimACPICA BZ 738.
424197104Sjkim
425197104SjkimiASL: Implemented the -I option to specify additional search directories for 
426197104Sjkiminclude files. Allows multiple additional search paths for include files. 
427197104SjkimDirectories are searched in the order specified on the command line (after 
428197104Sjkimthe local directory is searched.) ACPICA BZ 800.
429197104Sjkim
430197104SjkimiASL: Fixed a problem where the full pathname for include files was not 
431197104Sjkimemitted for warnings/errors. This caused the IDE support to not work 
432197104Sjkimproperly. ACPICA BZ 765.
433197104Sjkim
434197104SjkimiASL: Implemented the -@ option to specify a Windows-style response file 
435197104Sjkimcontaining additional command line options. ACPICA BZ 801.
436197104Sjkim
437197104SjkimAcpiExec: Added support to load multiple AML files simultaneously (such as a 
438197104SjkimDSDT and multiple SSDTs). Also added support for wildcards within the AML 
439197104Sjkimpathname. These features allow all machine tables to be easily loaded and 
440197104Sjkimdebugged together. ACPICA BZ 804.
441197104Sjkim
442197104SjkimDisassembler: Added missing support for disassembly of HEST table Error Bank 
443197104Sjkimsubtables. 
444197104Sjkim
445197104Sjkim----------------------------------------
446197104Sjkim30 July 2009. Summary of changes for version 20090730:
447197104Sjkim
448197104SjkimThe ACPI 4.0 implementation for ACPICA is complete with this release.
449197104Sjkim
450197104Sjkim1) ACPI CA Core Subsystem:
451197104Sjkim
452197104SjkimACPI 4.0: Added header file support for all new and changed ACPI tables. 
453197104SjkimCompletely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 
454197104Sjkimfor ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 
455197104SjkimEINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 
456197104Sjkimhave been some ACPI 4.0 changes to other existing tables. Split the large 
457197104Sjkimactbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
458197104Sjkim
459197104SjkimACPI 4.0: Implemented predefined name validation for all new names. There are 
460197104Sjkim31 new names in ACPI 4.0. The predefined validation module was split into two 
461197104Sjkimfiles. The new file is namespace/nsrepair.c. ACPICA BZ 770.
462197104Sjkim
463197104SjkimImplemented support for so-called "module-level executable code". This is 
464197104Sjkimexecutable AML code that exists outside of any control method and is intended 
465197104Sjkimto be executed at table load time. Although illegal since ACPI 2.0, this type 
466197104Sjkimof code still exists and is apparently still being created. Blocks of this 
467197104Sjkimcode are now detected and executed as intended. Currently, the code blocks 
468197104Sjkimmust exist under either an If, Else, or While construct; these are the 
469197104Sjkimtypical cases seen in the field. ACPICA BZ 762. Lin Ming.
470197104Sjkim
471197104SjkimImplemented an automatic dynamic repair for predefined names that return 
472197104Sjkimnested Package objects. This applies to predefined names that are defined to 
473197104Sjkimreturn a variable-length Package of sub-packages. If the number of sub-
474197104Sjkimpackages is one, BIOS code is occasionally seen that creates a simple single 
475197104Sjkimpackage with no sub-packages. This code attempts to fix the problem by 
476197104Sjkimwrapping a new package object around the existing package. These methods can 
477197104Sjkimbe repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 
478197104Sjkim790.
479197104Sjkim
480197104SjkimFixed a regression introduced in 20090625 for the AcpiGetDevices interface. 
481197104SjkimThe _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 
482197104SjkimBZ 793.
483197104Sjkim
484197104SjkimFixed a problem with AcpiReset where the reset would silently fail if the 
485197104Sjkimregister was one of the protected I/O ports. AcpiReset now bypasses the port 
486197104Sjkimvalidation mechanism. This may eventually be driven into the AcpiRead/Write 
487197104Sjkiminterfaces.
488197104Sjkim
489197104SjkimFixed a regression related to the recent update of the AcpiRead/Write 
490197104Sjkiminterfaces. A sleep/suspend could fail if the optional PM2 Control register 
491197104Sjkimdoes not exist during an attempt to write the Bus Master Arbitration bit. 
492197104Sjkim(However, some hosts already delete the code that writes this bit, and the 
493197104Sjkimcode may in fact be obsolete at this date.) ACPICA BZ 799.
494197104Sjkim
495197104SjkimFixed a problem where AcpiTerminate could fault if inadvertently called twice 
496197104Sjkimin succession. ACPICA BZ 795.
497197104Sjkim
498197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 
499197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
500197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 
501197104Sjkimmuch larger code and data size.
502197104Sjkim
503197104Sjkim  Previous Release:
504197104Sjkim    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
505197104Sjkim    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
506197104Sjkim  Current Release:
507197104Sjkim    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
508197104Sjkim    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
509197104Sjkim
510197104Sjkim2) iASL Compiler/Disassembler and Tools:
511197104Sjkim
512197104SjkimACPI 4.0: Implemented disassembler support for all new ACPI tables and 
513197104Sjkimchanges to existing tables. ACPICA BZ 775.
514197104Sjkim
515197104Sjkim----------------------------------------
516197104Sjkim25 June 2009. Summary of changes for version 20090625:
517197104Sjkim
518197104SjkimThe ACPI 4.0 Specification was released on June 16 and is available at 
519197104Sjkimwww.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 
520197104Sjkimcontinue for the next few releases.
521197104Sjkim
522197104Sjkim1) ACPI CA Core Subsystem:
523197104Sjkim
524197104SjkimACPI 4.0: Implemented interpreter support for the IPMI operation region 
525197104Sjkimaddress space. Includes support for bi-directional data buffers and an IPMI 
526197104Sjkimaddress space handler (to be installed by an IPMI device driver.) ACPICA BZ 
527197104Sjkim773. Lin Ming.
528197104Sjkim
529197104SjkimACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 
530197104Sjkimsupport in both the header files and the disassembler.
531197104Sjkim
532197104SjkimCompleted a major update for the AcpiGetObjectInfo external interface. 
533197104SjkimChanges include:
534197104Sjkim - Support for variable, unlimited length HID, UID, and CID strings.
535197104Sjkim - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.)
536197104Sjkim - Call the _SxW power methods on behalf of a device object.
537197104Sjkim - Determine if a device is a PCI root bridge.
538197104Sjkim - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
539197104SjkimThese changes will require an update to all callers of this interface. See 
540197104Sjkimthe updated ACPICA Programmer Reference for details. One new source file has 
541197104Sjkimbeen added - utilities/utids.c. ACPICA BZ 368, 780.
542197104Sjkim
543197104SjkimUpdated the AcpiRead and AcpiWrite external interfaces to support 64-bit 
544197104Sjkimtransfers. The Value parameter has been extended from 32 bits to 64 bits in 
545197104Sjkimorder to support new ACPI 4.0 tables. These changes will require an update to 
546197104Sjkimall callers of these interfaces. See the ACPICA Programmer Reference for 
547197104Sjkimdetails. ACPICA BZ 768.
548197104Sjkim
549197104SjkimFixed several problems with AcpiAttachData. The handler was not invoked when 
550197104Sjkimthe host node was deleted. The data sub-object was not automatically deleted 
551197104Sjkimwhen the host node was deleted. The interface to the handler had an unused 
552197104Sjkimparameter, this was removed. ACPICA BZ 778.
553197104Sjkim
554197104SjkimEnhanced the function that dumps ACPI table headers. All non-printable 
555197104Sjkimcharacters in the string fields are now replaced with '?' (Signature, OemId, 
556197104SjkimOemTableId, and CompilerId.) ACPI tables with non-printable characters in 
557197104Sjkimthese fields are occasionally seen in the field. ACPICA BZ 788.
558197104Sjkim
559197104SjkimFixed a problem with predefined method repair code where the code that 
560197104Sjkimattempts to repair/convert an object of incorrect type is only executed on 
561197104Sjkimthe first time the predefined method is called. The mechanism that disables 
562197104Sjkimwarnings on subsequent calls was interfering with the repair mechanism. 
563197104SjkimACPICA BZ 781.
564197104Sjkim
565197104SjkimFixed a possible memory leak in the predefined validation/repair code when a 
566197104Sjkimbuffer is automatically converted to an expected string object.
567197104Sjkim
568197104SjkimRemoved obsolete 16-bit files from the distribution and from the current git 
569197104Sjkimtree head. ACPICA BZ 776.
570197104Sjkim
571197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 
572197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
573197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 
574197104Sjkimmuch larger code and data size.
575197104Sjkim
576197104Sjkim  Previous Release:
577197104Sjkim    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
578197104Sjkim    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
579197104Sjkim  Current Release:
580197104Sjkim    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
581197104Sjkim    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
582197104Sjkim
583197104Sjkim2) iASL Compiler/Disassembler and Tools:
584197104Sjkim
585197104SjkimACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 
586197104Sjkimoperation region keyword. ACPICA BZ 771, 772. Lin Ming.
587197104Sjkim
588197104SjkimACPI 4.0: iASL - implemented compile-time validation support for all new 
589197104Sjkimpredefined names and control methods (31 total). ACPICA BZ 769.
590197104Sjkim
591197104Sjkim----------------------------------------
592193267Sjkim21 May 2009. Summary of changes for version 20090521:
593193267Sjkim
594193267Sjkim1) ACPI CA Core Subsystem:
595193267Sjkim
596193267SjkimDisabled the preservation of the SCI enable bit in the PM1 control register. 
597193267SjkimThe SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 
598193267Sjkima "preserved" bit - "OSPM always preserves this bit position", section 
599193267Sjkim4.7.3.2.1. However, some machines fail if this bit is in fact preserved 
600193267Sjkimbecause the bit needs to be explicitly set by the OS as a workaround. No 
601193267Sjkimmachines fail if the bit is not preserved. Therefore, ACPICA no longer 
602193267Sjkimattempts to preserve this bit.
603193267Sjkim
604193267SjkimFixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 
605193267Sjkimincorrectly formed _PRT package could cause a fault. Added validation to 
606193267Sjkimensure that each package element is actually a sub-package.
607193267Sjkim
608193267SjkimImplemented a new interface to install or override a single control method, 
609193267SjkimAcpiInstallMethod. This interface is useful when debugging in order to repair 
610193267Sjkiman existing method or to install a missing method without having to override 
611193267Sjkimthe entire ACPI table. See the ACPICA Programmer Reference for use and 
612193267Sjkimexamples. Lin Ming, Bob Moore.
613193267Sjkim
614193267SjkimFixed several reference count issues with the DdbHandle object that is 
615193267Sjkimcreated from a Load or LoadTable operator. Prevent premature deletion of the 
616193267Sjkimobject. Also, mark the object as invalid once the table has been unloaded. 
617193267SjkimThis is needed because the handle itself may not be deleted after the table 
618193267Sjkimunload, depending on whether it has been stored in a named object by the 
619193267Sjkimcaller. Lin Ming.
620193267Sjkim
621193267SjkimFixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 
622193267Sjkimmutexes of the same sync level are acquired but then not released in strict 
623193267Sjkimopposite order, the internally maintained Current Sync Level becomes confused 
624193267Sjkimand can cause subsequent execution errors. ACPICA BZ 471.
625193267Sjkim
626193267SjkimChanged the allowable release order for ASL mutex objects. The ACPI 4.0 
627193267Sjkimspecification has been changed to make the SyncLevel for mutex objects more 
628193267Sjkimuseful. When releasing a mutex, the SyncLevel of the mutex must now be the 
629193267Sjkimsame as the current sync level. This makes more sense than the previous rule 
630193267Sjkim(SyncLevel less than or equal). This change updates the code to match the 
631193267Sjkimspecification.
632193267Sjkim
633193267SjkimFixed a problem with the local version of the AcpiOsPurgeCache function. The 
634193267Sjkim(local) cache must be locked during all cache object deletions. Andrew 
635193267SjkimBaumann.
636193267Sjkim
637193267SjkimUpdated the Load operator to use operation region interfaces. This replaces 
638193267Sjkimdirect memory mapping with region access calls. Now, all region accesses go 
639193267Sjkimthrough the installed region handler as they should.
640193267Sjkim
641193267SjkimSimplified and optimized the NsGetNextNode function. Reduced parameter count 
642193267Sjkimand reduced code for this frequently used function.
643193267Sjkim
644193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
645193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
646193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
647193267Sjkimmuch larger code and data size.
648193267Sjkim
649193267Sjkim  Previous Release:
650193267Sjkim    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
651193267Sjkim    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
652193267Sjkim  Current Release:
653193267Sjkim    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
654193267Sjkim    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
655193267Sjkim
656193267Sjkim2) iASL Compiler/Disassembler and Tools:
657193267Sjkim
658193267SjkimDisassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 
659193267Sjkimwith sub-table disassembly and handling invalid sub-tables. Attempt recovery 
660193267Sjkimafter an invalid sub-table ID.
661193267Sjkim
662193267Sjkim----------------------------------------
663193267Sjkim22 April 2009. Summary of changes for version 20090422:
664193267Sjkim
665193267Sjkim1) ACPI CA Core Subsystem:
666193267Sjkim
667193267SjkimFixed a compatibility issue with the recently released I/O port protection 
668193267Sjkimmechanism. For windows compatibility, 1) On a port protection violation, 
669193267Sjkimsimply ignore the request and do not return an exception (allow the control 
670193267Sjkimmethod to continue execution.) 2) If only part of the request overlaps a 
671193267Sjkimprotected port, read/write the individual ports that are not protected. Linux 
672193267SjkimBZ 13036. Lin Ming
673193267Sjkim
674193267SjkimEnhanced the execution of the ASL/AML BreakPoint operator so that it actually 
675193267Sjkimbreaks into the AML debugger if the debugger is present. This matches the 
676193267SjkimACPI-defined behavior.
677193267Sjkim
678193267SjkimFixed several possible warnings related to the use of the configurable 
679193267SjkimACPI_THREAD_ID. This type can now be configured as either an integer or a 
680193267Sjkimpointer with no warnings. Also fixes several warnings in printf-like 
681193267Sjkimstatements for the 64-bit build when the type is configured as a pointer. 
682193267SjkimACPICA BZ 766, 767.
683193267Sjkim
684193267SjkimFixed a number of possible warnings when compiling with gcc 4+ (depending on 
685193267Sjkimwarning options.) Examples include printf formats, aliasing, unused globals, 
686193267Sjkimmissing prototypes, missing switch default statements, use of non-ANSI 
687193267Sjkimlibrary functions, use of non-ANSI constructs. See generate/unix/Makefile for 
688193267Sjkima list of warning options used with gcc 3 and 4. ACPICA BZ 735.
689193267Sjkim
690193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
691193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
692193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
693193267Sjkimmuch larger code and data size.
694193267Sjkim
695193267Sjkim  Previous Release:
696193267Sjkim    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
697193267Sjkim    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
698193267Sjkim  Current Release:
699193267Sjkim    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
700193267Sjkim    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
701193267Sjkim
702193267Sjkim2) iASL Compiler/Disassembler and Tools:
703193267Sjkim
704193267SjkimiASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 
705193267Sjkimthe 64-bit build.
706193267Sjkim
707193267SjkimiASL: Fixed a problem where the Unix/Linux versions of the compiler could not 
708193267Sjkimcorrectly digest Windows/DOS formatted files (with CR/LF).
709193267Sjkim
710193267SjkimiASL: Added a new option for "quiet mode" (-va) that produces only the 
711193267Sjkimcompilation summary, not individual errors and warnings. Useful for large 
712193267Sjkimbatch compilations.
713193267Sjkim
714193267SjkimAcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 
715193267Sjkimtimeout that can be used to detect hang conditions during execution of AML 
716193267Sjkimcode (includes both internal semaphores and AML-defined mutexes and events.)
717193267Sjkim
718193267SjkimAdded new makefiles for the generation of acpica in a generic unix-like 
719193267Sjkimenvironment. These makefiles are intended to generate the acpica tools and 
720193267Sjkimutilities from the original acpica git source tree structure.
721193267Sjkim
722193267SjkimTest Suites: Updated and cleaned up the documentation files. Updated the 
723193267Sjkimcopyrights to 2009, affecting all source files. Use the new version of iASL 
724193267Sjkimwith quiet mode. Increased the number of available semaphores in the Windows 
725193267SjkimOSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 
726193267Sjkiman alternate implementation of the semaphore timeout to allow aslts to 
727193267Sjkimexecute fully on Cygwin.
728193267Sjkim
729193267Sjkim----------------------------------------
730193267Sjkim20 March 2009. Summary of changes for version 20090320:
731193267Sjkim
732193267Sjkim1) ACPI CA Core Subsystem:
733193267Sjkim
734193267SjkimFixed a possible race condition between AcpiWalkNamespace and dynamic table 
735193267Sjkimunloads. Added a reader/writer locking mechanism to allow multiple concurrent 
736193267Sjkimnamespace walks (readers), but block a dynamic table unload until it can gain 
737193267Sjkimexclusive write access to the namespace. This fixes a problem where a table 
738193267Sjkimunload could (possibly catastrophically) delete the portion of the namespace 
739193267Sjkimthat is currently being examined by a walk. Adds a new file, utlock.c, that 
740193267Sjkimimplements the reader/writer lock mechanism. ACPICA BZ 749.
741193267Sjkim
742193267SjkimFixed a regression introduced in version 20090220 where a change to the FADT 
743193267Sjkimhandling could cause the ACPICA subsystem to access non-existent I/O ports.
744193267Sjkim
745193267SjkimModified the handling of FADT register and table (FACS/DSDT) addresses. The 
746193267SjkimFADT can contain both 32-bit and 64-bit versions of these addresses. 
747193267SjkimPreviously, the 64-bit versions were favored, meaning that if both 32 and 64 
748193267Sjkimversions were valid, but not equal, the 64-bit version was used. This was 
749193267Sjkimfound to cause some machines to fail. Now, in this case, the 32-bit version 
750193267Sjkimis used instead. This now matches the Windows behavior.
751193267Sjkim
752193267SjkimImplemented a new mechanism to protect certain I/O ports. Provides Microsoft 
753193267Sjkimcompatibility and protects the standard PC I/O ports from access via AML 
754193267Sjkimcode. Adds a new file, hwvalid.c
755193267Sjkim
756193267SjkimFixed a possible extraneous warning message from the FADT support. The 
757193267Sjkimmessage warns of a 32/64 length mismatch between the legacy and GAS 
758193267Sjkimdefinitions for a register.
759193267Sjkim
760193267SjkimRemoved the obsolete AcpiOsValidateAddress OSL interface. This interface is 
761193267Sjkimmade obsolete by the port protection mechanism above. It was previously used 
762193267Sjkimto validate the entire address range of an operation region, which could be 
763193267Sjkimincorrect if the range included illegal ports, but fields within the 
764193267Sjkimoperation region did not actually access those ports. Validation is now 
765193267Sjkimperformed on a per-field basis instead of the entire region.
766193267Sjkim
767193267SjkimModified the handling of the PM1 Status Register ignored bit (bit 11.) 
768193267SjkimIgnored bits must be "preserved" according to the ACPI spec. Usually, this 
769193267Sjkimmeans a read/modify/write when writing to the register. However, for status 
770193267Sjkimregisters, writing a one means clear the event. Writing a zero means preserve 
771193267Sjkimthe event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 
772193267Sjkimand the ACPICA code now simply always writes a zero to the ignored bit.
773193267Sjkim
774193267SjkimModified the handling of ignored bits for the PM1 A/B Control Registers. As 
775193267Sjkimper the ACPI specification, for the control registers, preserve 
776193267Sjkim(read/modify/write) all bits that are defined as either reserved or ignored.
777193267Sjkim
778193267SjkimUpdated the handling of write-only bits in the PM1 A/B Control Registers. 
779193267SjkimWhen reading the register, zero the write-only bits as per the ACPI spec. 
780193267SjkimACPICA BZ 443. Lin Ming.
781193267Sjkim
782193267SjkimRemoved "Linux" from the list of supported _OSI strings. Linux no longer 
783193267Sjkimwants to reply true to this request. The Windows strings are the only paths 
784193267Sjkimthrough the AML that are tested and known to work properly.
785193267Sjkim
786193267Sjkim  Previous Release:
787193267Sjkim    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
788193267Sjkim    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
789193267Sjkim  Current Release:
790193267Sjkim    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
791193267Sjkim    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
792193267Sjkim
793193267Sjkim2) iASL Compiler/Disassembler and Tools:
794193267Sjkim
795193267SjkimAcpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 
796193267Sjkimaetables.c
797193267Sjkim
798193267Sjkim----------------------------------------
799193267Sjkim20 February 2009. Summary of changes for version 20090220:
800193267Sjkim
801193267Sjkim1) ACPI CA Core Subsystem:
802193267Sjkim
803193267SjkimOptimized the ACPI register locking. Removed locking for reads from the ACPI 
804193267Sjkimbit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 
805193267Sjkimnot required when reading the single-bit registers. The 
806193267SjkimAcpiGetRegisterUnlocked function is no longer needed and has been removed. 
807193267SjkimThis will improve performance for reads on these registers. ACPICA BZ 760.
808193267Sjkim
809193267SjkimFixed the parameter validation for AcpiRead/Write. Now return 
810193267SjkimAE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 
811193267Sjkimthe register has an address of zero. Previously, these cases simply returned 
812193267SjkimAE_OK. For optional registers such as PM1B status/enable/control, the caller 
813193267Sjkimshould check for a valid register address before calling. ACPICA BZ 748.
814193267Sjkim
815193267SjkimRenamed the external ACPI bit register access functions. Renamed 
816193267SjkimAcpiGetRegister and AcpiSetRegister to clarify the purpose of these 
817193267Sjkimfunctions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 
818193267SjkimAlso, restructured the code for these functions by simplifying the code path 
819193267Sjkimand condensing duplicate code to reduce code size.
820193267Sjkim
821193267SjkimAdded new functions to transparently handle the possibly split PM1 A/B 
822193267Sjkimregisters. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 
823193267Sjkimnow handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 
824193267Sjkim746.
825193267Sjkim
826193267SjkimAdded a function to handle the PM1 control registers, AcpiHwWritePm1Control. 
827193267SjkimThis function writes both of the PM1 control registers (A/B). These registers 
828193267Sjkimare different than the PM1 A/B status and enable registers in that different 
829193267Sjkimvalues can be written to the A/B registers. Most notably, the SLP_TYP bits 
830193267Sjkimcan be different, as per the values returned from the _Sx predefined methods.
831193267Sjkim
832193267SjkimRemoved an extra register write within AcpiHwClearAcpiStatus. This function 
833193267Sjkimwas writing an optional PM1B status register twice. The existing call to the 
834193267Sjkimlow-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 
835193267Sjkimregister. ACPICA BZ 751.
836193267Sjkim
837193267SjkimSplit out the PM1 Status registers from the FADT. Added new globals for these 
838193267Sjkimregisters (A/B), similar to the way the PM1 Enable registers are handled. 
839193267SjkimInstead of overloading the FADT Event Register blocks. This makes the code 
840193267Sjkimclearer and less prone to error.
841193267Sjkim
842193267SjkimFixed the warning message for when the platform contains too many ACPI tables 
843193267Sjkimfor the default size of the global root table data structure. The calculation 
844193267Sjkimfor the truncation value was incorrect.
845193267Sjkim
846193267SjkimRemoved the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 
847193267Sjkimobsolete macro, since it is now a simple reference to ->common.type. There 
848193267Sjkimwere about 150 invocations of the macro across 41 files. ACPICA BZ 755.
849193267Sjkim
850193267SjkimRemoved the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 
851193267SjkimTYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 
852193267Sjkimsimply SLEEP_TYPE. ACPICA BZ 754.
853193267Sjkim
854193267SjkimConditionally compile the AcpiSetFirmwareWakingVector64 function. This 
855193267Sjkimfunction is only needed on 64-bit host operating systems and is thus not 
856193267Sjkimincluded for 32-bit hosts.
857193267Sjkim
858193267SjkimDebug output: print the input and result for invocations of the _OSI reserved 
859193267Sjkimcontrol method via the ACPI_LV_INFO debug level. Also, reduced some of the 
860193267Sjkimverbosity of this debug level. Len Brown.
861193267Sjkim
862193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
863193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
864193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
865193267Sjkimmuch larger code and data size.
866193267Sjkim
867193267Sjkim  Previous Release:
868193267Sjkim    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
869193267Sjkim    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
870193267Sjkim  Current Release:
871193267Sjkim    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
872193267Sjkim    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
873193267Sjkim
874193267Sjkim2) iASL Compiler/Disassembler and Tools:
875193267Sjkim
876193267SjkimDisassembler: Decode the FADT PM_Profile field. Emit ascii names for the 
877193267Sjkimvarious legal performance profiles.
878193267Sjkim
879193267Sjkim----------------------------------------
880193267Sjkim23 January 2009. Summary of changes for version 20090123:
881193267Sjkim
882193267Sjkim1) ACPI CA Core Subsystem:
883193267Sjkim
884193267SjkimAdded the 2009 copyright to all module headers and signons. This affects 
885193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 
886193267Sjkimthe tools/utilities.
887193267Sjkim
888193267SjkimImplemented a change to allow the host to override any ACPI table, including 
889193267Sjkimdynamically loaded tables. Previously, only the DSDT could be replaced by the 
890193267Sjkimhost. With this change, the AcpiOsTableOverride interface is called for each 
891193267Sjkimtable found in the RSDT/XSDT during ACPICA initialization, and also whenever 
892193267Sjkima table is dynamically loaded via the AML Load operator.
893193267Sjkim
894193267SjkimUpdated FADT flag definitions, especially the Boot Architecture flags.
895193267Sjkim
896193267SjkimDebugger: For the Find command, automatically pad the input ACPI name with 
897193267Sjkimunderscores if the name is shorter than 4 characters. This enables a match 
898193267Sjkimwith the actual namespace entry which is itself padded with underscores.
899193267Sjkim
900193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
901193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
902193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
903193267Sjkimmuch larger code and data size.
904193267Sjkim
905193267Sjkim  Previous Release:
906193267Sjkim    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
907193267Sjkim    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
908193267Sjkim  Current Release:
909193267Sjkim    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
910193267Sjkim    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
911193267Sjkim
912193267Sjkim2) iASL Compiler/Disassembler and Tools:
913193267Sjkim
914193267SjkimFix build error under Bison-2.4.
915193267Sjkim
916193267SjkimDissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 
917193267Sjkimflags. Now decode all flags, regardless of the FADT version. Flag output 
918193267Sjkimincludes the FADT version which first defined each flag.
919193267Sjkim
920193267SjkimThe iASL -g option now dumps the RSDT to a file (in addition to the FADT and 
921193267SjkimDSDT). Windows only.
922193267Sjkim
923193267Sjkim----------------------------------------
924193267Sjkim04 December 2008. Summary of changes for version 20081204:
925193267Sjkim
926193267Sjkim1) ACPI CA Core Subsystem:
927193267Sjkim
928193267SjkimThe ACPICA Programmer Reference has been completely updated and revamped for 
929193267Sjkimthis release. This includes updates to the external interfaces, OSL 
930193267Sjkiminterfaces, the overview sections, and the debugger reference.
931193267Sjkim
932193267SjkimSeveral new ACPICA interfaces have been implemented and documented in the 
933193267Sjkimprogrammer reference:
934193267SjkimAcpiReset - Writes the reset value to the FADT-defined reset register.
935193267SjkimAcpiDisableAllGpes - Disable all available GPEs.
936193267SjkimAcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
937193267SjkimAcpiGetGpeDevice - Get the GPE block device associated with a GPE.
938193267SjkimAcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
939193267SjkimAcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
940193267SjkimAcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
941193267Sjkim
942193267SjkimMost of the public ACPI hardware-related interfaces have been moved to a new 
943193267Sjkimfile, components/hardware/hwxface.c
944193267Sjkim
945193267SjkimEnhanced the FADT parsing and low-level ACPI register access: The ACPI 
946193267Sjkimregister lengths within the FADT are now used, and the low level ACPI 
947193267Sjkimregister access no longer hardcodes the ACPI register lengths. Given that 
948193267Sjkimthere may be some risk in actually trusting the FADT register lengths, a run-
949193267Sjkimtime option was added to fall back to the default hardcoded lengths if the 
950193267SjkimFADT proves to contain incorrect values - UseDefaultRegisterWidths. This 
951193267Sjkimoption is set to true for now, and a warning is issued if a suspicious FADT 
952193267Sjkimregister length is overridden with the default value.
953193267Sjkim
954193267SjkimFixed a reference count issue in NsRepairObject. This problem was introduced 
955193267Sjkimin version 20081031 as part of a fix to repair Buffer objects within 
956193267SjkimPackages. Lin Ming.
957193267Sjkim
958193267SjkimAdded semaphore support to the Linux/Unix application OS-services layer 
959193267Sjkim(OSL). ACPICA BZ 448. Lin Ming.
960193267Sjkim
961193267SjkimAdded the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 
962193267Sjkimbe implemented in the OSL, or will binary semaphores be used instead.
963193267Sjkim
964193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
965193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
966193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
967193267Sjkimmuch larger code and data size.
968193267Sjkim
969193267Sjkim  Previous Release:
970193267Sjkim    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
971193267Sjkim    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
972193267Sjkim  Current Release:
973193267Sjkim    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
974193267Sjkim    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
975193267Sjkim
976193267Sjkim2) iASL Compiler/Disassembler and Tools:
977193267Sjkim
978193267SjkimiASL: Completed the '-e' option to include additional ACPI tables in order to 
979193267Sjkimaid with disassembly and External statement generation. ACPICA BZ 742. Lin 
980193267SjkimMing.
981193267Sjkim
982193267SjkimiASL: Removed the "named object in while loop" error. The compiler cannot 
983193267Sjkimdetermine how many times a loop will execute. ACPICA BZ 730.
984193267Sjkim
985193267SjkimDisassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 
986193267SjkimBZ 743.
987193267Sjkim
988193267SjkimDisassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG).
989193267Sjkim
990193267Sjkim----------------------------------------
991193267Sjkim31 October 2008. Summary of changes for version 20081031:
992193267Sjkim
993193267Sjkim1) ACPI CA Core Subsystem:
994193267Sjkim
995193267SjkimRestructured the ACPICA header files into public/private. acpi.h now includes 
996193267Sjkimonly the "public" acpica headers. All other acpica headers are "private" and 
997193267Sjkimshould not be included by acpica users. One new file, accommon.h is used to 
998193267Sjkiminclude the commonly used private headers for acpica code generation. Future 
999193267Sjkimplans include moving all private headers to a new subdirectory.
1000193267Sjkim
1001193267SjkimImplemented an automatic Buffer->String return value conversion for 
1002193267Sjkimpredefined ACPI methods. For these methods (such as _BIF), added automatic 
1003193267Sjkimconversion for return objects that are required to be a String, but a Buffer 
1004193267Sjkimwas found instead. This can happen when reading string battery data from an 
1005193267Sjkimoperation region, because it used to be difficult to convert the data from 
1006193267Sjkimbuffer to string from within the ASL. Ensures that the host OS is provided 
1007193267Sjkimwith a valid null-terminated string. Linux BZ 11822.
1008193267Sjkim
1009193267SjkimUpdated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 
1010193267Sjkiminto two: one for the 32-bit vector, another for the 64-bit vector. This is 
1011193267Sjkimrequired because the host OS must setup the wake much differently for each 
1012193267Sjkimvector (real vs. protected mode, etc.) and the interface itself should not be 
1013193267Sjkimdeciding which vector to use. Also, eliminated the GetFirmwareWakingVector 
1014193267Sjkiminterface, as it served no purpose (only the firmware reads the vector, OS 
1015193267Sjkimonly writes the vector.) ACPICA BZ 731.
1016193267Sjkim
1017193267SjkimImplemented a mechanism to escape infinite AML While() loops. Added a loop 
1018193267Sjkimcounter to force exit from AML While loops if the count becomes too large. 
1019193267SjkimThis can occur in poorly written AML when the hardware does not respond 
1020193267Sjkimwithin a while loop and the loop does not implement a timeout. The maximum 
1021193267Sjkimloop count is configurable. A new exception code is returned when a loop is 
1022193267Sjkimbroken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
1023193267Sjkim
1024193267SjkimOptimized the execution of AML While loops. Previously, a control state 
1025193267Sjkimobject was allocated and freed for each execution of the loop. The 
1026193267Sjkimoptimization is to simply reuse the control state for each iteration. This 
1027193267Sjkimspeeds up the raw loop execution time by about 5%.
1028193267Sjkim
1029193267SjkimEnhanced the implicit return mechanism. For Windows compatibility, return an 
1030193267Sjkimimplicit integer of value zero for methods that contain no executable code. 
1031193267SjkimSuch methods are seen in the field as stubs (presumably), and can cause 
1032193267Sjkimdrivers to fail if they expect a return value. Lin Ming.
1033193267Sjkim
1034193267SjkimAllow multiple backslashes as root prefixes in namepaths. In a fully 
1035193267Sjkimqualified namepath, allow multiple backslash prefixes. This can happen (and 
1036193267Sjkimis seen in the field) because of the use of a double-backslash in strings 
1037193267Sjkim(since backslash is the escape character) causing confusion. ACPICA BZ 739 
1038193267SjkimLin Ming.
1039193267Sjkim
1040193267SjkimEmit a warning if two different FACS or DSDT tables are discovered in the 
1041193267SjkimFADT. Checks if there are two valid but different addresses for the FACS and 
1042193267SjkimDSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
1043193267Sjkim
1044193267SjkimConsolidated the method argument count validation code. Merged the code that 
1045193267Sjkimvalidates control method argument counts into the predefined validation 
1046193267Sjkimmodule. Eliminates possible multiple warnings for incorrect argument counts.
1047193267Sjkim
1048193267SjkimImplemented ACPICA example code. Includes code for ACPICA initialization, 
1049193267Sjkimhandler installation, and calling a control method. Available at 
1050193267Sjkimsource/tools/examples.
1051193267Sjkim
1052193267SjkimAdded a global pointer for FACS table to simplify internal FACS access. Use 
1053193267Sjkimthe global pointer instead of using AcpiGetTableByIndex for each FACS access. 
1054193267SjkimThis simplifies the code for the Global Lock and the Firmware Waking 
1055193267SjkimVector(s).
1056193267Sjkim
1057193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1058193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1059193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
1060193267Sjkimmuch larger code and data size.
1061193267Sjkim
1062193267Sjkim  Previous Release:
1063193267Sjkim    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
1064193267Sjkim    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
1065193267Sjkim  Current Release:
1066193267Sjkim    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
1067193267Sjkim    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
1068193267Sjkim
1069193267Sjkim2) iASL Compiler/Disassembler and Tools:
1070193267Sjkim
1071193267SjkimiASL: Improved disassembly of external method calls. Added the -e option to 
1072193267Sjkimallow the inclusion of additional ACPI tables to help with the disassembly of 
1073193267Sjkimmethod invocations and the generation of external declarations during the 
1074193267Sjkimdisassembly. Certain external method invocations cannot be disassembled 
1075193267Sjkimproperly without the actual declaration of the method. Use the -e option to 
1076193267Sjkiminclude the table where the external method(s) are actually declared. Most 
1077193267Sjkimuseful for disassembling SSDTs that make method calls back to the master 
1078193267SjkimDSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl -d 
1079193267Sjkim-e dsdt.aml ssdt1.aml
1080193267Sjkim
1081193267SjkimiASL: Fix to allow references to aliases within ASL namepaths. Fixes a 
1082193267Sjkimproblem where the use of an alias within a namepath would result in a not 
1083193267Sjkimfound error or cause the compiler to fault. Also now allows forward 
1084193267Sjkimreferences from the Alias operator itself. ACPICA BZ 738.
1085193267Sjkim
1086193267Sjkim----------------------------------------
1087193267Sjkim26 September 2008. Summary of changes for version 20080926:
1088193267Sjkim
1089193267Sjkim1) ACPI CA Core Subsystem:
1090193267Sjkim
1091193267SjkimDesigned and implemented a mechanism to validate predefined ACPI methods and 
1092193267Sjkimobjects. This code validates the predefined ACPI objects (objects whose names 
1093193267Sjkimstart with underscore) that appear in the namespace, at the time they are 
1094193267Sjkimevaluated. The argument count and the type of the returned object are 
1095193267Sjkimvalidated against the ACPI specification. The purpose of this validation is 
1096193267Sjkimto detect problems with the BIOS-implemented predefined ACPI objects before 
1097193267Sjkimthe results are returned to the ACPI-related drivers. Future enhancements may 
1098193267Sjkiminclude actual repair of incorrect return objects where possible. Two new 
1099193267Sjkimfiles are nspredef.c and acpredef.h.
1100193267Sjkim
1101193267SjkimFixed a fault in the AML parser if a memory allocation fails during the Op 
1102193267Sjkimcompletion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
1103193267Sjkim
1104193267SjkimFixed an issue with implicit return compatibility. This change improves the 
1105193267Sjkimimplicit return mechanism to be more compatible with the MS interpreter. Lin 
1106193267SjkimMing, ACPICA BZ 349.
1107193267Sjkim
1108193267SjkimImplemented support for zero-length buffer-to-string conversions. Allow zero 
1109193267Sjkimlength strings during interpreter buffer-to-string conversions. For example, 
1110193267Sjkimduring the ToDecimalString and ToHexString operators, as well as implicit 
1111193267Sjkimconversions. Fiodor Suietov, ACPICA BZ 585.
1112193267Sjkim
1113193267SjkimFixed two possible memory leaks in the error exit paths of 
1114193267SjkimAcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 
1115193267Sjkimsimilar in that they use a stack of state objects in order to eliminate 
1116193267Sjkimrecursion. The stack must be fully unwound and deallocated if an error 
1117193267Sjkimoccurs. Lin Ming. ACPICA BZ 383.
1118193267Sjkim
1119193267SjkimRemoved the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 
1120193267SjkimACPI register table. This bit does not exist and is unused. Lin Ming, Bob 
1121193267SjkimMoore ACPICA BZ 442.
1122193267Sjkim
1123193267SjkimRemoved the obsolete version number in module headers. Removed the 
1124193267Sjkim"$Revision" number that appeared in each module header. This version number 
1125193267Sjkimwas useful under SourceSafe and CVS, but has no meaning under git. It is not 
1126193267Sjkimonly incorrect, it could also be misleading.
1127193267Sjkim
1128193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1129193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1130193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
1131193267Sjkimmuch larger code and data size.
1132193267Sjkim
1133193267Sjkim  Previous Release:
1134193267Sjkim    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
1135193267Sjkim    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
1136193267Sjkim  Current Release:
1137193267Sjkim    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
1138193267Sjkim    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
1139193267Sjkim
1140193267Sjkim----------------------------------------
1141193267Sjkim29 August 2008. Summary of changes for version 20080829:
1142193267Sjkim
1143193267Sjkim1) ACPI CA Core Subsystem:
1144193267Sjkim
1145193267SjkimCompleted a major cleanup of the internal ACPI_OPERAND_OBJECT of type 
1146193267SjkimReference. Changes include the elimination of cheating on the Object field 
1147193267Sjkimfor the DdbHandle subtype, addition of a reference class field to 
1148193267Sjkimdifferentiate the various reference types (instead of an AML opcode), and the 
1149193267Sjkimcleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
1150193267Sjkim
1151193267SjkimReduce an error to a warning for an incorrect method argument count. 
1152193267SjkimPreviously aborted with an error if too few arguments were passed to a 
1153193267Sjkimcontrol method via the external ACPICA interface. Now issue a warning instead 
1154193267Sjkimand continue. Handles the case where the method inadvertently declares too 
1155193267Sjkimmany arguments, but does not actually use the extra ones. Applies mainly to 
1156193267Sjkimthe predefined methods. Lin Ming. Linux BZ 11032.
1157193267Sjkim
1158193267SjkimDisallow the evaluation of named object types with no intrinsic value. Return 
1159193267SjkimAE_TYPE for objects that have no value and therefore evaluation is undefined: 
1160193267SjkimDevice, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 
1161193267Sjkimthese types were allowed, but an exception would be generated at some point 
1162193267Sjkimduring the evaluation. Now, the error is generated up front.
1163193267Sjkim
1164193267SjkimFixed a possible memory leak in the AcpiNsGetExternalPathname function 
1165193267Sjkim(nsnames.c). Fixes a leak in the error exit path.
1166193267Sjkim
1167193267SjkimRemoved the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 
1168193267Sjkimlevels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 
1169193267Sjkiminterfaces. Also added ACPI_DB_EVENTS to correspond with the existing 
1170193267SjkimACPI_LV_EVENTS.
1171193267Sjkim
1172193267SjkimRemoved obsolete and/or unused exception codes from the acexcep.h header. 
1173193267SjkimThere is the possibility that certain device drivers may be affected if they 
1174193267Sjkimuse any of these exceptions.
1175193267Sjkim
1176193267SjkimThe ACPICA documentation has been added to the public git source tree, under 
1177193267Sjkimacpica/documents. Included are the ACPICA programmer reference, the iASL 
1178193267Sjkimcompiler reference, and the changes.txt release logfile.
1179193267Sjkim
1180193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1181193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1182193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
1183193267Sjkimmuch larger code and data size.
1184193267Sjkim
1185193267Sjkim  Previous Release:
1186193267Sjkim    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
1187193267Sjkim    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
1188193267Sjkim  Current Release:
1189193267Sjkim    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
1190193267Sjkim    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
1191193267Sjkim
1192193267Sjkim2) iASL Compiler/Disassembler and Tools:
1193193267Sjkim
1194193267SjkimAllow multiple argument counts for the predefined _SCP method. ACPI 3.0 
1195193267Sjkimdefines _SCP with 3 arguments. Previous versions defined it with only 1 
1196193267Sjkimargument. iASL now allows both definitions.
1197193267Sjkim
1198193267SjkimiASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero-
1199193267Sjkimlength subtables when disassembling ACPI tables. Also fixed a couple of 
1200193267Sjkimerrors where a full 16-bit table type field was not extracted from the input 
1201193267Sjkimproperly.
1202193267Sjkim
1203193267Sjkimacpisrc: Improve comment counting mechanism for generating source code 
1204193267Sjkimstatistics. Count first and last lines of multi-line comments as whitespace, 
1205193267Sjkimnot comment lines. Handle Linux legal header in addition to standard acpica 
1206193267Sjkimheader.
1207193267Sjkim
1208193267Sjkim----------------------------------------
1209193267Sjkim
1210193267Sjkim29 July 2008. Summary of changes for version 20080729:
1211193267Sjkim
1212193267Sjkim1) ACPI CA Core Subsystem:
1213193267Sjkim
1214193267SjkimFix a possible deadlock in the GPE dispatch. Remove call to 
1215193267SjkimAcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 
1216193267Sjkimto acquire the GPE lock but can deadlock since the GPE lock is already held 
1217193267Sjkimat dispatch time. This code was introduced in version 20060831 as a response 
1218193267Sjkimto Linux BZ 6881 and has since been removed from Linux.
1219193267Sjkim
1220193267SjkimAdd a function to dereference returned reference objects. Examines the return 
1221193267Sjkimobject from a call to AcpiEvaluateObject. Any Index or RefOf references are 
1222193267Sjkimautomatically dereferenced in an attempt to return something useful (these 
1223193267Sjkimreference types cannot be converted into an external ACPI_OBJECT.) Provides 
1224193267SjkimMS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
1225193267Sjkim
1226193267Sjkimx2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 
1227193267Sjkimsubtables for the MADT and one new subtable for the SRAT. Includes 
1228193267Sjkimdisassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 
1229193267SjkimSpecification, June 2008.
1230193267Sjkim
1231193267SjkimAdditional error checking for pathname utilities. Add error check after all 
1232193267Sjkimcalls to AcpiNsGetPathnameLength. Add status return from 
1233193267SjkimAcpiNsBuildExternalPath and check after all calls. Add parameter validation 
1234193267Sjkimto AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
1235193267Sjkim
1236193267SjkimReturn status from the global init function AcpiUtGlobalInitialize. This is 
1237193267Sjkimused by both the kernel subsystem and the utilities such as iASL compiler. 
1238193267SjkimThe function could possibly fail when the caches are initialized. Yang Yi.
1239193267Sjkim
1240193267SjkimAdd a function to decode reference object types to strings. Created for 
1241193267Sjkimimproved error messages. 
1242193267Sjkim
1243193267SjkimImprove object conversion error messages. Better error messages during object 
1244193267Sjkimconversion from internal to the external ACPI_OBJECT. Used for external calls 
1245193267Sjkimto AcpiEvaluateObject.
1246193267Sjkim
1247193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1248193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1249193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
1250193267Sjkimmuch larger code and data size.
1251193267Sjkim
1252193267Sjkim  Previous Release:
1253193267Sjkim    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
1254193267Sjkim    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
1255193267Sjkim  Current Release:
1256193267Sjkim    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
1257193267Sjkim    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
1258193267Sjkim
1259193267Sjkim2) iASL Compiler/Disassembler and Tools:
1260193267Sjkim
1261193267SjkimDebugger: fix a possible hang when evaluating non-methods. Fixes a problem 
1262193267Sjkimintroduced in version 20080701. If the object being evaluated (via execute 
1263193267Sjkimcommand) is not a method, the debugger can hang while trying to obtain non-
1264193267Sjkimexistent parameters.
1265193267Sjkim
1266193267SjkimiASL: relax error for using reserved "_T_x" identifiers. These names can 
1267193267Sjkimappear in a disassembled ASL file if they were emitted by the original 
1268193267Sjkimcompiler. Instead of issuing an error or warning and forcing the user to 
1269193267Sjkimmanually change these names, issue a remark instead.
1270193267Sjkim
1271193267SjkimiASL: error if named object created in while loop. Emit an error if any named 
1272193267Sjkimobject is created within a While loop. If allowed, this code will generate a 
1273193267Sjkimrun-time error on the second iteration of the loop when an attempt is made to 
1274193267Sjkimcreate the same named object twice. ACPICA bugzilla 730.
1275193267Sjkim
1276193267SjkimiASL: Support absolute pathnames for include files. Add support for absolute 
1277193267Sjkimpathnames within the Include operator. previously, only relative pathnames 
1278193267Sjkimwere supported.
1279193267Sjkim
1280193267SjkimiASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 
1281193267SjkimThe ACPI spec requires one interrupt minimum. BZ 423
1282193267Sjkim
1283193267SjkimiASL: Handle a missing ResourceSource arg, with a present SourceIndex. 
1284193267SjkimHandles the case for the Interrupt Resource Descriptor where
1285193267Sjkimthe ResourceSource argument is omitted but ResourceSourceIndex
1286193267Sjkimis present. Now leave room for the Index. BZ 426
1287193267Sjkim
1288193267SjkimiASL: Prevent error message if CondRefOf target does not exist. Fixes cases 
1289193267Sjkimwhere an error message is emitted if the target does not exist. BZ 516
1290193267Sjkim
1291193267SjkimiASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 
1292193267Sjkim(get ACPI tables on Windows). This was apparently broken in version 20070919.
1293193267Sjkim
1294193267SjkimAcpiXtract: Handle EOF while extracting data. Correctly handle the case where 
1295193267Sjkimthe EOF happens immediately after the last table in the input file. Print 
1296193267Sjkimcompletion message. Previously, no message was displayed in this case.
1297193267Sjkim
1298193267Sjkim----------------------------------------
1299193267Sjkim01 July 2008. Summary of changes for version 20080701:
1300193267Sjkim
1301193267Sjkim0) Git source tree / acpica.org
1302193267Sjkim
1303193267SjkimFixed a problem where a git-clone from http would not transfer the entire 
1304193267Sjkimsource tree.
1305193267Sjkim
1306193267Sjkim1) ACPI CA Core Subsystem:
1307193267Sjkim
1308193267SjkimImplemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 
1309193267Sjkimenable bit. Now performs a read-change-write of the enable register instead 
1310193267Sjkimof simply writing out the cached enable mask. This will prevent inadvertent 
1311193267Sjkimenabling of GPEs if a rogue GPE is received during initialization (before GPE 
1312193267Sjkimhandlers are installed.)
1313193267Sjkim
1314193267SjkimImplemented a copy for dynamically loaded tables. Previously, dynamically 
1315193267Sjkimloaded tables were simply mapped - but on some machines this memory is 
1316193267Sjkimcorrupted after suspend. Now copy the table to a local buffer. For the 
1317193267SjkimOpRegion case, added checksum verify. Use the table length from the table 
1318193267Sjkimheader, not the region length. For the Buffer case, use the table length 
1319193267Sjkimalso. Dennis Noordsij, Bob Moore. BZ 10734
1320193267Sjkim
1321193267SjkimFixed a problem where the same ACPI table could not be dynamically loaded and 
1322193267Sjkimunloaded more than once. Without this change, a table cannot be loaded again 
1323193267Sjkimonce it has been loaded/unloaded one time. The current mechanism does not 
1324193267Sjkimunregister a table upon an unload. During a load, if the same table is found, 
1325193267Sjkimthis no longer returns an exception. BZ 722
1326193267Sjkim
1327193267SjkimFixed a problem where the wrong descriptor length was calculated for the 
1328193267SjkimEndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 
1329193267Sjkimare calculated as 12 bytes long, but the actual length in the internal 
1330193267Sjkimdescriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 
1331193267Sjkimby Linn Crosetto. BZ 728
1332193267Sjkim
1333193267SjkimFixed a possible memory leak in the Unload operator. The DdbHandle returned 
1334193267Sjkimby Load() did not have its reference count decremented during unload, leading 
1335193267Sjkimto a memory leak. Lin Ming. BZ 727
1336193267Sjkim
1337193267SjkimFixed a possible memory leak when deleting thermal/processor objects. Any 
1338193267Sjkimassociated notify handlers (and objects) were not being deleted. Fiodor 
1339193267SjkimSuietov. BZ 506
1340193267Sjkim
1341193267SjkimFixed the ordering of the ASCII names in the global mutex table to match the 
1342193267Sjkimactual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 
1343193267SjkimVegard Nossum. BZ 726
1344193267Sjkim
1345193267SjkimEnhanced the AcpiGetObjectInfo interface to return the number of required 
1346193267Sjkimarguments if the object is a control method. Added this call to the debugger 
1347193267Sjkimso the proper number of default arguments are passed to a method. This 
1348193267Sjkimprevents a warning when executing methods from AcpiExec.
1349193267Sjkim
1350193267SjkimAdded a check for an invalid handle in AcpiGetObjectInfo. Return 
1351193267SjkimAE_BAD_PARAMETER if input handle is invalid. BZ 474
1352193267Sjkim
1353193267SjkimFixed an extraneous warning from exconfig.c on the 64-bit build.
1354193267Sjkim
1355193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1356193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1357193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
1358193267Sjkimmuch larger code and data size.
1359193267Sjkim
1360193267Sjkim  Previous Release:
1361193267Sjkim    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
1362193267Sjkim    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
1363193267Sjkim  Current Release:
1364193267Sjkim    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
1365193267Sjkim    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
1366193267Sjkim
1367193267Sjkim2) iASL Compiler/Disassembler and Tools:
1368193267Sjkim
1369193267SjkimiASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 
1370193267Sjkimresource descriptor names.
1371193267Sjkim
1372193267SjkimiASL: Detect invalid ASCII characters in input (windows version). Removed the 
1373193267Sjkim"-CF" flag from the flex compile, enables correct detection of non-ASCII 
1374193267Sjkimcharacters in the input. BZ 441
1375193267Sjkim
1376193267SjkimiASL: Eliminate warning when result of LoadTable is not used. Eliminate the 
1377193267Sjkim"result of operation not used" warning when the DDB handle returned from 
1378193267SjkimLoadTable is not used. The warning is not needed. BZ 590
1379193267Sjkim
1380193267SjkimAcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 
1381193267Sjkimpass address of table to the AML. Added option to disable OpRegion simulation 
1382193267Sjkimto allow creation of an OpRegion with a real address that was passed to _CFG. 
1383193267SjkimAll of this allows testing of the Load and Unload operators from AcpiExec.
1384193267Sjkim
1385193267SjkimDebugger: update tables command for unloaded tables. Handle unloaded tables 
1386193267Sjkimand use the standard table header output routine.
1387193267Sjkim
1388193267Sjkim----------------------------------------
1389193267Sjkim09 June 2008. Summary of changes for version 20080609:
1390193267Sjkim
1391193267Sjkim1) ACPI CA Core Subsystem:
1392193267Sjkim
1393193267SjkimImplemented a workaround for reversed _PRT entries. A significant number of 
1394193267SjkimBIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 
1395193267Sjkimchange dynamically detects and repairs this problem. Provides compatibility 
1396193267Sjkimwith MS ACPI. BZ 6859
1397193267Sjkim
1398193267SjkimSimplified the internal ACPI hardware interfaces to eliminate the locking 
1399193267Sjkimflag parameter from Register Read/Write. Added a new external interface, 
1400193267SjkimAcpiGetRegisterUnlocked.
1401193267Sjkim
1402193267SjkimFixed a problem where the invocation of a GPE control method could hang. This 
1403193267Sjkimwas a regression introduced in 20080514. The new method argument count 
1404193267Sjkimvalidation mechanism can enter an infinite loop when a GPE method is 
1405193267Sjkimdispatched. Problem fixed by removing the obsolete code that passed GPE block 
1406193267Sjkiminformation to the notify handler via the control method parameter pointer.
1407193267Sjkim
1408193267SjkimFixed a problem where the _SST execution status was incorrectly returned to 
1409193267Sjkimthe caller of AcpiEnterSleepStatePrep. This was a regression introduced in 
1410193267Sjkim20080514. _SST is optional and a NOT_FOUND exception should never be 
1411193267Sjkimreturned. BZ 716
1412193267Sjkim
1413193267SjkimFixed a problem where a deleted object could be accessed from within the AML 
1414193267Sjkimparser. This was a regression introduced in version 20080123 as a fix for the 
1415193267SjkimUnload operator. Lin Ming. BZ 10669
1416193267Sjkim
1417193267SjkimCleaned up the debug operand dump mechanism. Eliminated unnecessary operands 
1418193267Sjkimand eliminated the use of a negative index in a loop. Operands are now 
1419193267Sjkimdisplayed in the correct order, not backwards. This also fixes a regression 
1420193267Sjkimintroduced in 20080514 on 64-bit systems where the elimination of 
1421193267SjkimACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715
1422193267Sjkim
1423193267SjkimFixed a possible memory leak in EvPciConfigRegionSetup where the error exit 
1424193267Sjkimpath did not delete a locally allocated structure.
1425193267Sjkim
1426193267SjkimUpdated definitions for the DMAR and SRAT tables to synchronize with the 
1427193267Sjkimcurrent specifications. Includes disassembler support.
1428193267Sjkim
1429193267SjkimFixed a problem in the mutex debug code (in utmutex.c) where an incorrect 
1430193267Sjkimloop termination value was used. Loop terminated on iteration early, missing 
1431193267Sjkimone mutex. Linn Crosetto
1432193267Sjkim
1433193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1434193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1435193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
1436193267Sjkimmuch larger code and data size.
1437193267Sjkim
1438193267Sjkim  Previous Release:
1439193267Sjkim    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
1440193267Sjkim    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
1441193267Sjkim  Current Release:
1442193267Sjkim    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
1443193267Sjkim    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
1444193267Sjkim
1445193267Sjkim2) iASL Compiler/Disassembler and Tools:
1446193267Sjkim
1447193267SjkimDisassembler: Implemented support for EisaId() within _CID objects. Now 
1448193267Sjkimdisassemble integer _CID objects back to EisaId invocations, including 
1449193267Sjkimmultiple integers within _CID packages. Includes single-step support for 
1450193267Sjkimdebugger also.
1451193267Sjkim
1452193267SjkimDisassembler: Added support for DMAR and SRAT table definition changes.
1453193267Sjkim
1454193267Sjkim----------------------------------------
1455193267Sjkim14 May 2008. Summary of changes for version 20080514:
1456193267Sjkim
1457193267Sjkim1) ACPI CA Core Subsystem:
1458193267Sjkim
1459193267SjkimFixed a problem where GPEs were enabled too early during the ACPICA 
1460193267Sjkiminitialization. This could lead to "handler not installed" errors on some 
1461193267Sjkimmachines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 
1462193267Sjkimensures that all operation regions and devices throughout the namespace have 
1463193267Sjkimbeen initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
1464193267Sjkim
1465193267SjkimImplemented a change to the enter sleep code. Moved execution of the _GTS 
1466193267Sjkimmethod to just before setting sleep enable bit. The execution was moved from 
1467193267SjkimAcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 
1468193267Sjkimimmediately before the SLP_EN bit is set, as per the ACPI specification. 
1469193267SjkimLuming Yu, BZ 1653.
1470193267Sjkim
1471193267SjkimImplemented a fix to disable unknown GPEs (2nd version). Now always disable 
1472193267Sjkimthe GPE, even if ACPICA thinks that that it is already disabled. It is 
1473193267Sjkimpossible that the AML or some other code has enabled the GPE unbeknownst to 
1474193267Sjkimthe ACPICA code.
1475193267Sjkim
1476193267SjkimFixed a problem with the Field operator where zero-length fields would return 
1477193267Sjkiman AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 
1478193267Sjkimfield declarations in Field(), BankField(), and IndexField(). BZ 10606.
1479193267Sjkim
1480193267SjkimImplemented a fix for the Load operator, now load the table at the namespace 
1481193267Sjkimroot. This reverts a change introduced in version 20071019. The table is now 
1482193267Sjkimloaded at the namespace root even though this goes against the ACPI 
1483193267Sjkimspecification. This provides compatibility with other ACPI implementations. 
1484193267SjkimThe ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming.
1485193267Sjkim
1486193267SjkimFixed a problem where ACPICA would not Load() tables with unusual signatures. 
1487193267SjkimNow ignore ACPI table signature for Load() operator. Only "SSDT" is 
1488193267Sjkimacceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 
1489193267SjkimTherefore, signature validation is worthless. Apparently MS ACPI accepts such 
1490193267Sjkimsignatures, ACPICA must be compatible. BZ 10454.
1491193267Sjkim
1492193267SjkimFixed a possible negative array index in AcpiUtValidateException. Added NULL 
1493193267Sjkimfields to the exception string arrays to eliminate a -1 subtraction on the 
1494193267SjkimSubStatus field.
1495193267Sjkim
1496193267SjkimUpdated the debug tracking macros to reduce overall code and data size. 
1497193267SjkimChanged ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 
1498193267Sjkiminstead of pointers to static strings. Jan Beulich and Bob Moore.
1499193267Sjkim
1500193267SjkimImplemented argument count checking in control method invocation via 
1501193267SjkimAcpiEvaluateObject. Now emit an error if too few arguments, warning if too 
1502193267Sjkimmany. This applies only to extern programmatic control method execution, not 
1503193267Sjkimmethod-to-method calls within the AML. Lin Ming.
1504193267Sjkim
1505193267SjkimEliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 
1506193267Sjkimlonger needed, especially with the removal of 16-bit support. It was replaced 
1507193267Sjkimmostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 
1508193267Sjkim32/64-bit platforms is required.
1509193267Sjkim
1510193267SjkimAdded the C const qualifier for appropriate string constants -- mostly 
1511193267SjkimMODULE_NAME and printf format strings. Jan Beulich.
1512193267Sjkim
1513193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1514193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1515193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 
1516193267Sjkimmuch larger code and data size.
1517193267Sjkim
1518193267Sjkim  Previous Release:
1519193267Sjkim    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
1520193267Sjkim    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
1521193267Sjkim  Current Release:
1522193267Sjkim    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
1523193267Sjkim    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
1524193267Sjkim
1525193267Sjkim2) iASL Compiler/Disassembler and Tools:
1526193267Sjkim
1527193267SjkimImplemented ACPI table revision ID validation in the disassembler. Zero is 
1528193267Sjkimalways invalid. For DSDTs, the ID controls the interpreter integer width. 1 
1529193267Sjkimmeans 32-bit and this is unusual. 2 or greater is 64-bit.
1530193267Sjkim
1531193267Sjkim----------------------------------------
1532193267Sjkim21 March 2008. Summary of changes for version 20080321:
1533193267Sjkim
1534193267Sjkim1) ACPI CA Core Subsystem:
1535193267Sjkim
1536193267SjkimImplemented an additional change to the GPE support in order to suppress 
1537193267Sjkimspurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 
1538193267Sjkimdisable incoming GPEs that are neither enabled nor disabled -- meaning that 
1539193267Sjkimthe GPE is unknown to the system. This should prevent future interrupt floods 
1540193267Sjkimfrom that GPE. BZ 6217 (Zhang Rui)
1541193267Sjkim
1542193267SjkimFixed a problem where NULL package elements were not returned to the 
1543193267SjkimAcpiEvaluateObject interface correctly. The element was simply ignored 
1544193267Sjkiminstead of returning a NULL ACPI_OBJECT package element, potentially causing 
1545193267Sjkima buffer overflow and/or confusing the caller who expected a fixed number of 
1546193267Sjkimelements. BZ 10132 (Lin Ming, Bob Moore)
1547193267Sjkim
1548193267SjkimFixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 
1549193267SjkimQword), Field, BankField, and IndexField operators when invoked from inside 
1550193267Sjkiman executing control method. In this case, these operators created namespace 
1551193267Sjkimnodes that were incorrectly left marked as permanent nodes instead of 
1552193267Sjkimtemporary nodes. This could cause a problem if there is race condition 
1553193267Sjkimbetween an exiting control method and a running namespace walk. (Reported by 
1554193267SjkimLinn Crosetto)
1555193267Sjkim
1556193267SjkimFixed a problem where the CreateField and CreateXXXField operators would 
1557193267Sjkimincorrectly allow duplicate names (the name of the field) with no exception 
1558193267Sjkimgenerated.
1559193267Sjkim
1560193267SjkimImplemented several changes for Notify handling. Added support for new Notify 
1561193267Sjkimvalues (ACPI 2.0+) and improved the Notify debug output. Notify on 
1562193267SjkimPowerResource objects is no longer allowed, as per the ACPI specification. 
1563193267Sjkim(Bob Moore, Zhang Rui)
1564193267Sjkim
1565193267SjkimAll Reference Objects returned via the AcpiEvaluateObject interface are now 
1566193267Sjkimmarked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 
1567193267SjkimNULL objects - either NULL package elements or unresolved named references.
1568193267Sjkim
1569193267SjkimFixed a problem where an extraneous debug message was produced for package 
1570193267Sjkimobjects (when debugging enabled). The message "Package List length larger 
1571193267Sjkimthan NumElements count" is now produced in the correct case, and is now an 
1572193267Sjkimerror message rather than a debug message. Added a debug message for the 
1573193267Sjkimopposite case, where NumElements is larger than the Package List (the package 
1574193267Sjkimwill be padded out with NULL elements as per the ACPI spec.)
1575193267Sjkim
1576193267SjkimImplemented several improvements for the output of the ASL "Debug" object to 
1577193267Sjkimclarify and keep all data for a given object on one output line.
1578193267Sjkim
1579193267SjkimFixed two size calculation issues with the variable-length Start Dependent 
1580193267Sjkimresource descriptor.
1581193267Sjkim
1582193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1583193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1584193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1585193267Sjkima much larger code and data size.
1586193267Sjkim
1587193267Sjkim  Previous Release:
1588193267Sjkim    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
1589193267Sjkim    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
1590193267Sjkim  Current Release:
1591193267Sjkim    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
1592193267Sjkim    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
1593193267Sjkim
1594193267Sjkim2) iASL Compiler/Disassembler and Tools:
1595193267Sjkim
1596193267SjkimFixed a problem with the use of the Switch operator where execution of the 
1597193267Sjkimcontaining method by multiple concurrent threads could cause an 
1598193267SjkimAE_ALREADY_EXISTS exception. This is caused by the fact that there is no 
1599193267Sjkimactual Switch opcode, it must be simulated with local named temporary 
1600193267Sjkimvariables and if/else pairs. The solution chosen was to mark any method that 
1601193267Sjkimuses Switch as Serialized, thus preventing multiple thread entries. BZ 469.
1602193267Sjkim
1603193267Sjkim----------------------------------------
1604193267Sjkim13 February 2008. Summary of changes for version 20080213:
1605193267Sjkim
1606193267Sjkim1) ACPI CA Core Subsystem:
1607193267Sjkim
1608193267SjkimImplemented another MS compatibility design change for GPE/Notify handling. 
1609193267SjkimGPEs are now cleared/enabled asynchronously to allow all pending notifies to 
1610193267Sjkimcomplete first. It is expected that the OSL will queue the enable request 
1611193267Sjkimbehind all pending notify requests (may require changes to the local host OSL 
1612193267Sjkimin AcpiOsExecute). Alexey Starikovskiy.
1613193267Sjkim
1614193267SjkimFixed a problem where buffer and package objects passed as arguments to a 
1615193267Sjkimcontrol method via the external AcpiEvaluateObject interface could cause an 
1616193267SjkimAE_AML_INTERNAL exception depending on the order and type of operators 
1617193267Sjkimexecuted by the target control method.
1618193267Sjkim
1619193267SjkimFixed a problem where resource descriptor size optimization could cause a 
1620193267Sjkimproblem when a _CRS resource template is passed to a _SRS method. The _SRS 
1621193267Sjkimresource template must use the same descriptors (with the same size) as 
1622193267Sjkimreturned from _CRS. This change affects the following resource descriptors: 
1623193267SjkimIRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487)
1624193267Sjkim
1625193267SjkimFixed a problem where a CopyObject to RegionField, BankField, and IndexField 
1626193267Sjkimobjects did not perform an implicit conversion as it should. These types must 
1627193267Sjkimretain their initial type permanently as per the ACPI specification. However, 
1628193267Sjkima CopyObject to all other object types should not perform an implicit 
1629193267Sjkimconversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
1630193267Sjkim
1631193267SjkimFixed a problem with the AcpiGetDevices interface where the mechanism to 
1632193267Sjkimmatch device CIDs did not examine the entire list of available CIDs, but 
1633193267Sjkiminstead aborted on the first non-matching CID. Andrew Patterson.
1634193267Sjkim
1635193267SjkimFixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 
1636193267Sjkiminadvertently changed to return a 16-bit value instead of a 32-bit value, 
1637193267Sjkimtruncating the upper dword of a 64-bit value. This macro is only used to 
1638193267Sjkimdisplay debug output, so no incorrect calculations were made. Also, 
1639193267Sjkimreimplemented the macro so that a 64-bit shift is not performed by 
1640193267Sjkiminefficient compilers.
1641193267Sjkim
1642193267SjkimAdded missing va_end statements that should correspond with each va_start 
1643193267Sjkimstatement.
1644193267Sjkim
1645193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1646193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1647193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1648193267Sjkima much larger code and data size.
1649193267Sjkim
1650193267Sjkim  Previous Release:
1651193267Sjkim    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
1652193267Sjkim    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
1653193267Sjkim  Current Release:
1654193267Sjkim    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
1655193267Sjkim    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
1656193267Sjkim
1657193267Sjkim2) iASL Compiler/Disassembler and Tools:
1658193267Sjkim
1659193267SjkimImplemented full disassembler support for the following new ACPI tables: 
1660193267SjkimBERT, EINJ, and ERST. Implemented partial disassembler support for the 
1661193267Sjkimcomplicated HEST table. These tables support the Windows Hardware Error 
1662193267SjkimArchitecture (WHEA).
1663193267Sjkim
1664193267Sjkim----------------------------------------
1665193267Sjkim23 January 2008. Summary of changes for version 20080123:
1666193267Sjkim
1667193267Sjkim1) ACPI CA Core Subsystem:
1668193267Sjkim
1669193267SjkimAdded the 2008 copyright to all module headers and signons. This affects 
1670193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 
1671193267Sjkimthe tools/utilities.
1672193267Sjkim
1673193267SjkimFixed a problem with the SizeOf operator when used with Package and Buffer 
1674193267Sjkimobjects. These objects have deferred execution for some arguments, and the 
1675193267Sjkimexecution is now completed before the SizeOf is executed. This problem caused 
1676193267Sjkimunexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 
1677193267Sjkim9558
1678193267Sjkim
1679193267SjkimImplemented an enhancement to the interpreter "slack mode". In the absence of 
1680193267Sjkiman explicit return or an implicitly returned object from the last executed 
1681193267Sjkimopcode, a control method will now implicitly return an integer of value 0 for 
1682193267SjkimMicrosoft compatibility. (Lin Ming) BZ 392
1683193267Sjkim
1684193267SjkimFixed a problem with the Load operator where an exception was not returned in 
1685193267Sjkimthe case where the table is already loaded. (Lin Ming) BZ 463
1686193267Sjkim
1687193267SjkimImplemented support for the use of DDBHandles as an Indexed Reference, as per 
1688193267Sjkimthe ACPI spec. (Lin Ming) BZ 486
1689193267Sjkim
1690193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 
1691193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580
1692193267Sjkim
1693193267SjkimFixed a problem with the LoadTable operator where the OemId and OemTableId 
1694193267Sjkiminput strings could cause unexpected failures if they were shorter than the 
1695193267Sjkimmaximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
1696193267Sjkim
1697193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 
1698193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580
1699193267Sjkim
1700193267SjkimImplemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 
1701193267SjkimIBFT, UEFI, WDAT. Disassembler support is forthcoming.
1702193267Sjkim
1703193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1704193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1705193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1706193267Sjkima much larger code and data size.
1707193267Sjkim
1708193267Sjkim  Previous Release:
1709193267Sjkim    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
1710193267Sjkim    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
1711193267Sjkim  Current Release:
1712193267Sjkim    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
1713193267Sjkim    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
1714193267Sjkim
1715193267Sjkim2) iASL Compiler/Disassembler and Tools:
1716193267Sjkim
1717193267SjkimImplemented support in the disassembler for checksum validation on incoming 
1718193267Sjkimbinary DSDTs and SSDTs. If incorrect, a message is displayed within the table 
1719193267Sjkimheader dump at the start of the disassembly.
1720193267Sjkim
1721193267SjkimImplemented additional debugging information in the namespace listing file 
1722193267Sjkimcreated during compilation. In addition to the namespace hierarchy, the full 
1723193267Sjkimpathname to each namespace object is displayed.
1724193267Sjkim
1725193267SjkimFixed a problem with the disassembler where invalid ACPI tables could cause 
1726193267Sjkimfaults or infinite loops.
1727193267Sjkim
1728193267SjkimFixed an unexpected parse error when using the optional "parameter types" 
1729193267Sjkimlist in a control method declaration. (Lin Ming) BZ 397
1730193267Sjkim
1731193267SjkimFixed a problem where two External declarations with the same name did not 
1732193267Sjkimcause an error (Lin Ming) BZ 509
1733193267Sjkim
1734193267SjkimImplemented support for full TermArgs (adding Argx, Localx and method 
1735193267Sjkiminvocation) for the ParameterData parameter to the LoadTable operator. (Lin 
1736193267SjkimMing) BZ 583,587
1737193267Sjkim
1738193267Sjkim----------------------------------------
1739193267Sjkim19 December 2007. Summary of changes for version 20071219:
1740193267Sjkim
1741193267Sjkim1) ACPI CA Core Subsystem:
1742193267Sjkim
1743193267SjkimImplemented full support for deferred execution for the TermArg string 
1744193267Sjkimarguments for DataTableRegion. This enables forward references and full 
1745193267Sjkimoperand resolution for the three string arguments. Similar to OperationRegion 
1746193267Sjkimdeferred argument execution.) Lin Ming. BZ 430
1747193267Sjkim
1748193267SjkimImplemented full argument resolution support for the BankValue argument to 
1749193267SjkimBankField. Previously, only constants were supported, now any TermArg may be 
1750193267Sjkimused. Lin Ming BZ 387, 393
1751193267Sjkim
1752193267SjkimFixed a problem with AcpiGetDevices where the search of a branch of the 
1753193267Sjkimdevice tree could be terminated prematurely. In accordance with the ACPI 
1754193267Sjkimspecification, the search down the current branch is terminated if a device 
1755193267Sjkimis both not present and not functional (instead of just not present.) Yakui 
1756193267SjkimZhao.
1757193267Sjkim
1758193267SjkimFixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 
1759193267Sjkimthe underlying AML code changed the GPE enable registers. Now, any unknown 
1760193267Sjkimincoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 
1761193267Sjkiminstead of simply ignored. Rui Zhang.
1762193267Sjkim
1763193267SjkimFixed a problem with Index Fields where the Index register was incorrectly 
1764193267Sjkimlimited to a maximum of 32 bits. Now any size may be used.
1765193267Sjkim
1766193267SjkimFixed a couple memory leaks associated with "implicit return" objects when 
1767193267Sjkimthe AML Interpreter slack mode is enabled. Lin Ming BZ 349
1768193267Sjkim
1769193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1770193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1771193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1772193267Sjkima much larger code and data size.
1773193267Sjkim
1774193267Sjkim  Previous Release:
1775193267Sjkim    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
1776193267Sjkim    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
1777193267Sjkim  Current Release:
1778193267Sjkim    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
1779193267Sjkim    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
1780193267Sjkim
1781193267Sjkim----------------------------------------
1782193267Sjkim14 November 2007. Summary of changes for version 20071114:
1783193267Sjkim
1784193267Sjkim1) ACPI CA Core Subsystem:
1785193267Sjkim
1786193267SjkimImplemented event counters for each of the Fixed Events, the ACPI SCI 
1787193267Sjkim(interrupt) itself, and control methods executed. Named 
1788193267SjkimAcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 
1789193267Sjkimshould be useful for debugging and statistics.
1790193267Sjkim
1791193267SjkimImplemented a new external interface, AcpiGetStatistics, to retrieve the 
1792193267Sjkimcontents of the various event counters. Returns the current values for 
1793193267SjkimAcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 
1794193267SjkimAcpiMethodCount. The interface can be expanded in the future if new counters 
1795193267Sjkimare added. Device drivers should use this interface rather than access the 
1796193267Sjkimcounters directly.
1797193267Sjkim
1798193267SjkimFixed a problem with the FromBCD and ToBCD operators. With some compilers, 
1799193267Sjkimthe ShortDivide function worked incorrectly, causing problems with the BCD 
1800193267Sjkimfunctions with large input values. A truncation from 64-bit to 32-bit 
1801193267Sjkiminadvertently occurred. Internal BZ 435. Lin Ming
1802193267Sjkim
1803193267SjkimFixed a problem with Index references passed as method arguments. References 
1804193267Sjkimpassed as arguments to control methods were dereferenced immediately (before 
1805193267Sjkimcontrol was passed to the called method). The references are now correctly 
1806193267Sjkimpassed directly to the called method. BZ 5389. Lin Ming
1807193267Sjkim
1808193267SjkimFixed a problem with CopyObject used in conjunction with the Index operator. 
1809193267SjkimThe reference was incorrectly dereferenced before the copy. The reference is 
1810193267Sjkimnow correctly copied. BZ 5391. Lin Ming
1811193267Sjkim
1812193267SjkimFixed a problem with Control Method references within Package objects. These 
1813193267Sjkimreferences are now correctly generated. This completes the package 
1814193267Sjkimconstruction overhaul that began in version 20071019.
1815193267Sjkim
1816193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1817193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1818193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1819193267Sjkima much larger code and data size.
1820193267Sjkim
1821193267Sjkim  Previous Release:
1822193267Sjkim    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
1823193267Sjkim    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
1824193267Sjkim  Current Release:
1825193267Sjkim    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
1826193267Sjkim    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
1827193267Sjkim
1828193267Sjkim
1829193267Sjkim2) iASL Compiler/Disassembler and Tools:
1830193267Sjkim
1831193267SjkimThe AcpiExec utility now installs handlers for all of the predefined 
1832193267SjkimOperation Region types. New types supported are: PCI_Config, CMOS, and 
1833193267SjkimPCIBARTarget.
1834193267Sjkim
1835193267SjkimFixed a problem with the 64-bit version of AcpiExec where the extended (64-
1836193267Sjkimbit) address fields for the DSDT and FACS within the FADT were not being 
1837193267Sjkimused, causing truncation of the upper 32-bits of these addresses. Lin Ming 
1838193267Sjkimand Bob Moore
1839193267Sjkim
1840193267Sjkim----------------------------------------
1841193267Sjkim19 October 2007. Summary of changes for version 20071019:
1842193267Sjkim
1843193267Sjkim1) ACPI CA Core Subsystem:
1844193267Sjkim
1845193267SjkimFixed a problem with the Alias operator when the target of the alias is a 
1846193267Sjkimnamed ASL operator that opens a new scope -- Scope, Device, PowerResource, 
1847193267SjkimProcessor, and ThermalZone. In these cases, any children of the original 
1848193267Sjkimoperator could not be accessed via the alias, potentially causing unexpected 
1849193267SjkimAE_NOT_FOUND exceptions. (BZ 9067)
1850193267Sjkim
1851193267SjkimFixed a problem with the Package operator where all named references were 
1852193267Sjkimcreated as object references and left otherwise unresolved. According to the 
1853193267SjkimACPI specification, a Package can only contain Data Objects or references to 
1854193267Sjkimcontrol methods. The implication is that named references to Data Objects 
1855193267Sjkim(Integer, Buffer, String, Package, BufferField, Field) should be resolved 
1856193267Sjkimimmediately upon package creation. This is the approach taken with this 
1857193267Sjkimchange. References to all other named objects (Methods, Devices, Scopes, 
1858193267Sjkimetc.) are all now properly created as reference objects. (BZ 5328)
1859193267Sjkim
1860193267SjkimReverted a change to Notify handling that was introduced in version 
1861193267Sjkim20070508. This version changed the Notify handling from asynchronous to 
1862193267Sjkimfully synchronous (Device driver Notify handling with respect to the Notify 
1863193267SjkimASL operator). It was found that this change caused more problems than it 
1864193267Sjkimsolved and was removed by most users.
1865193267Sjkim
1866193267SjkimFixed a problem with the Increment and Decrement operators where the type of 
1867193267Sjkimthe target object could be unexpectedly and incorrectly changed. (BZ 353) 
1868193267SjkimLin Ming.
1869193267Sjkim
1870193267SjkimFixed a problem with the Load and LoadTable operators where the table 
1871193267Sjkimlocation within the namespace was ignored. Instead, the table was always 
1872193267Sjkimloaded into the root or current scope. Lin Ming.
1873193267Sjkim
1874193267SjkimFixed a problem with the Load operator when loading a table from a buffer 
1875193267Sjkimobject. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
1876193267Sjkim
1877193267SjkimFixed a problem with the Debug object where a store of a DdbHandle reference 
1878193267Sjkimobject to the Debug object could cause a fault.
1879193267Sjkim
1880193267SjkimAdded a table checksum verification for the Load operator, in the case where 
1881193267Sjkimthe load is from a buffer. (BZ 578).
1882193267Sjkim
1883193267SjkimImplemented additional parameter validation for the LoadTable operator. The 
1884193267Sjkimlength of the input strings SignatureString, OemIdString, and OemTableId are 
1885193267Sjkimnow checked for maximum lengths. (BZ 582) Lin Ming.
1886193267Sjkim
1887193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1888193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1889193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1890193267Sjkima much larger code and data size.
1891193267Sjkim
1892193267Sjkim  Previous Release:
1893193267Sjkim    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
1894193267Sjkim    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
1895193267Sjkim  Current Release:
1896193267Sjkim    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
1897193267Sjkim    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
1898193267Sjkim
1899193267Sjkim
1900193267Sjkim2) iASL Compiler/Disassembler:
1901193267Sjkim
1902193267SjkimFixed a problem where if a single file was specified and the file did not 
1903193267Sjkimexist, no error message was emitted. (Introduced with wildcard support in 
1904193267Sjkimversion 20070917.)
1905193267Sjkim
1906193267Sjkim----------------------------------------
1907193267Sjkim19 September 2007. Summary of changes for version 20070919:
1908193267Sjkim
1909193267Sjkim1) ACPI CA Core Subsystem:
1910193267Sjkim
1911193267SjkimDesigned and implemented new external interfaces to install and remove 
1912193267Sjkimhandlers for ACPI table-related events. Current events that are defined are 
1913193267SjkimLOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 
1914193267Sjkimthey are dynamically loaded and unloaded. See AcpiInstallTableHandler and 
1915193267SjkimAcpiRemoveTableHandler. (Lin Ming and Bob Moore)
1916193267Sjkim
1917193267SjkimFixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 
1918193267Sjkim(acpi_serialized option on Linux) could cause some systems to hang during 
1919193267Sjkiminitialization. (Bob Moore) BZ 8171
1920193267Sjkim
1921193267SjkimFixed a problem where objects of certain types (Device, ThermalZone, 
1922193267SjkimProcessor, PowerResource) can be not found if they are declared and 
1923193267Sjkimreferenced from within the same control method (Lin Ming) BZ 341
1924193267Sjkim
1925193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1926193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1927193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1928193267Sjkima much larger code and data size.
1929193267Sjkim
1930193267Sjkim  Previous Release:
1931193267Sjkim    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
1932193267Sjkim    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
1933193267Sjkim  Current Release:
1934193267Sjkim    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
1935193267Sjkim    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
1936193267Sjkim
1937193267Sjkim
1938193267Sjkim2) iASL Compiler/Disassembler:
1939193267Sjkim
1940193267SjkimImplemented support to allow multiple files to be compiled/disassembled in a 
1941193267Sjkimsingle invocation. This includes command line wildcard support for both the 
1942193267SjkimWindows and Unix versions of the compiler. This feature simplifies the 
1943193267Sjkimdisassembly and compilation of multiple ACPI tables in a single directory.
1944193267Sjkim
1945193267Sjkim----------------------------------------
1946193267Sjkim08 May 2007. Summary of changes for version 20070508:
1947193267Sjkim
1948193267Sjkim1) ACPI CA Core Subsystem:
1949193267Sjkim
1950193267SjkimImplemented a Microsoft compatibility design change for the handling of the 
1951193267SjkimNotify AML operator. Previously, notify handlers were dispatched and 
1952193267Sjkimexecuted completely asynchronously in a deferred thread. The new design 
1953193267Sjkimstill executes the notify handlers in a different thread, but the original 
1954193267Sjkimthread that executed the Notify() now waits at a synchronization point for 
1955193267Sjkimthe notify handler to complete. Some machines depend on a synchronous Notify 
1956193267Sjkimoperator in order to operate correctly.
1957193267Sjkim
1958193267SjkimImplemented support to allow Package objects to be passed as method 
1959193267Sjkimarguments to the external AcpiEvaluateObject interface. Previously, this 
1960193267Sjkimwould return the AE_NOT_IMPLEMENTED exception. This feature had not been 
1961193267Sjkimimplemented since there were no reserved control methods that required it 
1962193267Sjkimuntil recently.
1963193267Sjkim
1964193267SjkimFixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 
1965193267Sjkimcontained invalid non-zero values in reserved fields could cause later 
1966193267Sjkimfailures because these fields have meaning in later revisions of the FADT. 
1967193267SjkimFor incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 
1968193267Sjkimare: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
1969193267Sjkim
1970193267SjkimFixed a problem where the Global Lock handle was not properly updated if a 
1971193267Sjkimthread that acquired the Global Lock via executing AML code then attempted 
1972193267Sjkimto acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 
1973193267SjkimLiu.
1974193267Sjkim
1975193267SjkimFixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 
1976193267Sjkimcould be corrupted if the interrupt being removed was at the head of the 
1977193267Sjkimlist. Reported by Linn Crosetto.
1978193267Sjkim
1979193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
1980193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
1981193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
1982193267Sjkima much larger code and data size.
1983193267Sjkim
1984193267Sjkim  Previous Release:
1985193267Sjkim    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
1986193267Sjkim    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
1987193267Sjkim  Current Release:
1988193267Sjkim    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
1989193267Sjkim    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
1990193267Sjkim
1991193267Sjkim----------------------------------------
1992167802Sjkim20 March 2007. Summary of changes for version 20070320:
1993167802Sjkim
1994167802Sjkim1) ACPI CA Core Subsystem:
1995167802Sjkim
1996193267SjkimImplemented a change to the order of interpretation and evaluation of AML 
1997193267Sjkimoperand objects within the AML interpreter. The interpreter now evaluates 
1998193267Sjkimoperands in the order that they appear in the AML stream (and the 
1999193267Sjkimcorresponding ASL code), instead of in the reverse order (after the entire 
2000193267Sjkimoperand list has been parsed). The previous behavior caused several subtle 
2001193267Sjkimincompatibilities with the Microsoft AML interpreter as well as being 
2002193267Sjkimsomewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
2003167802Sjkim
2004193267SjkimImplemented a change to the ACPI Global Lock support. All interfaces to the 
2005193267Sjkimglobal lock now allow the same thread to acquire the lock multiple times. 
2006193267SjkimThis affects the AcpiAcquireGlobalLock external interface to the global lock 
2007193267Sjkimas well as the internal use of the global lock to support AML fields -- a 
2008193267Sjkimcontrol method that is holding the global lock can now simultaneously access 
2009193267SjkimAML fields that require global lock protection. Previously, in both cases, 
2010193267Sjkimthis would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 
2011193267SjkimAcpiAcquireGlobalLock is of special interest to drivers for the Embedded 
2012193267SjkimController. There is no change to the behavior of the AML Acquire operator, 
2013193267Sjkimas this can already be used to acquire a mutex multiple times by the same 
2014193267Sjkimthread. BZ 8066. With assistance from Alexey Starikovskiy.
2015167802Sjkim
2016193267SjkimFixed a problem where invalid objects could be referenced in the AML 
2017193267SjkimInterpreter after error conditions. During operand evaluation, ensure that 
2018193267Sjkimthe internal "Return Object" field is cleared on error and only valid 
2019193267Sjkimpointers are stored there. Caused occasional access to deleted objects that 
2020193267Sjkimresulted in "large reference count" warning messages. Valery Podrezov.
2021167802Sjkim
2022193267SjkimFixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 
2023193267Sjkimdeeply nested control method invocations. BZ 7873, local BZ 487. Valery 
2024193267SjkimPodrezov.
2025167802Sjkim
2026193267SjkimFixed an internal problem with the handling of result objects on the 
2027193267Sjkiminterpreter result stack. BZ 7872. Valery Podrezov.
2028167802Sjkim
2029193267SjkimRemoved obsolete code that handled the case where AML_NAME_OP is the target 
2030193267Sjkimof a reference (Reference.Opcode). This code was no longer necessary. BZ 
2031193267Sjkim7874. Valery Podrezov.
2032167802Sjkim
2033193267SjkimRemoved obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 
2034193267Sjkimremnant from the previously discontinued 16-bit support.
2035167802Sjkim
2036193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2037193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2038193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2039193267Sjkima much larger code and data size.
2040167802Sjkim
2041167802Sjkim  Previous Release:
2042167802Sjkim    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
2043167802Sjkim    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
2044167802Sjkim  Current Release:
2045167802Sjkim    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
2046167802Sjkim    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
2047167802Sjkim
2048167802Sjkim----------------------------------------
2049167802Sjkim26 January 2007. Summary of changes for version 20070126:
2050167802Sjkim
2051167802Sjkim1) ACPI CA Core Subsystem:
2052167802Sjkim
2053193267SjkimAdded the 2007 copyright to all module headers and signons. This affects 
2054193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 
2055193267Sjkimthe utilities.
2056167802Sjkim
2057193267SjkimImplemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 
2058193267Sjkimduring a table load. A bad pointer was passed in the case where the DSDT is 
2059193267Sjkimoverridden, causing a fault in this case.
2060167802Sjkim
2061193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2062193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2063193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2064193267Sjkima much larger code and data size.
2065167802Sjkim
2066167802Sjkim  Previous Release:
2067167802Sjkim    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
2068167802Sjkim    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
2069167802Sjkim  Current Release:
2070167802Sjkim    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
2071167802Sjkim    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
2072167802Sjkim
2073167802Sjkim----------------------------------------
2074167802Sjkim15 December 2006. Summary of changes for version 20061215:
2075167802Sjkim
2076167802Sjkim1) ACPI CA Core Subsystem:
2077167802Sjkim
2078193267SjkimSupport for 16-bit ACPICA has been completely removed since it is no longer 
2079193267Sjkimnecessary and it clutters the code. All 16-bit macros, types, and 
2080193267Sjkimconditional compiles have been removed, cleaning up and simplifying the code 
2081193267Sjkimacross the entire subsystem. DOS support is no longer needed since the 
2082193267Sjkimbootable Linux firmware kit is now available.
2083167802Sjkim
2084193267SjkimThe handler for the Global Lock is now removed during AcpiTerminate to 
2085193267Sjkimenable a clean subsystem restart, via the implementation of the 
2086193267SjkimAcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 
2087193267SjkimHP)
2088167802Sjkim
2089193267SjkimImplemented enhancements to the multithreading support within the debugger 
2090193267Sjkimto enable improved multithreading debugging and evaluation of the subsystem. 
2091167802Sjkim(Valery Podrezov)
2092167802Sjkim
2093193267SjkimDebugger: Enhanced the Statistics/Memory command to emit the total (maximum) 
2094193267Sjkimmemory used during the execution, as well as the maximum memory consumed by 
2095193267Sjkimeach of the various object types. (Valery Podrezov)
2096167802Sjkim
2097193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2098193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2099193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2100193267Sjkima much larger code and data size.
2101193267Sjkim
2102167802Sjkim  Previous Release:
2103167802Sjkim    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
2104167802Sjkim    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
2105167802Sjkim  Current Release:
2106167802Sjkim    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
2107167802Sjkim    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
2108167802Sjkim
2109167802Sjkim
2110167802Sjkim2) iASL Compiler/Disassembler and Tools:
2111167802Sjkim
2112193267SjkimAcpiExec: Implemented a new option (-m) to display full memory use 
2113193267Sjkimstatistics upon subsystem/program termination. (Valery Podrezov)
2114167802Sjkim
2115167802Sjkim----------------------------------------
2116167802Sjkim09 November 2006. Summary of changes for version 20061109:
2117167802Sjkim
2118167802Sjkim1) ACPI CA Core Subsystem:
2119167802Sjkim
2120193267SjkimOptimized the Load ASL operator in the case where the source operand is an 
2121193267Sjkimoperation region. Simply map the operation region memory, instead of 
2122193267Sjkimperforming a bytewise read. (Region must be of type SystemMemory, see 
2123193267Sjkimbelow.)
2124167802Sjkim
2125193267SjkimFixed the Load ASL operator for the case where the source operand is a 
2126193267Sjkimregion field. A buffer object is also allowed as the source operand. BZ 480
2127167802Sjkim
2128193267SjkimFixed a problem where the Load ASL operator allowed the source operand to be 
2129193267Sjkiman operation region of any type. It is now restricted to regions of type 
2130193267SjkimSystemMemory, as per the ACPI specification. BZ 481
2131167802Sjkim
2132193267SjkimAdditional cleanup and optimizations for the new Table Manager code.
2133167802Sjkim
2134193267SjkimAcpiEnable will now fail if all of the required ACPI tables are not loaded 
2135193267Sjkim(FADT, FACS, DSDT). BZ 477
2136167802Sjkim
2137193267SjkimAdded #pragma pack(8/4) to acobject.h to ensure that the structures in this 
2138193267Sjkimheader are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 
2139193267Sjkimmanually optimized to be aligned and will not work if it is byte-packed. 
2140167802Sjkim
2141193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2142193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2143193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2144193267Sjkima much larger code and data size.
2145167802Sjkim
2146167802Sjkim  Previous Release:
2147167802Sjkim    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
2148167802Sjkim    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
2149167802Sjkim  Current Release:
2150167802Sjkim    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
2151167802Sjkim    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
2152167802Sjkim
2153167802Sjkim
2154167802Sjkim2) iASL Compiler/Disassembler and Tools:
2155167802Sjkim
2156193267SjkimFixed a problem where the presence of the _OSI predefined control method 
2157193267Sjkimwithin complex expressions could cause an internal compiler error.
2158167802Sjkim
2159193267SjkimAcpiExec: Implemented full region support for multiple address spaces. 
2160193267SjkimSpaceId is now part of the REGION object. BZ 429
2161167802Sjkim
2162167802Sjkim----------------------------------------
2163167802Sjkim11 October 2006. Summary of changes for version 20061011:
2164167802Sjkim
2165167802Sjkim1) ACPI CA Core Subsystem:
2166167802Sjkim
2167193267SjkimCompleted an AML interpreter performance enhancement for control method 
2168193267Sjkimexecution. Previously a 2-pass parse/execution, control methods are now 
2169193267Sjkimcompletely parsed and executed in a single pass. This improves overall 
2170193267Sjkiminterpreter performance by ~25%, reduces code size, and reduces CPU stack 
2171193267Sjkimuse. (Valery Podrezov + interpreter changes in version 20051202 that 
2172193267Sjkimeliminated namespace loading during the pass one parse.)
2173167802Sjkim
2174193267SjkimImplemented _CID support for PCI Root Bridge detection. If the _HID does not 
2175193267Sjkimmatch the predefined PCI Root Bridge IDs, the _CID list (if present) is now 
2176193267Sjkimobtained and also checked for an ID match.
2177167802Sjkim
2178193267SjkimImplemented additional support for the PCI _ADR execution: upsearch until a 
2179193267Sjkimdevice scope is found before executing _ADR. This allows PCI_Config 
2180193267Sjkimoperation regions to be declared locally within control methods underneath 
2181193267SjkimPCI device objects.
2182167802Sjkim
2183193267SjkimFixed a problem with a possible race condition between threads executing 
2184193267SjkimAcpiWalkNamespace and the AML interpreter. This condition was removed by 
2185193267Sjkimmodifying AcpiWalkNamespace to (by default) ignore all temporary namespace 
2186193267Sjkimentries created during any concurrent control method execution. An 
2187193267Sjkimadditional namespace race condition is known to exist between 
2188193267SjkimAcpiWalkNamespace and the Load/Unload ASL operators and is still under 
2189193267Sjkiminvestigation.
2190167802Sjkim
2191193267SjkimRestructured the AML ParseLoop function, breaking it into several 
2192193267Sjkimsubfunctions in order to reduce CPU stack use and improve maintainability. 
2193193267Sjkim(Mikhail Kouzmich)
2194167802Sjkim
2195193267SjkimAcpiGetHandle: Fix for parameter validation to detect invalid combinations 
2196193267Sjkimof prefix handle and pathname. BZ 478
2197167802Sjkim
2198193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2199193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2200193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2201193267Sjkima much larger code and data size.
2202167802Sjkim
2203167802Sjkim  Previous Release:
2204167802Sjkim    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
2205167802Sjkim    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
2206167802Sjkim  Current Release:
2207167802Sjkim    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
2208167802Sjkim    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
2209167802Sjkim
2210167802Sjkim2) iASL Compiler/Disassembler and Tools:
2211167802Sjkim
2212193267SjkimPorted the -g option (get local ACPI tables) to the new ACPICA Table Manager 
2213193267Sjkimto restore original behavior.
2214167802Sjkim
2215167802Sjkim----------------------------------------
2216167802Sjkim27 September 2006. Summary of changes for version 20060927:
2217167802Sjkim
2218167802Sjkim1) ACPI CA Core Subsystem:
2219167802Sjkim
2220193267SjkimRemoved the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 
2221193267SjkimThese functions now use a spinlock for mutual exclusion and the interrupt 
2222193267Sjkimlevel indication flag is not needed.
2223167802Sjkim
2224193267SjkimFixed a problem with the Global Lock where the lock could appear to be 
2225193267Sjkimobtained before it is actually obtained. The global lock semaphore was 
2226193267Sjkiminadvertently created with one unit instead of zero units. (BZ 464) Fiodor 
2227193267SjkimSuietov.
2228167802Sjkim
2229193267SjkimFixed a possible memory leak and fault in AcpiExResolveObjectToValue during 
2230193267Sjkima read from a buffer or region field. (BZ 458) Fiodor Suietov.
2231167802Sjkim
2232193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2233193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2234193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2235193267Sjkima much larger code and data size.
2236167802Sjkim
2237167802Sjkim  Previous Release:
2238167802Sjkim    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
2239167802Sjkim    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
2240167802Sjkim  Current Release:
2241167802Sjkim    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
2242167802Sjkim    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
2243167802Sjkim
2244167802Sjkim
2245167802Sjkim2) iASL Compiler/Disassembler and Tools:
2246167802Sjkim
2247193267SjkimFixed a compilation problem with the pre-defined Resource Descriptor field 
2248193267Sjkimnames where an "object does not exist" error could be incorrectly generated 
2249193267Sjkimif the parent ResourceTemplate pathname places the template within a 
2250193267Sjkimdifferent namespace scope than the current scope. (BZ 7212)
2251167802Sjkim
2252193267SjkimFixed a problem where the compiler could hang after syntax errors detected 
2253193267Sjkimin an ElseIf construct. (BZ 453)
2254167802Sjkim
2255193267SjkimFixed a problem with the AmlFilename parameter to the DefinitionBlock() 
2256193267Sjkimoperator. An incorrect output filename was produced when this parameter was 
2257193267Sjkima null string (""). Now, the original input filename is used as the AML 
2258193267Sjkimoutput filename, with an ".aml" extension.
2259167802Sjkim
2260193267SjkimImplemented a generic batch command mode for the AcpiExec utility (execute 
2261193267Sjkimany AML debugger command) (Valery Podrezov).
2262167802Sjkim
2263167802Sjkim----------------------------------------
2264167802Sjkim12 September 2006. Summary of changes for version 20060912:
2265167802Sjkim
2266167802Sjkim1) ACPI CA Core Subsystem:
2267167802Sjkim
2268193267SjkimEnhanced the implementation of the "serialized mode" of the interpreter 
2269193267Sjkim(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 
2270193267Sjkimspecified, instead of creating a serialization semaphore per control method, 
2271193267Sjkimthe interpreter lock is simply no longer released before a blocking 
2272193267Sjkimoperation during control method execution. This effectively makes the AML 
2273193267SjkimInterpreter single-threaded. The overhead of a semaphore per-method is 
2274193267Sjkimeliminated.
2275167802Sjkim
2276193267SjkimFixed a regression where an error was no longer emitted if a control method 
2277193267Sjkimattempts to create 2 objects of the same name. This once again returns 
2278193267SjkimAE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 
2279193267Sjkimwill dynamically serialize the control method to possible prevent future 
2280193267Sjkimerrors. (BZ 440)
2281167802Sjkim
2282193267SjkimIntegrated a fix for a problem with PCI Express HID detection in the PCI 
2283193267SjkimConfig Space setup procedure. (BZ 7145)
2284167802Sjkim
2285193267SjkimMoved all FADT-related functions to a new file, tbfadt.c. Eliminated the 
2286193267SjkimAcpiHwInitialize function - the FADT registers are now validated when the 
2287193267Sjkimtable is loaded.
2288167802Sjkim
2289193267SjkimAdded two new warnings during FADT verification - 1) if the FADT is larger 
2290193267Sjkimthan the largest known FADT version, and 2) if there is a mismatch between a 
2291193267Sjkim32-bit block address and the 64-bit X counterpart (when both are non-zero.)
2292167802Sjkim
2293193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2294193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2295193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2296193267Sjkima much larger code and data size.
2297167802Sjkim
2298167802Sjkim  Previous Release:
2299167802Sjkim    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
2300167802Sjkim    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
2301167802Sjkim  Current Release:
2302167802Sjkim    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
2303167802Sjkim    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
2304167802Sjkim
2305167802Sjkim
2306167802Sjkim2) iASL Compiler/Disassembler and Tools:
2307167802Sjkim
2308193267SjkimFixed a problem with the implementation of the Switch() operator where the 
2309193267Sjkimtemporary variable was declared too close to the actual Switch, instead of 
2310193267Sjkimat method level. This could cause a problem if the Switch() operator is 
2311193267Sjkimwithin a while loop, causing an error on the second iteration. (BZ 460)
2312167802Sjkim
2313193267SjkimDisassembler - fix for error emitted for unknown type for target of scope 
2314193267Sjkimoperator. Now, ignore it and continue.
2315167802Sjkim
2316193267SjkimDisassembly of an FADT now verifies the input FADT and reports any errors 
2317193267Sjkimfound. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
2318167802Sjkim
2319193267SjkimDisassembly of raw data buffers with byte initialization data now prefixes 
2320193267Sjkimeach output line with the current buffer offset.
2321167802Sjkim
2322193267SjkimDisassembly of ASF! table now includes all variable-length data fields at 
2323193267Sjkimthe end of some of the subtables.
2324167802Sjkim
2325193267SjkimThe disassembler now emits a comment if a buffer appears to be a 
2326193267SjkimResourceTemplate, but cannot be disassembled as such because the EndTag does 
2327193267Sjkimnot appear at the very end of the buffer.
2328167802Sjkim
2329193267SjkimAcpiExec - Added the "-t" command line option to enable the serialized mode 
2330193267Sjkimof the AML interpreter.
2331167802Sjkim
2332167802Sjkim----------------------------------------
2333167802Sjkim31 August 2006. Summary of changes for version 20060831:
2334167802Sjkim
2335167802Sjkim1) ACPI CA Core Subsystem:
2336167802Sjkim
2337167802SjkimMiscellaneous fixes for the Table Manager:
2338193267Sjkim- Correctly initialize internal common FADT for all 64-bit "X" fields
2339167802Sjkim- Fixed a couple table mapping issues during table load
2340167802Sjkim- Fixed a couple alignment issues for IA64
2341167802Sjkim- Initialize input array to zero in AcpiInitializeTables
2342193267Sjkim- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 
2343193267SjkimAcpiGetTableByIndex
2344167802Sjkim
2345193267SjkimChange for GPE support: when a "wake" GPE is received, all wake GPEs are now 
2346193267Sjkimimmediately disabled to prevent the waking GPE from firing again and to 
2347193267Sjkimprevent other wake GPEs from interrupting the wake process.
2348167802Sjkim
2349193267SjkimAdded the AcpiGpeCount global that tracks the number of processed GPEs, to 
2350193267Sjkimbe used for debugging systems with a large number of ACPI interrupts.
2351167802Sjkim
2352193267SjkimImplemented support for the "DMAR" ACPI table (DMA Redirection Table) in 
2353193267Sjkimboth the ACPICA headers and the disassembler.
2354167802Sjkim
2355193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2356193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2357193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2358193267Sjkima much larger code and data size.
2359167802Sjkim
2360167802Sjkim  Previous Release:
2361167802Sjkim    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
2362167802Sjkim    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
2363167802Sjkim  Current Release:
2364167802Sjkim    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
2365167802Sjkim    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
2366167802Sjkim
2367167802Sjkim
2368167802Sjkim2) iASL Compiler/Disassembler and Tools:
2369167802Sjkim
2370167802SjkimDisassembler support for the DMAR ACPI table.
2371167802Sjkim
2372167802Sjkim----------------------------------------
2373167802Sjkim23 August 2006. Summary of changes for version 20060823:
2374167802Sjkim
2375167802Sjkim1) ACPI CA Core Subsystem:
2376167802Sjkim
2377193267SjkimThe Table Manager component has been completely redesigned and 
2378193267Sjkimreimplemented. The new design is much simpler, and reduces the overall code 
2379193267Sjkimand data size of the kernel-resident ACPICA by approximately 5%. Also, it is 
2380193267Sjkimnow possible to obtain the ACPI tables very early during kernel 
2381193267Sjkiminitialization, even before dynamic memory management is initialized. 
2382193267Sjkim(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
2383167802Sjkim
2384167802SjkimObsolete ACPICA interfaces:
2385167802Sjkim
2386193267Sjkim- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 
2387193267Sjkimtime).
2388167802Sjkim- AcpiLoadTable: Not needed.
2389167802Sjkim- AcpiUnloadTable: Not needed.
2390167802Sjkim
2391167802SjkimNew ACPICA interfaces:
2392167802Sjkim
2393193267Sjkim- AcpiInitializeTables: Must be called before the table manager can be used.
2394193267Sjkim- AcpiReallocateRootTable: Used to transfer the root table to dynamically 
2395193267Sjkimallocated memory after it becomes available.
2396193267Sjkim- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 
2397193267Sjkimin the RSDT/XSDT.
2398167802Sjkim
2399167802SjkimOther ACPICA changes:
2400167802Sjkim
2401193267Sjkim- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 
2402193267SjkimAcpiOsUnmapMemory to free this mapping.
2403193267Sjkim- AcpiGetTable returns the actual mapped table. The mapping is managed 
2404193267Sjkiminternally and must not be deleted by the caller. Use of this interface 
2405193267Sjkimcauses no additional dynamic memory allocation.
2406193267Sjkim- AcpiFindRootPointer: Support for physical addressing has been eliminated, 
2407193267Sjkimit appeared to be unused.
2408193267Sjkim- The interface to AcpiOsMapMemory has changed to be consistent with the 
2409193267Sjkimother allocation interfaces.
2410193267Sjkim- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 
2411193267Sjkimparameters.
2412193267Sjkim- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64-
2413193267Sjkimbit platforms. Was previously 64 bits on all platforms.
2414193267Sjkim- The interface to the ACPI Global Lock acquire/release macros have changed 
2415193267Sjkimslightly since ACPICA no longer keeps a local copy of the FACS with a 
2416193267Sjkimconstructed pointer to the actual global lock.
2417167802Sjkim
2418167802SjkimPorting to the new table manager:
2419167802Sjkim
2420193267Sjkim- AcpiInitializeTables: Must be called once, and can be called anytime 
2421193267Sjkimduring the OS initialization process. It allows the host to specify an area 
2422193267Sjkimof memory to be used to store the internal version of the RSDT/XSDT (root 
2423193267Sjkimtable). This allows the host to access ACPI tables before memory management 
2424193267Sjkimis initialized and running.
2425193267Sjkim- AcpiReallocateRootTable: Can be called after memory management is running 
2426193267Sjkimto copy the root table to a dynamically allocated array, freeing up the 
2427193267Sjkimscratch memory specified in the call to AcpiInitializeTables.
2428193267Sjkim- AcpiSubsystemInitialize: This existing interface is independent of the 
2429193267SjkimTable Manager, and does not have to be called before the Table Manager can 
2430193267Sjkimbe used, it only must be called before the rest of ACPICA can be used.
2431193267Sjkim- ACPI Tables: Some changes have been made to the names and structure of the 
2432193267Sjkimactbl.h and actbl1.h header files and may require changes to existing code. 
2433193267SjkimFor example, bitfields have been completely removed because of their lack of 
2434193267Sjkimportability across C compilers.
2435193267Sjkim- Update interfaces to the Global Lock acquire/release macros if local 
2436193267Sjkimversions are used. (see acwin.h)
2437167802Sjkim
2438167802SjkimObsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
2439167802Sjkim
2440167802SjkimNew files: tbfind.c
2441167802Sjkim
2442193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2443193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2444193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2445193267Sjkima much larger code and data size.
2446167802Sjkim
2447167802Sjkim  Previous Release:
2448167802Sjkim    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
2449167802Sjkim    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
2450167802Sjkim  Current Release:
2451167802Sjkim    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
2452167802Sjkim    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
2453167802Sjkim
2454167802Sjkim
2455167802Sjkim2) iASL Compiler/Disassembler and Tools:
2456167802Sjkim
2457167802SjkimNo changes for this release.
2458167802Sjkim
2459167802Sjkim----------------------------------------
2460167802Sjkim21 July 2006. Summary of changes for version 20060721:
2461167802Sjkim
2462167802Sjkim1) ACPI CA Core Subsystem:
2463167802Sjkim
2464193267SjkimThe full source code for the ASL test suite used to validate the iASL 
2465193267Sjkimcompiler and the ACPICA core subsystem is being released with the ACPICA 
2466193267Sjkimsource for the first time. The source is contained in a separate package and 
2467193267Sjkimconsists of over 1100 files that exercise all ASL/AML operators. The package 
2468193267Sjkimshould appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 
2469167802SjkimSuietov)
2470167802Sjkim
2471193267SjkimCompleted a new design and implementation for support of the ACPI Global 
2472193267SjkimLock. On the OS side, the global lock is now treated as a standard AML 
2473193267Sjkimmutex. Previously, multiple OS threads could "acquire" the global lock 
2474193267Sjkimsimultaneously. However, this could cause the BIOS to be starved out of the 
2475193267Sjkimlock - especially in cases such as the Embedded Controller driver where 
2476193267Sjkimthere is a tight coupling between the OS and the BIOS.
2477167802Sjkim
2478193267SjkimImplemented an optimization for the ACPI Global Lock interrupt mechanism. 
2479193267SjkimThe Global Lock interrupt handler no longer queues the execution of a 
2480193267Sjkimseparate thread to signal the global lock semaphore. Instead, the semaphore 
2481193267Sjkimis signaled directly from the interrupt handler.
2482167802Sjkim
2483193267SjkimImplemented support within the AML interpreter for package objects that 
2484193267Sjkimcontain a larger AML length (package list length) than the package element 
2485193267Sjkimcount. In this case, the length of the package is truncated to match the 
2486193267Sjkimpackage element count. Some BIOS code apparently modifies the package length 
2487193267Sjkimon the fly, and this change supports this behavior. Provides compatibility 
2488193267Sjkimwith the MS AML interpreter. (With assistance from Fiodor Suietov)
2489167802Sjkim
2490193267SjkimImplemented a temporary fix for the BankValue parameter of a Bank Field to 
2491193267Sjkimsupport all constant values, now including the Zero and One opcodes. 
2492193267SjkimEvaluation of this parameter must eventually be converted to a full TermArg 
2493193267Sjkimevaluation. A not-implemented error is now returned (temporarily) for non-
2494193267Sjkimconstant values for this parameter.
2495167802Sjkim
2496167802SjkimFixed problem reports (Fiodor Suietov) integrated:
2497193267Sjkim- Fix for premature object deletion after CopyObject on Operation Region (BZ 
2498193267Sjkim350)
2499167802Sjkim
2500193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2501193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2502193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2503193267Sjkima much larger code and data size.
2504167802Sjkim
2505167802Sjkim  Previous Release:
2506167802Sjkim    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
2507167802Sjkim    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
2508167802Sjkim  Current Release:
2509167802Sjkim    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
2510167802Sjkim    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
2511167802Sjkim
2512167802Sjkim
2513167802Sjkim2) iASL Compiler/Disassembler and Tools:
2514167802Sjkim
2515167802SjkimNo changes for this release.
2516167802Sjkim
2517167802Sjkim----------------------------------------
2518167802Sjkim07 July 2006. Summary of changes for version 20060707:
2519167802Sjkim
2520167802Sjkim1) ACPI CA Core Subsystem:
2521167802Sjkim
2522193267SjkimAdded the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 
2523193267Sjkimthat do not allow the initialization of address pointers within packed 
2524193267Sjkimstructures - even though the hardware itself may support misaligned 
2525193267Sjkimtransfers. Some of the debug data structures are packed by default to 
2526193267Sjkimminimize size.
2527167802Sjkim
2528193267SjkimAdded an error message for the case where AcpiOsGetThreadId() returns zero. 
2529193267SjkimA non-zero value is required by the core ACPICA code to ensure the proper 
2530193267Sjkimoperation of AML mutexes and recursive control methods.
2531167802Sjkim
2532193267SjkimThe DSDT is now the only ACPI table that determines whether the AML 
2533193267Sjkiminterpreter is in 32-bit or 64-bit mode. Not really a functional change, but 
2534193267Sjkimthe hooks for per-table 32/64 switching have been removed from the code. A 
2535193267Sjkimclarification to the ACPI specification is forthcoming in ACPI 3.0B.
2536167802Sjkim
2537193267SjkimFixed a possible leak of an OwnerID in the error path of 
2538193267SjkimAcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 
2539193267Sjkimdeletion to a single place in AcpiTbUninstallTable to correct possible leaks 
2540193267Sjkimwhen using the AcpiTbDeleteTablesByType interface (with assistance from 
2541193267SjkimLance Ortiz.)
2542167802Sjkim
2543193267SjkimFixed a problem with Serialized control methods where the semaphore 
2544193267Sjkimassociated with the method could be over-signaled after multiple method 
2545193267Sjkiminvocations.
2546167802Sjkim
2547193267SjkimFixed two issues with the locking of the internal namespace data structure. 
2548193267SjkimBoth the Unload() operator and AcpiUnloadTable interface now lock the 
2549193267Sjkimnamespace during the namespace deletion associated with the table unload 
2550193267Sjkim(with assistance from Linn Crosetto.)
2551167802Sjkim
2552167802SjkimFixed problem reports (Valery Podrezov) integrated:
2553193267Sjkim- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
2554167802Sjkim
2555167802SjkimFixed problem reports (Fiodor Suietov) integrated:
2556167802Sjkim- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
2557193267Sjkim- On Address Space handler deletion, needless deactivation call (BZ 374)
2558193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375)
2559193267Sjkim- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 
2560193267Sjkim(BZ 376)
2561193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
2562167802Sjkim- Minimum Length of RSDT should be validated (BZ 379)
2563193267Sjkim- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 
2564193267SjkimHandler (BZ (380)
2565193267Sjkim- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 
2566193267Sjkim(BZ 381)
2567167802Sjkim
2568193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2569193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2570193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2571193267Sjkima much larger code and data size.
2572167802Sjkim
2573167802Sjkim  Previous Release:
2574167802Sjkim    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
2575167802Sjkim    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
2576167802Sjkim  Current Release:
2577167802Sjkim    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
2578167802Sjkim    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
2579167802Sjkim
2580167802Sjkim
2581167802Sjkim2) iASL Compiler/Disassembler and Tools:
2582167802Sjkim
2583167802SjkimFixed problem reports:
2584193267SjkimCompiler segfault when ASL contains a long (>1024) String declaration (BZ 
2585193267Sjkim436)
2586167802Sjkim
2587167802Sjkim----------------------------------------
2588167802Sjkim23 June 2006. Summary of changes for version 20060623:
2589167802Sjkim
2590167802Sjkim1) ACPI CA Core Subsystem:
2591167802Sjkim
2592193267SjkimImplemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 
2593193267Sjkimallows the type to be customized to the host OS for improved efficiency 
2594193267Sjkim(since a spinlock is usually a very small object.)
2595167802Sjkim
2596193267SjkimImplemented support for "ignored" bits in the ACPI registers. According to 
2597193267Sjkimthe ACPI specification, these bits should be preserved when writing the 
2598193267Sjkimregisters via a read/modify/write cycle. There are 3 bits preserved in this 
2599193267Sjkimmanner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
2600167802Sjkim
2601193267SjkimImplemented the initial deployment of new OSL mutex interfaces. Since some 
2602193267Sjkimhost operating systems have separate mutex and semaphore objects, this 
2603193267Sjkimfeature was requested. The base code now uses mutexes (and the new mutex 
2604193267Sjkiminterfaces) wherever a binary semaphore was used previously. However, for 
2605193267Sjkimthe current release, the mutex interfaces are defined as macros to map them 
2606193267Sjkimto the existing semaphore interfaces. Therefore, no OSL changes are required 
2607193267Sjkimat this time. (See acpiosxf.h)
2608167802Sjkim
2609193267SjkimFixed several problems with the support for the control method SyncLevel 
2610193267Sjkimparameter. The SyncLevel now works according to the ACPI specification and 
2611193267Sjkimin concert with the Mutex SyncLevel parameter, since the current SyncLevel 
2612193267Sjkimis a property of the executing thread. Mutual exclusion for control methods 
2613193267Sjkimis now implemented with a mutex instead of a semaphore.
2614167802Sjkim
2615193267SjkimFixed three instances of the use of the C shift operator in the bitfield 
2616193267Sjkimsupport code (exfldio.c) to avoid the use of a shift value larger than the 
2617193267Sjkimtarget data width. The behavior of C compilers is undefined in this case and 
2618193267Sjkimcan cause unpredictable results, and therefore the case must be detected and 
2619193267Sjkimavoided. (Fiodor Suietov)
2620167802Sjkim
2621193267SjkimAdded an info message whenever an SSDT or OEM table is loaded dynamically 
2622193267Sjkimvia the Load() or LoadTable() ASL operators. This should improve debugging 
2623193267Sjkimcapability since it will show exactly what tables have been loaded (beyond 
2624193267Sjkimthe tables present in the RSDT/XSDT.)
2625167802Sjkim
2626193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2627193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2628193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2629193267Sjkima much larger code and data size.
2630167802Sjkim
2631167802Sjkim  Previous Release:
2632167802Sjkim    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
2633167802Sjkim    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
2634167802Sjkim  Current Release:
2635167802Sjkim    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
2636167802Sjkim    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
2637167802Sjkim
2638167802Sjkim
2639167802Sjkim2) iASL Compiler/Disassembler and Tools:
2640167802Sjkim
2641167802SjkimNo changes for this release.
2642167802Sjkim
2643167802Sjkim----------------------------------------
2644167802Sjkim08 June 2006. Summary of changes for version 20060608:
2645167802Sjkim
2646167802Sjkim1) ACPI CA Core Subsystem:
2647167802Sjkim
2648193267SjkimConverted the locking mutex used for the ACPI hardware to a spinlock. This 
2649193267Sjkimchange should eliminate all problems caused by attempting to acquire a 
2650193267Sjkimsemaphore at interrupt level, and it means that all ACPICA external 
2651193267Sjkiminterfaces that directly access the ACPI hardware can be safely called from 
2652193267Sjkiminterrupt level. OSL code that implements the semaphore interfaces should be 
2653193267Sjkimable to eliminate any workarounds for being called at interrupt level.
2654167802Sjkim
2655193267SjkimFixed a regression introduced in 20060526 where the ACPI device 
2656193267Sjkiminitialization could be prematurely aborted with an AE_NOT_FOUND if a device 
2657193267Sjkimdid not have an optional _INI method.
2658167802Sjkim
2659193267SjkimFixed an IndexField issue where a write to the Data Register should be 
2660193267Sjkimlimited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 
2661193267SjkimFiodor Suietov)
2662167802Sjkim
2663167802SjkimFixed problem reports (Valery Podrezov) integrated:
2664193267Sjkim- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
2665167802Sjkim
2666167802SjkimFixed problem reports (Fiodor Suietov) integrated:
2667193267Sjkim- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
2668167802Sjkim
2669193267SjkimRemoved four global mutexes that were obsolete and were no longer being 
2670193267Sjkimused.
2671167802Sjkim
2672193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2673193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2674193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2675193267Sjkima much larger code and data size.
2676167802Sjkim
2677167802Sjkim  Previous Release:
2678167802Sjkim    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
2679167802Sjkim    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
2680167802Sjkim  Current Release:
2681167802Sjkim    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
2682167802Sjkim    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
2683167802Sjkim
2684167802Sjkim
2685167802Sjkim2) iASL Compiler/Disassembler and Tools:
2686167802Sjkim
2687193267SjkimFixed a fault when using -g option (get tables from registry) on Windows 
2688193267Sjkimmachines.
2689167802Sjkim
2690167802SjkimFixed problem reports integrated:
2691193267Sjkim- Generate error if CreateField NumBits parameter is zero. (BZ 405)
2692193267Sjkim- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 
2693193267SjkimSuietov)
2694167802Sjkim- Global table revision override (-r) is ignored (BZ 413)
2695167802Sjkim
2696167802Sjkim----------------------------------------
2697167802Sjkim26 May 2006. Summary of changes for version 20060526:
2698167802Sjkim
2699167802Sjkim1) ACPI CA Core Subsystem:
2700167802Sjkim
2701193267SjkimRestructured, flattened, and simplified the internal interfaces for 
2702193267Sjkimnamespace object evaluation - resulting in smaller code, less CPU stack use, 
2703193267Sjkimand fewer interfaces. (With assistance from Mikhail Kouzmich)
2704167802Sjkim
2705193267SjkimFixed a problem with the CopyObject operator where the first parameter was 
2706193267Sjkimnot typed correctly for the parser, interpreter, compiler, and disassembler. 
2707193267SjkimCaused various errors and unexpected behavior.
2708167802Sjkim
2709193267SjkimFixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 
2710193267Sjkimproduced incorrect results with some C compilers. Since the behavior of C 
2711193267Sjkimcompilers when the shift value is larger than the datatype width is 
2712193267Sjkimapparently not well defined, the interpreter now detects this condition and 
2713193267Sjkimsimply returns zero as expected in all such cases. (BZ 395)
2714167802Sjkim
2715167802SjkimFixed problem reports (Valery Podrezov) integrated:
2716193267Sjkim- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
2717193267Sjkim- Allow interpreter to handle nested method declarations (BZ 5361)
2718167802Sjkim
2719167802SjkimFixed problem reports (Fiodor Suietov) integrated:
2720193267Sjkim- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355)
2721193267Sjkim- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356)
2722193267Sjkim- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
2723193267Sjkim- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
2724167802Sjkim- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
2725193267Sjkim- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
2726167802Sjkim- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
2727167802Sjkim- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
2728193267Sjkim- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365)
2729193267Sjkim- Status of the Global Initialization Handler call not used (BZ 366)
2730193267Sjkim- Incorrect object parameter to Global Initialization Handler (BZ 367)
2731167802Sjkim
2732193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2733193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2734193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2735193267Sjkima much larger code and data size.
2736167802Sjkim
2737167802Sjkim  Previous Release:
2738167802Sjkim    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
2739167802Sjkim    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
2740167802Sjkim  Current Release:
2741167802Sjkim    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
2742167802Sjkim    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
2743167802Sjkim
2744167802Sjkim
2745167802Sjkim2) iASL Compiler/Disassembler and Tools:
2746167802Sjkim
2747193267SjkimModified the parser to allow the names IO, DMA, and IRQ to be used as 
2748193267Sjkimnamespace identifiers with no collision with existing resource descriptor 
2749193267Sjkimmacro names. This provides compatibility with other ASL compilers and is 
2750193267Sjkimmost useful for disassembly/recompilation of existing tables without parse 
2751167802Sjkimerrors. (With assistance from Thomas Renninger)
2752167802Sjkim
2753193267SjkimDisassembler: fixed an incorrect disassembly problem with the 
2754193267SjkimDataTableRegion and CopyObject operators. Fixed a possible fault during 
2755193267Sjkimdisassembly of some Alias operators.
2756167802Sjkim
2757167802Sjkim----------------------------------------
2758167802Sjkim12 May 2006. Summary of changes for version 20060512:
2759167802Sjkim
2760167802Sjkim1) ACPI CA Core Subsystem:
2761167802Sjkim
2762193267SjkimReplaced the AcpiOsQueueForExecution interface with a new interface named 
2763193267SjkimAcpiOsExecute. The major difference is that the new interface does not have 
2764193267Sjkima Priority parameter, this appeared to be useless and has been replaced by a 
2765193267SjkimType parameter. The Type tells the host what type of execution is being 
2766193267Sjkimrequested, such as global lock handler, notify handler, GPE handler, etc. 
2767193267SjkimThis allows the host to queue and execute the request as appropriate for the 
2768193267Sjkimrequest type, possibly using different work queues and different priorities 
2769193267Sjkimfor the various request types. This enables fixes for multithreading 
2770193267Sjkimdeadlock problems such as BZ #5534, and will require changes to all existing 
2771193267SjkimOS interface layers. (Alexey Starikovskiy and Bob Moore)
2772167802Sjkim
2773193267SjkimFixed a possible memory leak associated with the support for the so-called 
2774193267Sjkim"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 
2775193267SjkimSuietov)
2776167802Sjkim
2777193267SjkimFixed a problem with the Load() operator where a table load from an 
2778193267Sjkimoperation region could overwrite an internal table buffer by up to 7 bytes 
2779193267Sjkimand cause alignment faults on IPF systems. (With assistance from Luming Yu)
2780167802Sjkim
2781193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2782193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2783193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2784193267Sjkima much larger code and data size.
2785167802Sjkim
2786167802Sjkim  Previous Release:
2787167802Sjkim    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
2788167802Sjkim    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
2789167802Sjkim  Current Release:
2790167802Sjkim    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
2791167802Sjkim    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
2792167802Sjkim
2793167802Sjkim
2794167802Sjkim
2795167802Sjkim2) iASL Compiler/Disassembler and Tools:
2796167802Sjkim
2797193267SjkimDisassembler: Implemented support to cross reference the internal namespace 
2798193267Sjkimand automatically generate ASL External() statements for symbols not defined 
2799193267Sjkimwithin the current table being disassembled. This will simplify the 
2800193267Sjkimdisassembly and recompilation of interdependent tables such as SSDTs since 
2801193267Sjkimthese statements will no longer have to be added manually.
2802167802Sjkim
2803193267SjkimDisassembler: Implemented experimental support to automatically detect 
2804193267Sjkiminvocations of external control methods and generate appropriate External() 
2805193267Sjkimstatements. This is problematic because the AML cannot be correctly parsed 
2806193267Sjkimuntil the number of arguments for each control method is known. Currently, 
2807193267Sjkimstandalone method invocations and invocations as the source operand of a 
2808193267SjkimStore() statement are supported.
2809167802Sjkim
2810193267SjkimDisassembler: Implemented support for the ASL pseudo-operators LNotEqual, 
2811193267SjkimLLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 
2812193267SjkimLNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 
2813193267Sjkimmore readable and likely closer to the original ASL source.
2814167802Sjkim
2815167802Sjkim----------------------------------------
2816167802Sjkim21 April 2006. Summary of changes for version 20060421:
2817167802Sjkim
2818167802Sjkim1) ACPI CA Core Subsystem:
2819167802Sjkim
2820193267SjkimRemoved a device initialization optimization introduced in 20051216 where 
2821193267Sjkimthe _STA method was not run unless an _INI was also present for the same 
2822193267Sjkimdevice. This optimization could cause problems because it could allow _INI 
2823193267Sjkimmethods to be run within a not-present device subtree. (If a not-present 
2824193267Sjkimdevice had no _INI, _STA would not be run, the not-present status would not 
2825193267Sjkimbe discovered, and the children of the device would be incorrectly 
2826167802Sjkimtraversed.)
2827167802Sjkim
2828193267SjkimImplemented a new _STA optimization where namespace subtrees that do not 
2829193267Sjkimcontain _INI are identified and ignored during device initialization. 
2830193267SjkimSelectively running _STA can significantly improve boot time on large 
2831193267Sjkimmachines (with assistance from Len Brown.)
2832167802Sjkim
2833193267SjkimImplemented support for the device initialization case where the returned 
2834193267Sjkim_STA flags indicate a device not-present but functioning. In this case, _INI 
2835193267Sjkimis not run, but the device children are examined for presence, as per the 
2836193267SjkimACPI specification.
2837167802Sjkim
2838193267SjkimImplemented an additional change to the IndexField support in order to 
2839193267Sjkimconform to MS behavior. The value written to the Index Register is not 
2840193267Sjkimsimply a byte offset, it is a byte offset in units of the access width of 
2841193267Sjkimthe parent Index Field. (Fiodor Suietov)
2842167802Sjkim
2843193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateAddress. This 
2844193267Sjkiminterface is called during the creation of all AML operation regions, and 
2845193267Sjkimallows the host OS to exert control over what addresses it will allow the 
2846193267SjkimAML code to access. Operation Regions whose addresses are disallowed will 
2847193267Sjkimcause a runtime exception when they are actually accessed (will not affect 
2848193267Sjkimor abort table loading.) See oswinxf or osunixxf for an example 
2849167802Sjkimimplementation.
2850167802Sjkim
2851193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateInterface. This 
2852193267Sjkiminterface allows the host OS to match the various "optional" 
2853193267Sjkiminterface/behavior strings for the _OSI predefined control method as 
2854193267Sjkimappropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 
2855193267Sjkimfor an example implementation.
2856167802Sjkim
2857193267SjkimRestructured and corrected various problems in the exception handling code 
2858193267Sjkimpaths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 
2859193267Sjkim(with assistance from Takayoshi Kochi.)
2860167802Sjkim
2861193267SjkimModified the Linux source converter to ignore quoted string literals while 
2862193267Sjkimconverting identifiers from mixed to lower case. This will correct problems 
2863193267Sjkimwith the disassembler and other areas where such strings must not be 
2864193267Sjkimmodified.
2865167802Sjkim
2866193267SjkimThe ACPI_FUNCTION_* macros no longer require quotes around the function 
2867193267Sjkimname. This allows the Linux source converter to convert the names, now that 
2868193267Sjkimthe converter ignores quoted strings.
2869167802Sjkim
2870193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2871193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2872193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2873193267Sjkima much larger code and data size.
2874193267Sjkim
2875167802Sjkim  Previous Release:
2876167802Sjkim
2877167802Sjkim    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
2878167802Sjkim    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
2879167802Sjkim  Current Release:
2880167802Sjkim    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
2881167802Sjkim    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
2882167802Sjkim
2883167802Sjkim
2884167802Sjkim2) iASL Compiler/Disassembler and Tools:
2885167802Sjkim
2886193267SjkimImplemented 3 new warnings for iASL, and implemented multiple warning levels 
2887193267Sjkim(w2 flag).
2888167802Sjkim
2889193267Sjkim1) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 
2890193267SjkimWAIT_FOREVER (0xFFFF) and the code does not examine the return value to 
2891193267Sjkimcheck for the possible timeout, a warning is issued.
2892167802Sjkim
2893193267Sjkim2) Useless operators: If an ASL operator does not specify an optional target 
2894193267Sjkimoperand and it also does not use the function return value from the 
2895193267Sjkimoperator, a warning is issued since the operator effectively does nothing.
2896167802Sjkim
2897193267Sjkim3) Unreferenced objects: If a namespace object is created, but never 
2898193267Sjkimreferenced, a warning is issued. This is a warning level 2 since there are 
2899193267Sjkimcases where this is ok, such as when a secondary table is loaded that uses 
2900193267Sjkimthe unreferenced objects. Even so, care is taken to only flag objects that 
2901193267Sjkimdon't look like they will ever be used. For example, the reserved methods 
2902193267Sjkim(starting with an underscore) are usually not referenced because it is 
2903193267Sjkimexpected that the OS will invoke them.
2904167802Sjkim
2905167802Sjkim----------------------------------------
2906167802Sjkim31 March 2006. Summary of changes for version 20060331:
2907167802Sjkim
2908167802Sjkim1) ACPI CA Core Subsystem:
2909167802Sjkim
2910193267SjkimImplemented header file support for the following additional ACPI tables: 
2911193267SjkimASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 
2912193267Sjkimall current and known ACPI tables are now defined in the ACPICA headers and 
2913193267Sjkimare available for use by device drivers and other software.
2914167802Sjkim
2915193267SjkimImplemented support to allow tables that contain ACPI names with invalid 
2916193267Sjkimcharacters to be loaded. Previously, this would cause the table load to 
2917193267Sjkimfail, but since there are several known cases of such tables on existing 
2918193267Sjkimmachines, this change was made to enable ACPI support for them. Also, this 
2919193267Sjkimmatches the behavior of the Microsoft ACPI implementation.
2920167802Sjkim
2921193267SjkimFixed a couple regressions introduced during the memory optimization in the 
2922193267Sjkim20060317 release. The namespace node definition required additional 
2923193267Sjkimreorganization and an internal datatype that had been changed to 8-bit was 
2924193267Sjkimrestored to 32-bit. (Valery Podrezov)
2925167802Sjkim
2926193267SjkimFixed a problem where a null pointer passed to AcpiUtDeleteGenericState 
2927193267Sjkimcould be passed through to AcpiOsReleaseObject which is unexpected. Such 
2928193267Sjkimnull pointers are now trapped and ignored, matching the behavior of the 
2929193267Sjkimprevious implementation before the deployment of AcpiOsReleaseObject.
2930167802Sjkim(Valery Podrezov, Fiodor Suietov)
2931167802Sjkim
2932193267SjkimFixed a memory mapping leak during the deletion of a SystemMemory operation 
2933193267Sjkimregion where a cached memory mapping was not deleted. This became a 
2934193267Sjkimnoticeable problem for operation regions that are defined within frequently 
2935193267Sjkimused control methods. (Dana Meyers)
2936167802Sjkim
2937193267SjkimReorganized the ACPI table header files into two main files: one for the 
2938193267SjkimACPI tables consumed by the ACPICA core, and another for the miscellaneous 
2939193267SjkimACPI tables that are consumed by the drivers and other software. The various 
2940193267SjkimFADT definitions were merged into one common section and three different 
2941193267Sjkimtables (ACPI 1.0, 1.0+, and 2.0)
2942167802Sjkim
2943193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 
2944193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 
2945193267Sjkimdebug version of the code includes the debug output trace mechanism and has 
2946193267Sjkima much larger code and data size.
2947167802Sjkim
2948167802Sjkim  Previous Release:
2949167802Sjkim    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
2950167802Sjkim    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
2951167802Sjkim  Current Release:
2952167802Sjkim    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
2953167802Sjkim    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
2954167802Sjkim
2955167802Sjkim
2956167802Sjkim2) iASL Compiler/Disassembler and Tools:
2957167802Sjkim
2958193267SjkimDisassembler: Implemented support to decode and format all non-AML ACPI 
2959193267Sjkimtables (tables other than DSDTs and SSDTs.) This includes the new tables 
2960193267Sjkimadded to the ACPICA headers, therefore all current and known ACPI tables are 
2961193267Sjkimsupported.
2962167802Sjkim
2963193267SjkimDisassembler: The change to allow ACPI names with invalid characters also 
2964193267Sjkimenables the disassembly of such tables. Invalid characters within names are 
2965193267Sjkimchanged to '*' to make the name printable; the iASL compiler will still 
2966193267Sjkimgenerate an error for such names, however, since this is an invalid ACPI 
2967193267Sjkimcharacter.
2968167802Sjkim
2969193267SjkimImplemented an option for AcpiXtract (-a) to extract all tables found in the 
2970193267Sjkiminput file. The default invocation extracts only the DSDTs and SSDTs.
2971167802Sjkim
2972193267SjkimFixed a couple of gcc generation issues for iASL and AcpiExec and added a 
2973193267Sjkimmakefile for the AcpiXtract utility.
2974167802Sjkim
2975167802Sjkim----------------------------------------
2976167802Sjkim17 March 2006. Summary of changes for version 20060317:
2977167802Sjkim
2978167802Sjkim1) ACPI CA Core Subsystem:
2979167802Sjkim
2980193267SjkimImplemented the use of a cache object for all internal namespace nodes. 
2981193267SjkimSince there are about 1000 static nodes in a typical system, this will 
2982193267Sjkimdecrease memory use for cache implementations that minimize per-allocation 
2983193267Sjkimoverhead (such as a slab allocator.)
2984167802Sjkim
2985193267SjkimRemoved the reference count mechanism for internal namespace nodes, since it 
2986193267Sjkimwas deemed unnecessary. This reduces the size of each namespace node by 
2987193267Sjkimabout 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 
2988193267Sjkimand 32 bytes for the 64-bit case.
2989167802Sjkim
2990193267SjkimOptimized several internal data structures to reduce object size on 64-bit 
2991193267Sjkimplatforms by packing data within the 64-bit alignment. This includes the 
2992193267Sjkimfrequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 
2993193267Sjkiminstances corresponding to the namespace objects.
2994167802Sjkim
2995193267SjkimAdded two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 
2996193267Sjkimand "Windows 2006".
2997167802Sjkim
2998193267SjkimSplit the allocation tracking mechanism out to a separate file, from 
2999193267Sjkimutalloc.c to uttrack.c. This mechanism appears to be only useful for 
3000193267Sjkimapplication-level code. Kernels may wish to not include uttrack.c in 
3001193267Sjkimdistributions.
3002167802Sjkim
3003193267SjkimRemoved all remnants of the obsolete ACPI_REPORT_* macros and the associated 
3004193267Sjkimcode. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 
3005193267Sjkimmacros.)
3006167802Sjkim
3007193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 
3008193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 
3009193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 
3010193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 
3011193267Sjkimvalues will vary depending on the efficiency of the compiler and the 
3012193267Sjkimcompiler options used during generation.
3013167802Sjkim
3014167802Sjkim  Previous Release:
3015167802Sjkim    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
3016167802Sjkim    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
3017167802Sjkim  Current Release:
3018167802Sjkim    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
3019167802Sjkim    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
3020167802Sjkim
3021167802Sjkim
3022167802Sjkim2) iASL Compiler/Disassembler and Tools:
3023167802Sjkim
3024193267SjkimImplemented an ANSI C version of the acpixtract utility. This version will 
3025193267Sjkimautomatically extract the DSDT and all SSDTs from the input acpidump text 
3026193267Sjkimfile and dump the binary output to separate files. It can also display a 
3027193267Sjkimsummary of the input file including the headers for each table found and 
3028193267Sjkimwill extract any single ACPI table, with any signature. (See 
3029167802Sjkimsource/tools/acpixtract)
3030167802Sjkim
3031167802Sjkim----------------------------------------
3032167802Sjkim10 March 2006. Summary of changes for version 20060310:
3033167802Sjkim
3034167802Sjkim1) ACPI CA Core Subsystem:
3035167802Sjkim
3036193267SjkimTagged all external interfaces to the subsystem with the new 
3037193267SjkimACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 
3038193267Sjkimkernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 
3039193267Sjkimmacro. The default definition is NULL.
3040167802Sjkim
3041193267SjkimAdded the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 
3042193267SjkimThis allows the host to define this as necessary to simplify kernel 
3043193267Sjkimintegration. The default definition is ACPI_NATIVE_UINT.
3044167802Sjkim
3045193267SjkimFixed two interpreter problems related to error processing, the deletion of 
3046193267Sjkimobjects, and placing invalid pointers onto the internal operator result 
3047193267Sjkimstack. BZ 6028, 6151 (Valery Podrezov)
3048167802Sjkim
3049193267SjkimIncreased the reference count threshold where a warning is emitted for large 
3050193267Sjkimreference counts in order to eliminate unnecessary warnings on systems with 
3051193267Sjkimlarge namespaces (especially 64-bit.) Increased the value from 0x400 to 
3052193267Sjkim0x800.
3053167802Sjkim
3054193267SjkimDue to universal disagreement as to the meaning of the 'c' in the calloc() 
3055193267Sjkimfunction, the ACPI_MEM_CALLOCATE macro has been renamed to 
3056193267SjkimACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 
3057193267SjkimACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 
3058193267SjkimACPI_FREE.
3059167802Sjkim
3060193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 
3061193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 
3062193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 
3063193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 
3064193267Sjkimvalues will vary depending on the efficiency of the compiler and the 
3065193267Sjkimcompiler options used during generation.
3066167802Sjkim
3067167802Sjkim  Previous Release:
3068167802Sjkim    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
3069167802Sjkim    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
3070167802Sjkim  Current Release:
3071167802Sjkim    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
3072167802Sjkim    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
3073167802Sjkim
3074167802Sjkim
3075167802Sjkim2) iASL Compiler/Disassembler:
3076167802Sjkim
3077193267SjkimDisassembler: implemented support for symbolic resource descriptor 
3078193267Sjkimreferences. If a CreateXxxxField operator references a fixed offset within a 
3079193267Sjkimresource descriptor, a name is assigned to the descriptor and the offset is 
3080193267Sjkimtranslated to the appropriate resource tag and pathname. The addition of 
3081193267Sjkimthis support brings the disassembled code very close to the original ASL 
3082193267Sjkimsource code and helps eliminate run-time errors when the disassembled code 
3083193267Sjkimis modified (and recompiled) in such a way as to invalidate the original 
3084193267Sjkimfixed offsets.
3085167802Sjkim
3086193267SjkimImplemented support for a Descriptor Name as the last parameter to the ASL 
3087193267SjkimRegister() macro. This parameter was inadvertently left out of the ACPI 
3088193267Sjkimspecification, and will be added for ACPI 3.0b.
3089167802Sjkim
3090193267SjkimFixed a problem where the use of the "_OSI" string (versus the full path 
3091193267Sjkim"\_OSI") caused an internal compiler error. ("No back ptr to op")
3092167802Sjkim
3093193267SjkimFixed a problem with the error message that occurs when an invalid string is 
3094193267Sjkimused for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 
3095193267SjkimThe correct message is now displayed.
3096167802Sjkim
3097167802Sjkim----------------------------------------
3098167802Sjkim17 February 2006. Summary of changes for version 20060217:
3099167802Sjkim
3100167802Sjkim1) ACPI CA Core Subsystem:
3101167802Sjkim
3102193267SjkimImplemented a change to the IndexField support to match the behavior of the 
3103193267SjkimMicrosoft AML interpreter. The value written to the Index register is now a 
3104193267Sjkimbyte offset, no longer an index based upon the width of the Data register. 
3105193267SjkimThis should fix IndexField problems seen on some machines where the Data 
3106193267Sjkimregister is not exactly one byte wide. The ACPI specification will be 
3107193267Sjkimclarified on this point.
3108167802Sjkim
3109193267SjkimFixed a problem where several resource descriptor types could overrun the 
3110193267Sjkiminternal descriptor buffer due to size miscalculation: VendorShort, 
3111193267SjkimVendorLong, and Interrupt. This was noticed on IA64 machines, but could 
3112193267Sjkimaffect all platforms.
3113167802Sjkim
3114193267SjkimFixed a problem where individual resource descriptors were misaligned within 
3115193267Sjkimthe internal buffer, causing alignment faults on IA64 platforms.
3116167802Sjkim
3117193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 
3118193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 
3119193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 
3120193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 
3121193267Sjkimvalues will vary depending on the efficiency of the compiler and the 
3122193267Sjkimcompiler options used during generation.
3123167802Sjkim
3124167802Sjkim  Previous Release:
3125167802Sjkim    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
3126167802Sjkim    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
3127167802Sjkim  Current Release:
3128167802Sjkim    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
3129167802Sjkim    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
3130167802Sjkim
3131167802Sjkim
3132167802Sjkim2) iASL Compiler/Disassembler:
3133167802Sjkim
3134193267SjkimImplemented support for new reserved names: _WDG and _WED are Microsoft 
3135193267Sjkimextensions for Windows Instrumentation Management, _TDL is a new ACPI-
3136193267Sjkimdefined method (Throttling Depth Limit.)
3137167802Sjkim
3138193267SjkimFixed a problem where a zero-length VendorShort or VendorLong resource 
3139193267Sjkimdescriptor was incorrectly emitted as a descriptor of length one.
3140167802Sjkim
3141167802Sjkim----------------------------------------
3142167802Sjkim10 February 2006. Summary of changes for version 20060210:
3143167802Sjkim
3144167802Sjkim1) ACPI CA Core Subsystem:
3145167802Sjkim
3146193267SjkimRemoved a couple of extraneous ACPI_ERROR messages that appeared during 
3147193267Sjkimnormal execution. These became apparent after the conversion from 
3148193267SjkimACPI_DEBUG_PRINT.
3149167802Sjkim
3150193267SjkimFixed a problem where the CreateField operator could hang if the BitIndex or 
3151193267SjkimNumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
3152167802Sjkim
3153193267SjkimFixed a problem where a DeRefOf operation on a buffer object incorrectly 
3154193267Sjkimfailed with an exception. This also fixes a couple of related RefOf and 
3155193267SjkimDeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
3156167802Sjkim
3157193267SjkimFixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 
3158193267SjkimAE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 
3159193267Sjkim5480)
3160167802Sjkim
3161193267SjkimImplemented a memory cleanup at the end of the execution of each iteration 
3162193267Sjkimof an AML While() loop, preventing the accumulation of outstanding objects. 
3163193267Sjkim(Valery Podrezov, BZ 5427)
3164167802Sjkim
3165193267SjkimEliminated a chunk of duplicate code in the object resolution code. (Valery 
3166193267SjkimPodrezov, BZ 5336)
3167167802Sjkim
3168167802SjkimFixed several warnings during the 64-bit code generation.
3169167802Sjkim
3170193267SjkimThe AcpiSrc source code conversion tool now inserts one line of whitespace 
3171193267Sjkimafter an if() statement that is followed immediately by a comment, improving 
3172193267Sjkimreadability of the Linux code.
3173167802Sjkim
3174193267SjkimCode and Data Size: The current and previous library sizes for the core 
3175193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3176193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3177193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3178193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3179193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3180193267Sjkimof the compiler and the compiler options used during generation.
3181167802Sjkim
3182167802Sjkim  Previous Release:
3183167802Sjkim    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
3184167802Sjkim    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
3185167802Sjkim  Current Release:
3186167802Sjkim    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
3187167802Sjkim    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
3188167802Sjkim
3189167802Sjkim
3190167802Sjkim2) iASL Compiler/Disassembler:
3191167802Sjkim
3192193267SjkimFixed a problem with the disassembly of a BankField operator with a complex 
3193193267Sjkimexpression for the BankValue parameter.
3194167802Sjkim
3195167802Sjkim----------------------------------------
3196167802Sjkim27 January 2006. Summary of changes for version 20060127:
3197167802Sjkim
3198167802Sjkim1) ACPI CA Core Subsystem:
3199167802Sjkim
3200193267SjkimImplemented support in the Resource Manager to allow unresolved namestring 
3201193267Sjkimreferences within resource package objects for the _PRT method. This support 
3202193267Sjkimis in addition to the previously implemented unresolved reference support 
3203193267Sjkimwithin the AML parser. If the interpreter slack mode is enabled, these 
3204193267Sjkimunresolved references will be passed through to the caller as a NULL package 
3205167802Sjkimentry.
3206167802Sjkim
3207193267SjkimImplemented and deployed new macros and functions for error and warning 
3208193267Sjkimmessages across the subsystem. These macros are simpler and generate less 
3209193267Sjkimcode than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 
3210193267SjkimACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 
3211193267Sjkimmacros remain defined to allow ACPI drivers time to migrate to the new 
3212193267Sjkimmacros.
3213167802Sjkim
3214193267SjkimImplemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 
3215193267SjkimAcquire/Release Lock OSL interfaces.
3216167802Sjkim
3217193267SjkimFixed a problem where Alias ASL operators are sometimes not correctly 
3218193267Sjkimresolved, in both the interpreter and the iASL compiler.
3219167802Sjkim
3220193267SjkimFixed several problems with the implementation of the ConcatenateResTemplate 
3221193267SjkimASL operator. As per the ACPI specification, zero length buffers are now 
3222193267Sjkimtreated as a single EndTag. One-length buffers always cause a fatal 
3223193267Sjkimexception. Non-zero length buffers that do not end with a full 2-byte EndTag 
3224167802Sjkimcause a fatal exception.
3225167802Sjkim
3226193267SjkimFixed a possible structure overwrite in the AcpiGetObjectInfo external 
3227193267Sjkiminterface. (With assistance from Thomas Renninger)
3228167802Sjkim
3229193267SjkimCode and Data Size: The current and previous library sizes for the core 
3230193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3231193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3232193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3233193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3234193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3235193267Sjkimof the compiler and the compiler options used during generation.
3236167802Sjkim
3237167802Sjkim  Previous Release:
3238167802Sjkim    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
3239167802Sjkim    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
3240167802Sjkim  Current Release:
3241167802Sjkim    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
3242167802Sjkim    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
3243167802Sjkim
3244167802Sjkim
3245167802Sjkim2) iASL Compiler/Disassembler:
3246167802Sjkim
3247193267SjkimFixed an internal error that was generated for any forward references to ASL 
3248193267SjkimAlias objects.
3249167802Sjkim
3250167802Sjkim----------------------------------------
3251167802Sjkim13 January 2006. Summary of changes for version 20060113:
3252167802Sjkim
3253167802Sjkim1) ACPI CA Core Subsystem:
3254167802Sjkim
3255193267SjkimAdded 2006 copyright to all module headers and signons. This affects 
3256193267Sjkimvirtually every file in the ACPICA core subsystem, iASL compiler, and the 
3257193267Sjkimutilities.
3258193267Sjkim 
3259193267SjkimEnhanced the ACPICA error reporting in order to simplify user migration to 
3260193267Sjkimthe non-debug version of ACPICA. Replaced all instances of the 
3261193267SjkimACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 
3262193267Sjkimlevels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 
3263193267Sjkimrespectively. This preserves all error and warning messages in the non-debug 
3264193267Sjkimversion of the ACPICA code (this has been referred to as the "debug lite" 
3265193267Sjkimoption.) Over 200 cases were converted to create a total of over 380 
3266193267Sjkimerror/warning messages across the ACPICA code. This increases the code and 
3267193267Sjkimdata size of the default non-debug version of the code somewhat (about 13K), 
3268193267Sjkimbut all error/warning reporting may be disabled if desired (and code 
3269193267Sjkimeliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 
3270193267Sjkimconfiguration option. The size of the debug version of ACPICA remains about 
3271193267Sjkimthe same.
3272167802Sjkim
3273193267SjkimFixed a memory leak within the AML Debugger "Set" command. One object was 
3274193267Sjkimnot properly deleted for every successful invocation of the command.
3275167802Sjkim
3276193267SjkimCode and Data Size: The current and previous library sizes for the core 
3277193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3278193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3279193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3280193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3281193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3282193267Sjkimof the compiler and the compiler options used during generation.
3283167802Sjkim
3284167802Sjkim  Previous Release:
3285167802Sjkim    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
3286167802Sjkim    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
3287167802Sjkim  Current Release:
3288167802Sjkim    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
3289167802Sjkim    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
3290167802Sjkim
3291167802Sjkim
3292167802Sjkim2) iASL Compiler/Disassembler:
3293167802Sjkim
3294193267SjkimThe compiler now officially supports the ACPI 3.0a specification that was 
3295193267Sjkimreleased on December 30, 2005. (Specification is available at www.acpi.info)
3296167802Sjkim
3297167802Sjkim----------------------------------------
3298167802Sjkim16 December 2005. Summary of changes for version 20051216:
3299167802Sjkim
3300167802Sjkim1) ACPI CA Core Subsystem:
3301167802Sjkim
3302193267SjkimImplemented optional support to allow unresolved names within ASL Package 
3303193267Sjkimobjects. A null object is inserted in the package when a named reference 
3304193267Sjkimcannot be located in the current namespace. Enabled via the interpreter 
3305193267Sjkimslack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 
3306193267Sjkimthat contain such code.
3307167802Sjkim
3308193267SjkimImplemented an optimization to the initialization sequence that can improve 
3309193267Sjkimboot time. During ACPI device initialization, the _STA method is now run if 
3310193267Sjkimand only if the _INI method exists. The _STA method is used to determine if 
3311193267Sjkimthe device is present; An _INI can only be run if _STA returns present, but 
3312193267Sjkimit is a waste of time to run the _STA method if the _INI does not exist. 
3313167802Sjkim(Prototype and assistance from Dong Wei)
3314167802Sjkim
3315193267SjkimImplemented use of the C99 uintptr_t for the pointer casting macros if it is 
3316193267Sjkimavailable in the current compiler. Otherwise, the default (void *) cast is 
3317193267Sjkimused as before.
3318167802Sjkim
3319193267SjkimFixed some possible memory leaks found within the execution path of the 
3320193267SjkimBreak, Continue, If, and CreateField operators. (Valery Podrezov)
3321167802Sjkim
3322193267SjkimFixed a problem introduced in the 20051202 release where an exception is 
3323193267Sjkimgenerated during method execution if a control method attempts to declare 
3324193267Sjkimanother method.
3325167802Sjkim
3326193267SjkimMoved resource descriptor string constants that are used by both the AML 
3327193267Sjkimdisassembler and AML debugger to the common utilities directory so that 
3328193267Sjkimthese components are independent.
3329167802Sjkim
3330193267SjkimImplemented support in the AcpiExec utility (-e switch) to globally ignore 
3331193267Sjkimexceptions during control method execution (method is not aborted.)
3332167802Sjkim
3333193267SjkimAdded the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 
3334193267Sjkimgeneration.
3335167802Sjkim
3336193267SjkimCode and Data Size: The current and previous library sizes for the core 
3337193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3338193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3339193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3340193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3341193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3342193267Sjkimof the compiler and the compiler options used during generation.
3343167802Sjkim
3344167802Sjkim  Previous Release:
3345167802Sjkim    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
3346167802Sjkim    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
3347167802Sjkim  Current Release:
3348167802Sjkim    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
3349167802Sjkim    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
3350167802Sjkim
3351167802Sjkim
3352167802Sjkim2) iASL Compiler/Disassembler:
3353167802Sjkim
3354193267SjkimFixed a problem where a CPU stack overflow fault could occur if a recursive 
3355193267Sjkimmethod call was made from within a Return statement.
3356167802Sjkim
3357167802Sjkim----------------------------------------
3358167802Sjkim02 December 2005. Summary of changes for version 20051202:
3359167802Sjkim
3360167802Sjkim1) ACPI CA Core Subsystem:
3361167802Sjkim
3362193267SjkimModified the parsing of control methods to no longer create namespace 
3363193267Sjkimobjects during the first pass of the parse. Objects are now created only 
3364193267Sjkimduring the execute phase, at the moment the namespace creation operator is 
3365193267Sjkimencountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 
3366193267Sjkimshould eliminate ALREADY_EXISTS exceptions seen on some machines where 
3367193267Sjkimreentrant control methods are protected by an AML mutex. The mutex will now 
3368193267Sjkimcorrectly block multiple threads from attempting to create the same object 
3369193267Sjkimmore than once.
3370167802Sjkim
3371193267SjkimIncreased the number of available Owner Ids for namespace object tracking 
3372193267Sjkimfrom 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 
3373193267Sjkimsome machines with a large number of ACPI tables (either static or dynamic).
3374167802Sjkim
3375193267SjkimFixed a problem with the AcpiExec utility where a fault could occur when the 
3376193267Sjkim-b switch (batch mode) is used.
3377167802Sjkim
3378193267SjkimEnhanced the namespace dump routine to output the owner ID for each 
3379193267Sjkimnamespace object.
3380167802Sjkim
3381193267SjkimCode and Data Size: The current and previous library sizes for the core 
3382193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3383193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3384193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3385193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3386193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3387193267Sjkimof the compiler and the compiler options used during generation.
3388167802Sjkim
3389167802Sjkim  Previous Release:
3390167802Sjkim    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
3391167802Sjkim    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
3392167802Sjkim  Current Release:
3393167802Sjkim    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
3394167802Sjkim    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
3395167802Sjkim
3396167802Sjkim
3397167802Sjkim2) iASL Compiler/Disassembler:
3398167802Sjkim
3399193267SjkimFixed a parse error during compilation of certain Switch/Case constructs. To 
3400193267Sjkimsimplify the parse, the grammar now allows for multiple Default statements 
3401193267Sjkimand this error is now detected and flagged during the analysis phase.
3402167802Sjkim
3403193267SjkimDisassembler: The disassembly now includes the contents of the original 
3404193267Sjkimtable header within a comment at the start of the file. This includes the 
3405193267Sjkimname and version of the original ASL compiler.
3406167802Sjkim
3407167802Sjkim----------------------------------------
3408167802Sjkim17 November 2005. Summary of changes for version 20051117:
3409167802Sjkim
3410167802Sjkim1) ACPI CA Core Subsystem:
3411167802Sjkim
3412193267SjkimFixed a problem in the AML parser where the method thread count could be 
3413193267Sjkimdecremented below zero if any errors occurred during the method parse phase. 
3414193267SjkimThis should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 
3415193267SjkimThis also fixed a related regression with the mechanism that detects and 
3416193267Sjkimcorrects methods that cannot properly handle reentrancy (related to the 
3417193267Sjkimdeployment of the new OwnerId mechanism.)
3418167802Sjkim
3419193267SjkimEliminated the pre-parsing of control methods (to detect errors) during 
3420193267Sjkimtable load. Related to the problem above, this was causing unwind issues if 
3421193267Sjkimany errors occurred during the parse, and it seemed to be overkill. A table 
3422193267Sjkimload should not be aborted if there are problems with any single control 
3423193267Sjkimmethod, thus rendering this feature rather pointless.
3424167802Sjkim
3425193267SjkimFixed a problem with the new table-driven resource manager where an internal 
3426193267Sjkimbuffer overflow could occur for small resource templates.
3427167802Sjkim
3428193267SjkimImplemented a new external interface, AcpiGetVendorResource. This interface 
3429193267Sjkimwill find and return a vendor-defined resource descriptor within a _CRS or 
3430193267Sjkim_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas.
3431167802Sjkim
3432193267SjkimRemoved the length limit (200) on string objects as per the upcoming ACPI 
3433193267Sjkim3.0A specification. This affects the following areas of the interpreter: 1) 
3434193267Sjkimany implicit conversion of a Buffer to a String, 2) a String object result 
3435193267Sjkimof the ASL Concatentate operator, 3) the String object result of the ASL 
3436193267SjkimToString operator.
3437167802Sjkim
3438193267SjkimFixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 
3439193267Sjkimon a semaphore object would incorrectly timeout. This allows the 
3440193267Sjkimmultithreading features of the AcpiExec utility to work properly under 
3441193267SjkimWindows.
3442167802Sjkim
3443193267SjkimUpdated the Linux makefiles for the iASL compiler and AcpiExec to include 
3444193267Sjkimthe recently added file named "utresrc.c".
3445167802Sjkim
3446193267SjkimCode and Data Size: The current and previous library sizes for the core 
3447193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3448193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3449193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3450193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3451193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3452193267Sjkimof the compiler and the compiler options used during generation.
3453167802Sjkim
3454167802Sjkim  Previous Release:
3455167802Sjkim    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
3456167802Sjkim    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
3457167802Sjkim  Current Release:
3458167802Sjkim    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
3459167802Sjkim    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
3460167802Sjkim
3461167802Sjkim
3462167802Sjkim2) iASL Compiler/Disassembler:
3463167802Sjkim
3464193267SjkimRemoved the limit (200) on string objects as per the upcoming ACPI 3.0A 
3465193267Sjkimspecification. For the iASL compiler, this means that string literals within 
3466193267Sjkimthe source ASL can be of any length. 
3467167802Sjkim
3468193267SjkimEnhanced the listing output to dump the AML code for resource descriptors 
3469193267Sjkimimmediately after the ASL code for each descriptor, instead of in a block at 
3470193267Sjkimthe end of the entire resource template.
3471167802Sjkim
3472193267SjkimEnhanced the compiler debug output to dump the entire original parse tree 
3473193267Sjkimconstructed during the parse phase, before any transforms are applied to the 
3474193267Sjkimtree. The transformed tree is dumped also.
3475167802Sjkim
3476167802Sjkim----------------------------------------
3477167802Sjkim02 November 2005. Summary of changes for version 20051102:
3478167802Sjkim
3479167802Sjkim1) ACPI CA Core Subsystem:
3480167802Sjkim
3481193267SjkimModified the subsystem initialization sequence to improve GPE support. The 
3482193267SjkimGPE initialization has been split into two parts in order to defer execution 
3483193267Sjkimof the _PRW methods (Power Resources for Wake) until after the hardware is 
3484193267Sjkimfully initialized and the SCI handler is installed. This allows the _PRW 
3485193267Sjkimmethods to access fields protected by the Global Lock. This will fix systems 
3486193267Sjkimwhere a NO_GLOBAL_LOCK exception has been seen during initialization.
3487167802Sjkim
3488193267SjkimConverted the ACPI internal object disassemble and display code within the 
3489193267SjkimAML debugger to fully table-driven operation, reducing code size and 
3490193267Sjkimincreasing maintainability.
3491167802Sjkim
3492193267SjkimFixed a regression with the ConcatenateResTemplate() ASL operator introduced 
3493193267Sjkimin the 20051021 release.
3494167802Sjkim
3495193267SjkimImplemented support for "local" internal ACPI object types within the 
3496193267Sjkimdebugger "Object" command and the AcpiWalkNamespace external interfaces. 
3497193267SjkimThese local types include RegionFields, BankFields, IndexFields, Alias, and 
3498193267Sjkimreference objects.
3499167802Sjkim
3500193267SjkimMoved common AML resource handling code into a new file, "utresrc.c". This 
3501193267Sjkimcode is shared by both the Resource Manager and the AML Debugger.
3502167802Sjkim
3503193267SjkimCode and Data Size: The current and previous library sizes for the core 
3504193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3505193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3506193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3507193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3508193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3509193267Sjkimof the compiler and the compiler options used during generation.
3510167802Sjkim
3511167802Sjkim  Previous Release:
3512167802Sjkim    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
3513167802Sjkim    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
3514167802Sjkim  Current Release:
3515167802Sjkim    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
3516167802Sjkim    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
3517167802Sjkim
3518167802Sjkim
3519167802Sjkim2) iASL Compiler/Disassembler:
3520167802Sjkim
3521193267SjkimFixed a problem with very large initializer lists (more than 4000 elements) 
3522193267Sjkimfor both Buffer and Package objects where the parse stack could overflow.
3523167802Sjkim
3524193267SjkimEnhanced the pre-compile source code scan for non-ASCII characters to ignore 
3525193267Sjkimcharacters within comment fields. The scan is now always performed and is no 
3526193267Sjkimlonger optional, detecting invalid characters within a source file 
3527193267Sjkimimmediately rather than during the parse phase or later.
3528167802Sjkim
3529193267SjkimEnhanced the ASL grammar definition to force early reductions on all list-
3530193267Sjkimstyle grammar elements so that the overall parse stack usage is greatly 
3531193267Sjkimreduced. This should improve performance and reduce the possibility of parse 
3532193267Sjkimstack overflow.
3533167802Sjkim
3534193267SjkimEliminated all reduce/reduce conflicts in the iASL parser generation. Also, 
3535193267Sjkimwith the addition of a %expected statement, the compiler generates from 
3536193267Sjkimsource with no warnings.
3537167802Sjkim
3538193267SjkimFixed a possible segment fault in the disassembler if the input filename 
3539193267Sjkimdoes not contain a "dot" extension (Thomas Renninger).
3540167802Sjkim
3541167802Sjkim----------------------------------------
3542151937Sjkim21 October 2005. Summary of changes for version 20051021:
3543151937Sjkim
3544151937Sjkim1) ACPI CA Core Subsystem:
3545151937Sjkim
3546193267SjkimImplemented support for the EM64T and other x86-64 processors. This 
3547193267Sjkimessentially entails recognizing that these processors support non-aligned 
3548193267Sjkimmemory transfers. Previously, all 64-bit processors were assumed to lack 
3549193267Sjkimhardware support for non-aligned transfers.
3550151937Sjkim
3551193267SjkimCompleted conversion of the Resource Manager to nearly full table-driven 
3552193267Sjkimoperation. Specifically, the resource conversion code (convert AML to 
3553193267Sjkiminternal format and the reverse) and the debug code to dump internal 
3554193267Sjkimresource descriptors are fully table-driven, reducing code and data size and 
3555193267Sjkimimproving maintainability.
3556151937Sjkim
3557193267SjkimThe OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 
3558193267Sjkimon 64-bit processors instead of a fixed 32-bit word. (With assistance from 
3559193267SjkimAlexey Starikovskiy)
3560151937Sjkim
3561193267SjkimImplemented support within the resource conversion code for the Type-
3562193267SjkimSpecific byte within the various ACPI 3.0 *WordSpace macros.
3563151937Sjkim
3564193267SjkimFixed some issues within the resource conversion code for the type-specific 
3565193267Sjkimflags for both Memory and I/O address resource descriptors. For Memory, 
3566193267Sjkimimplemented support for the MTP and TTP flags. For I/O, split the TRS and 
3567193267SjkimTTP flags into two separate fields.
3568151937Sjkim
3569193267SjkimCode and Data Size: The current and previous library sizes for the core 
3570193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3571193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3572193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3573193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3574193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3575193267Sjkimof the compiler and the compiler options used during generation.
3576151937Sjkim
3577151937Sjkim  Previous Release:
3578151937Sjkim    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
3579151937Sjkim    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
3580151937Sjkim  Current Release:
3581151937Sjkim    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
3582151937Sjkim    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
3583151937Sjkim
3584151937Sjkim
3585167802Sjkim
3586151937Sjkim2) iASL Compiler/Disassembler:
3587151937Sjkim
3588193267SjkimRelaxed a compiler restriction that disallowed a ResourceIndex byte if the 
3589193267Sjkimcorresponding ResourceSource string was not also present in a resource 
3590193267Sjkimdescriptor declaration. This restriction caused problems with existing 
3591193267SjkimAML/ASL code that includes the Index byte without the string. When such AML 
3592193267Sjkimwas disassembled, it could not be compiled without modification. Further, 
3593193267Sjkimthe modified code created a resource template with a different size than the 
3594193267Sjkimoriginal, breaking code that used fixed offsets into the resource template 
3595193267Sjkimbuffer.
3596151937Sjkim
3597193267SjkimRemoved a recent feature of the disassembler to ignore a lone ResourceIndex 
3598193267Sjkimbyte. This byte is now emitted if present so that the exact AML can be 
3599193267Sjkimreproduced when the disassembled code is recompiled.
3600151937Sjkim
3601193267SjkimImproved comments and text alignment for the resource descriptor code 
3602193267Sjkimemitted by the disassembler.
3603151937Sjkim
3604193267SjkimImplemented disassembler support for the ACPI 3.0 AccessSize field within a 
3605193267SjkimRegister() resource descriptor.
3606151937Sjkim
3607151937Sjkim----------------------------------------
3608151937Sjkim30 September 2005. Summary of changes for version 20050930:
3609151937Sjkim
3610151937Sjkim1) ACPI CA Core Subsystem:
3611151937Sjkim
3612193267SjkimCompleted a major overhaul of the Resource Manager code - specifically, 
3613193267Sjkimoptimizations in the area of the AML/internal resource conversion code. The 
3614193267Sjkimcode has been optimized to simplify and eliminate duplicated code, CPU stack 
3615193267Sjkimuse has been decreased by optimizing function parameters and local 
3616193267Sjkimvariables, and naming conventions across the manager have been standardized 
3617193267Sjkimfor clarity and ease of maintenance (this includes function, parameter, 
3618193267Sjkimvariable, and struct/typedef names.) The update may force changes in some 
3619193267Sjkimdriver code, depending on how resources are handled by the host OS.
3620151937Sjkim
3621193267SjkimAll Resource Manager dispatch and information tables have been moved to a 
3622193267Sjkimsingle location for clarity and ease of maintenance. One new file was 
3623193267Sjkimcreated, named "rsinfo.c".
3624151937Sjkim
3625193267SjkimThe ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 
3626193267Sjkimguarantee that the argument is not evaluated twice, making them less prone 
3627193267Sjkimto macro side-effects. However, since there exists the possibility of 
3628193267Sjkimadditional stack use if a particular compiler cannot optimize them (such as 
3629193267Sjkimin the debug generation case), the original macros are optionally available.  
3630193267SjkimNote that some invocations of the return_VALUE macro may now cause size 
3631193267Sjkimmismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 
3632193267Sjkimeliminate these. (From Randy Dunlap)
3633151937Sjkim
3634193267SjkimImplemented a new mechanism to enable debug tracing for individual control 
3635193267Sjkimmethods. A new external interface, AcpiDebugTrace, is provided to enable 
3636193267Sjkimthis mechanism. The intent is to allow the host OS to easily enable and 
3637193267Sjkimdisable tracing for problematic control methods. This interface can be 
3638193267Sjkimeasily exposed to a user or debugger interface if desired. See the file 
3639151937Sjkimpsxface.c for details.
3640151937Sjkim
3641193267SjkimAcpiUtCallocate will now return a valid pointer if a length of zero is 
3642193267Sjkimspecified - a length of one is used and a warning is issued. This matches 
3643193267Sjkimthe behavior of AcpiUtAllocate.
3644151937Sjkim
3645193267SjkimCode and Data Size: The current and previous library sizes for the core 
3646193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3647193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3648193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3649193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3650193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3651193267Sjkimof the compiler and the compiler options used during generation.
3652151937Sjkim
3653151937Sjkim  Previous Release:
3654151937Sjkim    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
3655151937Sjkim    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
3656151937Sjkim  Current Release:
3657151937Sjkim    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
3658151937Sjkim    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
3659151937Sjkim
3660151937Sjkim
3661151937Sjkim2) iASL Compiler/Disassembler:
3662151937Sjkim
3663193267SjkimA remark is issued if the effective compile-time length of a package or 
3664193267Sjkimbuffer is zero. Previously, this was a warning.
3665151937Sjkim
3666151937Sjkim----------------------------------------
3667151937Sjkim16 September 2005. Summary of changes for version 20050916:
3668151937Sjkim
3669151937Sjkim1) ACPI CA Core Subsystem:
3670151937Sjkim
3671193267SjkimFixed a problem within the Resource Manager where support for the Generic 
3672193267SjkimRegister descriptor was not fully implemented. This descriptor is now fully 
3673193267Sjkimrecognized, parsed, disassembled, and displayed.
3674151937Sjkim
3675193267SjkimCompletely restructured the Resource Manager code to utilize table-driven 
3676193267Sjkimdispatch and lookup, eliminating many of the large switch() statements. This 
3677193267Sjkimreduces overall subsystem code size and code complexity. Affects the 
3678193267Sjkimresource parsing and construction, disassembly, and debug dump output.
3679151937Sjkim
3680193267SjkimCleaned up and restructured the debug dump output for all resource 
3681193267Sjkimdescriptors. Improved readability of the output and reduced code size.
3682151937Sjkim
3683193267SjkimFixed a problem where changes to internal data structures caused the 
3684193267Sjkimoptional ACPI_MUTEX_DEBUG code to fail compilation if specified.
3685151937Sjkim
3686193267SjkimCode and Data Size: The current and previous library sizes for the core 
3687193267Sjkimsubsystem are shown below. These are the code and data sizes for the 
3688193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 
3689193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 
3690193267Sjkimcode includes the debug output trace mechanism and has a much larger code 
3691193267Sjkimand data size. Note that these values will vary depending on the efficiency 
3692193267Sjkimof the compiler and the compiler options used during generation.
3693151937Sjkim
3694151937Sjkim  Previous Release:
3695151937Sjkim    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
3696151937Sjkim    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
3697151937Sjkim  Current Release:
3698151937Sjkim    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
3699151937Sjkim    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
3700151937Sjkim
3701151937Sjkim
3702151937Sjkim2) iASL Compiler/Disassembler:
3703151937Sjkim
3704193267SjkimUpdated the disassembler to automatically insert an EndDependentFn() macro 
3705193267Sjkiminto the ASL stream if this macro is missing in the original AML code, 
3706193267Sjkimsimplifying compilation of the resulting ASL module.
3707151937Sjkim
3708193267SjkimFixed a problem in the disassembler where a disassembled ResourceSource 
3709193267Sjkimstring (within a large resource descriptor) was not surrounded by quotes and 
3710193267Sjkimnot followed by a comma, causing errors when the resulting ASL module was 
3711193267Sjkimcompiled. Also, escape sequences within a ResourceSource string are now 
3712193267Sjkimhandled correctly (especially "\\")
3713151937Sjkim
3714151937Sjkim----------------------------------------
3715151937Sjkim02 September 2005. Summary of changes for version 20050902:
3716151937Sjkim
3717151937Sjkim1) ACPI CA Core Subsystem:
3718151937Sjkim
3719193267SjkimFixed a problem with the internal Owner ID allocation and deallocation 
3720193267Sjkimmechanisms for control method execution and recursive method invocation. 
3721193267SjkimThis should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 
3722193267Sjkimmessages seen on some systems. Recursive method invocation depth is 
3723193267Sjkimcurrently limited to 255. (Alexey Starikovskiy)
3724151937Sjkim
3725193267SjkimCompletely eliminated all vestiges of support for the "module-level 
3726193267Sjkimexecutable code" until this support is fully implemented and debugged. This 
3727193267Sjkimshould eliminate the NO_RETURN_VALUE exceptions seen during table load on 
3728193267Sjkimsome systems that invoke this support.
3729151937Sjkim
3730193267SjkimFixed a problem within the resource manager code where the transaction flags 
3731193267Sjkimfor a 64-bit address descriptor were handled incorrectly in the type-
3732193267Sjkimspecific flag byte.
3733151937Sjkim
3734193267SjkimConsolidated duplicate code within the address descriptor resource manager 
3735193267Sjkimcode, reducing overall subsystem code size.
3736151937Sjkim
3737193267SjkimFixed a fault when using the AML debugger "disassemble" command to 
3738193267Sjkimdisassemble individual control methods.
3739151937Sjkim
3740193267SjkimRemoved references to the "release_current" directory within the Unix 
3741193267Sjkimrelease package.
3742151937Sjkim
3743193267SjkimCode and Data Size: The current and previous core subsystem library sizes 
3744193267Sjkimare shown below. These are the code and data sizes for the acpica.lib 
3745193267Sjkimproduced by the Microsoft Visual C++ 6.0 compiler. These values do not 
3746193267Sjkiminclude any ACPI driver or OSPM code. The debug version of the code includes 
3747193267Sjkimthe debug output trace mechanism and has a much larger code and data size. 
3748193267SjkimNote that these values will vary depending on the efficiency of the compiler 
3749193267Sjkimand the compiler options used during generation.
3750151937Sjkim
3751151937Sjkim  Previous Release:
3752151937Sjkim    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
3753151937Sjkim    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
3754151937Sjkim  Current Release:
3755151937Sjkim    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
3756151937Sjkim    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
3757151937Sjkim
3758151937Sjkim
3759151937Sjkim2) iASL Compiler/Disassembler:
3760151937Sjkim
3761193267SjkimImplemented an error check for illegal duplicate values in the interrupt and 
3762193267Sjkimdma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 
3763193267SjkimInterrupt().
3764151937Sjkim
3765193267SjkimImplemented error checking for the Irq() and IrqNoFlags() macros to detect 
3766193267Sjkimtoo many values in the interrupt list (16 max) and invalid values in the 
3767193267Sjkimlist (range 0 - 15)
3768151937Sjkim
3769193267SjkimThe maximum length string literal within an ASL file is now restricted to 
3770193267Sjkim200 characters as per the ACPI specification.
3771151937Sjkim
3772193267SjkimFixed a fault when using the -ln option (generate namespace listing).
3773151937Sjkim
3774193267SjkimImplemented an error check to determine if a DescriptorName within a 
3775193267Sjkimresource descriptor has already been used within the current scope.
3776151937Sjkim
3777151937Sjkim----------------------------------------
3778151937Sjkim15 August 2005.  Summary of changes for version 20050815:
3779193267Sjkim 
3780151937Sjkim1) ACPI CA Core Subsystem:
3781193267Sjkim 
3782193267SjkimImplemented a full bytewise compare to determine if a table load request is 
3783193267Sjkimattempting to load a duplicate table. The compare is performed if the table 
3784193267Sjkimsignatures and table lengths match. This will allow different tables with 
3785193267Sjkimthe same OEM Table ID and revision to be loaded - probably against the ACPI 
3786193267Sjkimspecification, but discovered in the field nonetheless.
3787193267Sjkim 
3788193267SjkimAdded the changes.txt logfile to each of the zipped release packages.
3789193267Sjkim 
3790193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
3791193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
3792193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
3793193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
3794193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
3795193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
3796193267Sjkimthe compiler options used during generation.
3797193267Sjkim 
3798151937Sjkim  Previous Release:
3799151937Sjkim    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
3800151937Sjkim    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
3801151937Sjkim  Current Release:
3802151937Sjkim    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
3803151937Sjkim    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
3804193267Sjkim 
3805193267Sjkim 
3806151937Sjkim2) iASL Compiler/Disassembler:
3807193267Sjkim 
3808193267SjkimFixed a problem where incorrect AML code could be generated for Package 
3809193267Sjkimobjects if optimization is disabled (via the -oa switch).
3810193267Sjkim 
3811193267SjkimFixed a problem with where incorrect AML code is generated for variable-
3812193267Sjkimlength packages when the package length is not specified and the number of 
3813193267Sjkiminitializer values is greater than 255.
3814193267Sjkim 
3815151937Sjkim
3816151937Sjkim----------------------------------------
3817151937Sjkim29 July 2005.  Summary of changes for version 20050729:
3818151937Sjkim
3819151937Sjkim1) ACPI CA Core Subsystem:
3820151937Sjkim
3821193267SjkimImplemented support to ignore an attempt to install/load a particular ACPI 
3822193267Sjkimtable more than once. Apparently there exists BIOS code that repeatedly 
3823193267Sjkimattempts to load the same SSDT upon certain events. With assistance from 
3824193267SjkimVenkatesh Pallipadi.
3825151937Sjkim
3826193267SjkimRestructured the main interface to the AML parser in order to correctly 
3827193267Sjkimhandle all exceptional conditions. This will prevent leakage of the OwnerId 
3828193267Sjkimresource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 
3829193267Sjkimmachines. With assistance from Alexey Starikovskiy.
3830151937Sjkim
3831193267SjkimSupport for "module level code" has been disabled in this version due to a 
3832193267Sjkimnumber of issues that have appeared on various machines. The support can be 
3833193267Sjkimenabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 
3834193267Sjkimcompilation. When the issues are fully resolved, the code will be enabled by 
3835151937Sjkimdefault again.
3836151937Sjkim
3837193267SjkimModified the internal functions for debug print support to define the 
3838193267SjkimFunctionName parameter as a (const char *) for compatibility with compiler 
3839193267Sjkimbuilt-in macros such as __FUNCTION__, etc.
3840151937Sjkim
3841151937SjkimLinted the entire ACPICA source tree for both 32-bit and 64-bit.
3842151937Sjkim
3843193267SjkimImplemented support to display an object count summary for the AML Debugger 
3844193267Sjkimcommands Object and Methods.
3845151937Sjkim
3846193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
3847193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
3848193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
3849193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
3850193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
3851193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
3852193267Sjkimthe compiler options used during generation.
3853151937Sjkim
3854151937Sjkim  Previous Release:
3855151937Sjkim    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
3856151937Sjkim    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
3857151937Sjkim  Current Release:
3858151937Sjkim    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
3859151937Sjkim    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
3860151937Sjkim
3861151937Sjkim
3862151937Sjkim2) iASL Compiler/Disassembler:
3863151937Sjkim
3864193267SjkimFixed a regression that appeared in the 20050708 version of the compiler 
3865193267Sjkimwhere an error message was inadvertently emitted for invocations of the _OSI 
3866193267Sjkimreserved control method.
3867151937Sjkim
3868151937Sjkim----------------------------------------
3869151937Sjkim08 July 2005.  Summary of changes for version 20050708:
3870151937Sjkim
3871151937Sjkim1) ACPI CA Core Subsystem:
3872151937Sjkim
3873193267SjkimThe use of the CPU stack in the debug version of the subsystem has been 
3874193267Sjkimconsiderably reduced. Previously, a debug structure was declared in every 
3875193267Sjkimfunction that used the debug macros. This structure has been removed in 
3876193267Sjkimfavor of declaring the individual elements as parameters to the debug 
3877193267Sjkimfunctions. This reduces the cumulative stack use during nested execution of 
3878193267SjkimACPI function calls at the cost of a small increase in the code size of the 
3879193267Sjkimdebug version of the subsystem. With assistance from Alexey Starikovskiy and 
3880193267SjkimLen Brown.
3881151937Sjkim
3882193267SjkimAdded the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 
3883193267Sjkimheaders to define a macro that will return the current function name at 
3884193267Sjkimruntime (such as __FUNCTION__ or _func_, etc.) The function name is used by 
3885193267Sjkimthe debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 
3886193267Sjkimcompiler-dependent header, the function name is saved on the CPU stack (one 
3887193267Sjkimpointer per function.) This mechanism is used because apparently there 
3888193267Sjkimexists no standard ANSI-C defined macro that that returns the function name.
3889151937Sjkim
3890193267SjkimRedesigned and reimplemented the "Owner ID" mechanism used to track 
3891193267Sjkimnamespace objects created/deleted by ACPI tables and control method 
3892193267Sjkimexecution. A bitmap is now used to allocate and free the IDs, thus solving 
3893193267Sjkimthe wraparound problem present in the previous implementation. The size of 
3894193267Sjkimthe namespace node descriptor was reduced by 2 bytes as a result (Alexey 
3895151937SjkimStarikovskiy).
3896151937Sjkim
3897193267SjkimRemoved the UINT32_BIT and UINT16_BIT types that were used for the bitfield 
3898193267Sjkimflag definitions within the headers for the predefined ACPI tables. These 
3899193267Sjkimhave been replaced by UINT8_BIT in order to increase the code portability of 
3900193267Sjkimthe subsystem. If the use of UINT8 remains a problem, we may be forced to 
3901193267Sjkimeliminate bitfields entirely because of a lack of portability.
3902151937Sjkim
3903193267SjkimEnhanced the performance of the AcpiUtUpdateObjectReference procedure. This 
3904193267Sjkimis a frequently used function and this improvement increases the performance 
3905193267Sjkimof the entire subsystem (Alexey Starikovskiy).
3906151937Sjkim
3907193267SjkimFixed several possible memory leaks and the inverse - premature object 
3908193267Sjkimdeletion (Alexey Starikovskiy).
3909151937Sjkim
3910193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
3911193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
3912193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
3913193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
3914193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
3915193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
3916193267Sjkimthe compiler options used during generation.
3917151937Sjkim
3918151937Sjkim  Previous Release:
3919151937Sjkim    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
3920151937Sjkim    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
3921151937Sjkim  Current Release:
3922151937Sjkim    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
3923151937Sjkim    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
3924151937Sjkim
3925151937Sjkim----------------------------------------
3926151937Sjkim24 June 2005.  Summary of changes for version 20050624:
3927151937Sjkim
3928151937Sjkim1) ACPI CA Core Subsystem:
3929151937Sjkim
3930193267SjkimModified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 
3931193267Sjkimthe host-defined cache object. This allows the OSL implementation to define 
3932193267Sjkimand type this object in any manner desired, simplifying the OSL 
3933193267Sjkimimplementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 
3934193267SjkimLinux, and should be defined in the OS-specific header file for other 
3935193267Sjkimoperating systems as required.
3936151937Sjkim
3937193267SjkimChanged the interface to AcpiOsAcquireObject to directly return the 
3938193267Sjkimrequested object as the function return (instead of ACPI_STATUS.) This 
3939193267Sjkimchange was made for performance reasons, since this is the purpose of the 
3940193267Sjkiminterface in the first place. AcpiOsAcquireObject is now similar to the 
3941193267SjkimAcpiOsAllocate interface.
3942151937Sjkim
3943193267SjkimImplemented a new AML debugger command named Businfo. This command displays 
3944193267Sjkiminformation about all devices that have an associate _PRT object. The _ADR, 
3945193267Sjkim_HID, _UID, and _CID are displayed for these devices.
3946151937Sjkim
3947193267SjkimModified the initialization sequence in AcpiInitializeSubsystem to call the 
3948193267SjkimOSL interface AcpiOslInitialize first, before any local initialization. This 
3949193267Sjkimchange was required because the global initialization now calls OSL 
3950193267Sjkiminterfaces.
3951151937Sjkim
3952193267SjkimEnhanced the Dump command to display the entire contents of Package objects 
3953193267Sjkim(including all sub-objects and their values.) 
3954151937Sjkim
3955193267SjkimRestructured the code base to split some files because of size and/or 
3956193267Sjkimbecause the code logically belonged in a separate file. New files are listed 
3957193267Sjkimbelow. All makefiles and project files included in the ACPI CA release have 
3958193267Sjkimbeen updated.
3959151937Sjkim    utilities/utcache.c           /* Local cache interfaces */
3960151937Sjkim    utilities/utmutex.c           /* Local mutex support */
3961151937Sjkim    utilities/utstate.c           /* State object support */
3962151937Sjkim    interpreter/parser/psloop.c   /* Main AML parse loop */
3963151937Sjkim
3964193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
3965193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
3966193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
3967193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
3968193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
3969193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
3970193267Sjkimthe compiler options used during generation.
3971151937Sjkim
3972151937Sjkim  Previous Release:
3973151937Sjkim    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
3974151937Sjkim    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
3975151937Sjkim  Current Release:
3976151937Sjkim    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
3977151937Sjkim    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
3978151937Sjkim
3979151937Sjkim
3980151937Sjkim2) iASL Compiler/Disassembler:
3981151937Sjkim
3982193267SjkimFixed a regression introduced in version 20050513 where the use of a Package 
3983193267Sjkimobject within a Case() statement caused a compile time exception. The 
3984193267Sjkimoriginal behavior has been restored (a Match() operator is emitted.)
3985151937Sjkim
3986151937Sjkim----------------------------------------
3987151937Sjkim17 June 2005.  Summary of changes for version 20050617:
3988151937Sjkim
3989151937Sjkim1) ACPI CA Core Subsystem:
3990151937Sjkim
3991193267SjkimMoved the object cache operations into the OS interface layer (OSL) to allow 
3992193267Sjkimthe host OS to handle these operations if desired (for example, the Linux 
3993193267SjkimOSL will invoke the slab allocator). This support is optional; the compile 
3994193267Sjkimtime define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 
3995193267Sjkimcode in the ACPI CA core. The new OSL interfaces are shown below. See 
3996193267Sjkimutalloc.c for an example implementation, and acpiosxf.h for the exact 
3997193267Sjkiminterface definitions. With assistance from Alexey Starikovskiy.
3998151937Sjkim    AcpiOsCreateCache
3999151937Sjkim    AcpiOsDeleteCache
4000151937Sjkim    AcpiOsPurgeCache
4001151937Sjkim    AcpiOsAcquireObject
4002151937Sjkim    AcpiOsReleaseObject
4003151937Sjkim
4004193267SjkimModified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 
4005193267Sjkimand restore a flags parameter. This fits better with many OS lock models. 
4006193267SjkimNote: the current execution state (interrupt handler or not) is no longer 
4007193267Sjkimpassed to these interfaces. If necessary, the OSL must determine this state 
4008193267Sjkimby itself, a simple and fast operation. With assistance from Alexey 
4009151937SjkimStarikovskiy.
4010151937Sjkim
4011193267SjkimFixed a problem in the ACPI table handling where a valid XSDT was assumed 
4012193267Sjkimpresent if the revision of the RSDP was 2 or greater. According to the ACPI 
4013193267Sjkimspecification, the XSDT is optional in all cases, and the table manager 
4014193267Sjkimtherefore now checks for both an RSDP >=2 and a valid XSDT pointer. 
4015193267SjkimOtherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 
4016193267Sjkimonly the RSDT.
4017151937Sjkim
4018193267SjkimFixed an interpreter problem with the Mid() operator in the case of an input 
4019193267Sjkimstring where the resulting output string is of zero length. It now correctly 
4020193267Sjkimreturns a valid, null terminated string object instead of a string object 
4021193267Sjkimwith a null pointer.
4022151937Sjkim
4023193267SjkimFixed a problem with the control method argument handling to allow a store 
4024193267Sjkimto an Arg object that already contains an object of type Device. The Device 
4025193267Sjkimobject is now correctly overwritten. Previously, an error was returned.
4026151937Sjkim
4027167802Sjkim
4028193267SjkimEnhanced the debugger Find command to emit object values in addition to the 
4029193267Sjkimfound object pathnames. The output format is the same as the dump namespace 
4030193267Sjkimcommand.
4031151937Sjkim
4032193267SjkimEnhanced the debugger Set command. It now has the ability to set the value 
4033193267Sjkimof any Named integer object in the namespace (Previously, only method locals 
4034193267Sjkimand args could be set.)
4035151937Sjkim
4036193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4037193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4038193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4039193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4040193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4041193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4042193267Sjkimthe compiler options used during generation.
4043151937Sjkim
4044151937Sjkim  Previous Release:
4045151937Sjkim    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
4046151937Sjkim    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
4047151937Sjkim  Current Release:
4048151937Sjkim    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
4049151937Sjkim    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
4050151937Sjkim
4051151937Sjkim
4052151937Sjkim2) iASL Compiler/Disassembler:
4053151937Sjkim
4054193267SjkimFixed a regression in the disassembler where if/else/while constructs were 
4055193267Sjkimoutput incorrectly. This problem was introduced in the previous release 
4056193267Sjkim(20050526). This problem also affected the single-step disassembly in the 
4057193267Sjkimdebugger.
4058151937Sjkim
4059193267SjkimFixed a problem where compiling the reserved _OSI method would randomly (but 
4060193267Sjkimrarely) produce compile errors.
4061151937Sjkim
4062193267SjkimEnhanced the disassembler to emit compilable code in the face of incorrect 
4063193267SjkimAML resource descriptors. If the optional ResourceSourceIndex is present, 
4064193267Sjkimbut the ResourceSource is not, do not emit the ResourceSourceIndex in the 
4065193267Sjkimdisassembly. Otherwise, the resulting code cannot be compiled without 
4066193267Sjkimerrors.
4067151937Sjkim
4068151937Sjkim----------------------------------------
4069151937Sjkim26 May 2005.  Summary of changes for version 20050526:
4070151937Sjkim
4071151937Sjkim1) ACPI CA Core Subsystem:
4072151937Sjkim
4073193267SjkimImplemented support to execute Type 1 and Type 2 AML opcodes appearing at 
4074193267Sjkimthe module level (not within a control method.) These opcodes are executed 
4075193267Sjkimexactly once at the time the table is loaded. This type of code was legal up 
4076193267Sjkimuntil the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 
4077193267Sjkimorder to provide backwards compatibility with earlier BIOS implementations. 
4078193267SjkimThis eliminates the "Encountered executable code at module level" warning 
4079193267Sjkimthat was previously generated upon detection of such code.
4080151937Sjkim
4081193267SjkimFixed a problem in the interpreter where an AE_NOT_FOUND exception could 
4082193267Sjkiminadvertently be generated during the lookup of namespace objects in the 
4083193267Sjkimsecond pass parse of ACPI tables and control methods. It appears that this 
4084193267Sjkimproblem could occur during the resolution of forward references to namespace 
4085193267Sjkimobjects.
4086151937Sjkim
4087193267SjkimAdded the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 
4088193267Sjkimcorresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 
4089193267Sjkimallows the deadlock detection debug code to be compiled out in the normal 
4090193267Sjkimcase, improving mutex performance (and overall subsystem performance) 
4091193267Sjkimconsiderably.
4092151937Sjkim
4093193267SjkimImplemented a handful of miscellaneous fixes for possible memory leaks on 
4094193267Sjkimerror conditions and error handling control paths. These fixes were 
4095193267Sjkimsuggested by FreeBSD and the Coverity Prevent source code analysis tool.
4096151937Sjkim
4097193267SjkimAdded a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 
4098193267Sjkimto prevent a fault in this error case.
4099151937Sjkim
4100193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4101193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4102193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4103193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4104193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4105193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4106193267Sjkimthe compiler options used during generation.
4107151937Sjkim
4108151937Sjkim  Previous Release:
4109151937Sjkim    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
4110151937Sjkim    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
4111151937Sjkim  Current Release:
4112151937Sjkim    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
4113151937Sjkim    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
4114151937Sjkim
4115151937Sjkim
4116151937Sjkim2) iASL Compiler/Disassembler:
4117151937Sjkim
4118193267SjkimImplemented support to allow Type 1 and Type 2 ASL operators to appear at 
4119193267Sjkimthe module level (not within a control method.) These operators will be 
4120193267Sjkimexecuted once at the time the table is loaded. This type of code was legal 
4121193267Sjkimup until the release of ACPI 2.0B (2002) and is now supported by the iASL 
4122193267Sjkimcompiler in order to provide backwards compatibility with earlier BIOS ASL 
4123193267Sjkimcode.
4124151937Sjkim
4125193267SjkimThe ACPI integer width (specified via the table revision ID or the -r 
4126193267Sjkimoverride, 32 or 64 bits) is now used internally during compile-time constant 
4127193267Sjkimfolding to ensure that constants are truncated to 32 bits if necessary. 
4128193267SjkimPreviously, the revision ID value was only emitted in the AML table header.
4129151937Sjkim
4130193267SjkimAn error message is now generated for the Mutex and Method operators if the 
4131193267SjkimSyncLevel parameter is outside the legal range of 0 through 15.
4132151937Sjkim
4133193267SjkimFixed a problem with the Method operator ParameterTypes list handling (ACPI 
4134193267Sjkim3.0). Previously, more than 2 types or 2 arguments generated a syntax error.  
4135193267SjkimThe actual underlying implementation of method argument typechecking is 
4136193267Sjkimstill under development, however.
4137151937Sjkim
4138151937Sjkim----------------------------------------
4139151937Sjkim13 May 2005.  Summary of changes for version 20050513:
4140151937Sjkim
4141151937Sjkim1) ACPI CA Core Subsystem:
4142151937Sjkim
4143193267SjkimImplemented support for PCI Express root bridges -- added support for device 
4144193267SjkimPNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
4145151937Sjkim
4146193267SjkimThe interpreter now automatically truncates incoming 64-bit constants to 32 
4147193267Sjkimbits if currently executing out of a 32-bit ACPI table (Revision < 2). This 
4148193267Sjkimalso affects the iASL compiler constant folding. (Note: as per below, the 
4149193267SjkimiASL compiler no longer allows 64-bit constants within 32-bit tables.)
4150151937Sjkim
4151193267SjkimFixed a problem where string and buffer objects with "static" pointers 
4152193267Sjkim(pointers to initialization data within an ACPI table) were not handled 
4153193267Sjkimconsistently. The internal object copy operation now always copies the data 
4154193267Sjkimto a newly allocated buffer, regardless of whether the source object is 
4155193267Sjkimstatic or not.
4156151937Sjkim
4157193267SjkimFixed a problem with the FromBCD operator where an implicit result 
4158193267Sjkimconversion was improperly performed while storing the result to the target 
4159193267Sjkimoperand. Since this is an "explicit conversion" operator, the implicit 
4160193267Sjkimconversion should never be performed on the output.
4161151937Sjkim
4162193267SjkimFixed a problem with the CopyObject operator where a copy to an existing 
4163193267Sjkimnamed object did not always completely overwrite the existing object stored 
4164193267Sjkimat name. Specifically, a buffer-to-buffer copy did not delete the existing 
4165193267Sjkimbuffer.
4166151937Sjkim
4167193267SjkimReplaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 
4168193267Sjkimstructs for consistency.
4169151937Sjkim
4170193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4171193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4172193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4173193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4174193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4175193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4176193267Sjkimthe compiler options used during generation.
4177151937Sjkim
4178151937Sjkim  Previous Release:
4179151937Sjkim    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
4180151937Sjkim    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
4181151937Sjkim  Current Release: (Same sizes)
4182151937Sjkim    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
4183151937Sjkim    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
4184151937Sjkim
4185151937Sjkim
4186151937Sjkim2) iASL Compiler/Disassembler:
4187151937Sjkim
4188193267SjkimThe compiler now emits a warning if an attempt is made to generate a 64-bit 
4189193267Sjkiminteger constant from within a 32-bit ACPI table (Revision < 2). The integer 
4190193267Sjkimis truncated to 32 bits.
4191151937Sjkim
4192193267SjkimFixed a problem with large package objects: if the static length of the 
4193193267Sjkimpackage is greater than 255, the "variable length package" opcode is 
4194193267Sjkimemitted. Previously, this caused an error. This requires an update to the 
4195193267SjkimACPI spec, since it currently (incorrectly) states that packages larger than 
4196193267Sjkim255 elements are not allowed.
4197151937Sjkim
4198193267SjkimThe disassembler now correctly handles variable length packages and packages 
4199193267Sjkimlarger than 255 elements.
4200151937Sjkim
4201151937Sjkim----------------------------------------
4202151937Sjkim08 April 2005.  Summary of changes for version 20050408:
4203151937Sjkim
4204151937Sjkim1) ACPI CA Core Subsystem:
4205151937Sjkim
4206193267SjkimFixed three cases in the interpreter where an "index" argument to an ASL 
4207193267Sjkimfunction was still (internally) 32 bits instead of the required 64 bits. 
4208193267SjkimThis was the Index argument to the Index, Mid, and Match operators.
4209151937Sjkim
4210193267SjkimThe "strupr" function is now permanently local (AcpiUtStrupr), since this is 
4211193267Sjkimnot a POSIX-defined function and not present in most kernel-level C 
4212193267Sjkimlibraries. All references to the C library strupr function have been removed 
4213193267Sjkimfrom the headers.
4214151937Sjkim
4215193267SjkimCompleted the deployment of static functions/prototypes. All prototypes with 
4216193267Sjkimthe static attribute have been moved from the headers to the owning C file.
4217151937Sjkim
4218193267SjkimImplemented an extract option (-e) for the AcpiBin utility (AML binary 
4219193267Sjkimutility). This option allows the utility to extract individual ACPI tables 
4220193267Sjkimfrom the output of AcpiDmp. It provides the same functionality of the 
4221193267Sjkimacpixtract.pl perl script without the worry of setting the correct perl 
4222193267Sjkimoptions. AcpiBin runs on Windows and has not yet been generated/validated in 
4223193267Sjkimthe Linux/Unix environment (but should be soon).
4224193267Sjkim 
4225193267SjkimUpdated and fixed the table dump option for AcpiBin (-d). This option 
4226193267Sjkimconverts a single ACPI table to a hex/ascii file, similar to the output of 
4227193267SjkimAcpiDmp.
4228151937Sjkim
4229193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4230193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4231193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4232193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4233193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4234193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4235193267Sjkimthe compiler options used during generation.
4236151937Sjkim
4237151937Sjkim  Previous Release:
4238151937Sjkim    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
4239151937Sjkim    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
4240151937Sjkim  Current Release:
4241151937Sjkim    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
4242151937Sjkim    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
4243151937Sjkim
4244151937Sjkim
4245151937Sjkim2) iASL Compiler/Disassembler:
4246151937Sjkim
4247193267SjkimDisassembler fix: Added a check to ensure that the table length found in the 
4248193267SjkimACPI table header within the input file is not longer than the actual input 
4249193267Sjkimfile size. This indicates some kind of file or table corruption.
4250151937Sjkim
4251151937Sjkim----------------------------------------
4252151937Sjkim29 March 2005.  Summary of changes for version 20050329:
4253151937Sjkim
4254151937Sjkim1) ACPI CA Core Subsystem:
4255151937Sjkim
4256193267SjkimAn error is now generated if an attempt is made to create a Buffer Field of 
4257193267Sjkimlength zero (A CreateField with a length operand of zero.)
4258151937Sjkim
4259193267SjkimThe interpreter now issues a warning whenever executable code at the module 
4260193267Sjkimlevel is detected during ACPI table load. This will give some idea of the 
4261193267Sjkimprevalence of this type of code.
4262151937Sjkim
4263193267SjkimImplemented support for references to named objects (other than control 
4264193267Sjkimmethods) within package objects.
4265151937Sjkim
4266193267SjkimEnhanced package object output for the debug object. Package objects are now 
4267193267Sjkimcompletely dumped, showing all elements.
4268151937Sjkim
4269193267SjkimEnhanced miscellaneous object output for the debug object. Any object can 
4270193267Sjkimnow be written to the debug object (for example, a device object can be 
4271193267Sjkimwritten, and the type of the object will be displayed.)
4272151937Sjkim
4273193267SjkimThe "static" qualifier has been added to all local functions across both the 
4274193267Sjkimcore subsystem and the iASL compiler.
4275151937Sjkim
4276193267SjkimThe number of "long" lines (> 80 chars) within the source has been 
4277193267Sjkimsignificantly reduced, by about 1/3.
4278151937Sjkim
4279193267SjkimCleaned up all header files to ensure that all CA/iASL functions are 
4280193267Sjkimprototyped (even static functions) and the formatting is consistent.
4281151937Sjkim
4282151937SjkimTwo new header files have been added, acopcode.h and acnames.h.
4283151937Sjkim
4284151937SjkimRemoved several obsolete functions that were no longer used.
4285151937Sjkim
4286193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4287193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4288193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4289193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4290193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4291193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4292193267Sjkimthe compiler options used during generation.
4293151937Sjkim
4294151937Sjkim  Previous Release:
4295151937Sjkim    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
4296151937Sjkim    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
4297151937Sjkim  Current Release:
4298151937Sjkim    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
4299151937Sjkim    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
4300151937Sjkim
4301151937Sjkim
4302167802Sjkim
4303151937Sjkim2) iASL Compiler/Disassembler:
4304151937Sjkim
4305193267SjkimFixed a problem with the resource descriptor generation/support. For the 
4306193267SjkimResourceSourceIndex and the ResourceSource fields, both must be present, or 
4307193267Sjkimboth must be not present - can't have one without the other.
4308151937Sjkim
4309193267SjkimThe compiler now returns non-zero from the main procedure if any errors have 
4310193267Sjkimoccurred during the compilation.
4311151937Sjkim
4312151937Sjkim
4313151937Sjkim----------------------------------------
4314151937Sjkim09 March 2005.  Summary of changes for version 20050309:
4315151937Sjkim
4316151937Sjkim1) ACPI CA Core Subsystem:
4317151937Sjkim
4318193267SjkimThe string-to-buffer implicit conversion code has been modified again after 
4319193267Sjkima change to the ACPI specification.  In order to match the behavior of the 
4320193267Sjkimother major ACPI implementation, the target buffer is no longer truncated if 
4321193267Sjkimthe source string is smaller than an existing target buffer. This change 
4322193267Sjkimrequires an update to the ACPI spec, and should eliminate the recent 
4323151937SjkimAE_AML_BUFFER_LIMIT issues.
4324151937Sjkim
4325193267SjkimThe "implicit return" support was rewritten to a new algorithm that solves 
4326193267Sjkimthe general case. Rather than attempt to determine when a method is about to 
4327193267Sjkimexit, the result of every ASL operator is saved momentarily until the very 
4328193267Sjkimnext ASL operator is executed. Therefore, no matter how the method exits, 
4329193267Sjkimthere will always be a saved implicit return value. This feature is only 
4330193267Sjkimenabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 
4331193267SjkimAE_AML_NO_RETURN_VALUE errors when enabled.
4332151937Sjkim
4333193267SjkimImplemented implicit conversion support for the predicate (operand) of the 
4334193267SjkimIf, Else, and While operators. String and Buffer arguments are automatically 
4335193267Sjkimconverted to Integers.
4336151937Sjkim
4337193267SjkimChanged the string-to-integer conversion behavior to match the new ACPI 
4338193267Sjkimerrata: "If no integer object exists, a new integer is created. The ASCII 
4339193267Sjkimstring is interpreted as a hexadecimal constant. Each string character is 
4340193267Sjkiminterpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 
4341193267Sjkimwith the first character as the most significant digit, and ending with the 
4342193267Sjkimfirst non-hexadecimal character or end-of-string." This means that the first 
4343193267Sjkimnon-hex character terminates the conversion and this is the code that was 
4344193267Sjkimchanged.
4345151937Sjkim
4346193267SjkimFixed a problem where the ObjectType operator would fail (fault) when used 
4347193267Sjkimon an Index of a Package which pointed to a null package element. The 
4348193267Sjkimoperator now properly returns zero (Uninitialized) in this case.
4349151937Sjkim
4350193267SjkimFixed a problem where the While operator used excessive memory by not 
4351193267Sjkimproperly popping the result stack during execution. There was no memory leak 
4352193267Sjkimafter execution, however. (Code provided by Valery Podrezov.)
4353151937Sjkim
4354193267SjkimFixed a problem where references to control methods within Package objects 
4355193267Sjkimcaused the method to be invoked, instead of producing a reference object 
4356193267Sjkimpointing to the method.
4357151937Sjkim
4358193267SjkimRestructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 
4359193267Sjkimimprove performance and reduce code size. (Code provided by Alexey 
4360193267SjkimStarikovskiy.)
4361151937Sjkim
4362193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4363193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4364193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4365193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4366193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4367193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4368193267Sjkimthe compiler options used during generation.
4369151937Sjkim
4370151937Sjkim  Previous Release:
4371151937Sjkim    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
4372151937Sjkim    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
4373151937Sjkim  Current Release:
4374151937Sjkim    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
4375151937Sjkim    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
4376151937Sjkim
4377151937Sjkim
4378151937Sjkim2) iASL Compiler/Disassembler:
4379151937Sjkim
4380193267SjkimFixed a problem with the Return operator with no arguments. Since the AML 
4381193267Sjkimgrammar for the byte encoding requires an operand for the Return opcode, the 
4382193267Sjkimcompiler now emits a Return(Zero) for this case.  An ACPI specification 
4383193267Sjkimupdate has been written for this case.
4384151937Sjkim
4385193267SjkimFor tables other than the DSDT, namepath optimization is automatically 
4386193267Sjkimdisabled. This is because SSDTs can be loaded anywhere in the namespace, the 
4387193267Sjkimcompiler has no knowledge of where, and thus cannot optimize namepaths.
4388151937Sjkim
4389193267SjkimAdded "ProcessorObj" to the ObjectTypeKeyword list. This object type was 
4390193267Sjkiminadvertently omitted from the ACPI specification, and will require an 
4391193267Sjkimupdate to the spec.
4392151937Sjkim
4393193267SjkimThe source file scan for ASCII characters is now optional (-a). This change 
4394193267Sjkimwas made because some vendors place non-ascii characters within comments. 
4395193267SjkimHowever, the scan is simply a brute-force byte compare to ensure all 
4396193267Sjkimcharacters in the file are in the range 0x00 to 0x7F.
4397151937Sjkim
4398193267SjkimFixed a problem with the CondRefOf operator where the compiler was 
4399193267Sjkiminappropriately checking for the existence of the target. Since the point of 
4400193267Sjkimthe operator is to check for the existence of the target at run-time, the 
4401193267Sjkimcompiler no longer checks for the target existence.
4402151937Sjkim
4403193267SjkimFixed a problem where errors generated from the internal AML interpreter 
4404193267Sjkimduring constant folding were not handled properly, causing a fault.
4405151937Sjkim
4406193267SjkimFixed a problem with overly aggressive range checking for the Stall 
4407193267Sjkimoperator. The valid range (max 255) is now only checked if the operand is of 
4408193267Sjkimtype Integer. All other operand types cannot be statically checked.
4409151937Sjkim
4410193267SjkimFixed a problem where control method references within the RefOf, DeRefOf, 
4411193267Sjkimand ObjectType operators were not treated properly. They are now treated as 
4412193267Sjkimactual references, not method invocations.
4413151937Sjkim
4414193267SjkimFixed and enhanced the "list namespace" option (-ln). This option was broken 
4415193267Sjkima number of releases ago.
4416151937Sjkim
4417193267SjkimImproved error handling for the Field, IndexField, and BankField operators. 
4418193267SjkimThe compiler now cleanly reports and recovers from errors in the field 
4419193267Sjkimcomponent (FieldUnit) list.
4420151937Sjkim
4421193267SjkimFixed a disassembler problem where the optional ResourceDescriptor fields 
4422193267SjkimTRS and TTP were not always handled correctly.
4423151937Sjkim
4424151937SjkimDisassembler - Comments in output now use "//" instead of "/*"
4425151937Sjkim
4426151937Sjkim----------------------------------------
4427151937Sjkim28 February 2005.  Summary of changes for version 20050228:
4428151937Sjkim
4429151937Sjkim1) ACPI CA Core Subsystem:
4430151937Sjkim
4431193267SjkimFixed a problem where the result of an Index() operator (an object 
4432193267Sjkimreference) must increment the reference count on the target object for the 
4433193267Sjkimlife of the object reference.
4434151937Sjkim
4435193267SjkimImplemented AML Interpreter and Debugger support for the new ACPI 3.0 
4436193267SjkimExtended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 
4437193267Sjkimresource descriptors.
4438151937Sjkim
4439193267SjkimImplemented support in the _OSI method for the ACPI 3.0 "Extended Address 
4440193267SjkimSpace Descriptor" string, indicating interpreter support for the descriptors 
4441193267Sjkimabove.
4442151937Sjkim
4443151937SjkimImplemented header support for the new ACPI 3.0 FADT flag bits.
4444151937Sjkim
4445193267SjkimImplemented header support for the new ACPI 3.0 PCI Express bits for the PM1 
4446193267Sjkimstatus/enable registers.
4447151937Sjkim
4448193267SjkimUpdated header support for the MADT processor local Apic struct and MADT 
4449193267Sjkimplatform interrupt source struct for new ACPI 3.0 fields.
4450151937Sjkim
4451151937SjkimImplemented header support for the SRAT and SLIT ACPI tables.
4452151937Sjkim
4453193267SjkimImplemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 
4454193267Sjkimat runtime.
4455151937Sjkim
4456193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4457193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4458193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4459193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4460193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4461193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4462193267Sjkimthe compiler options used during generation.
4463151937Sjkim
4464151937Sjkim  Previous Release:
4465151937Sjkim    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
4466151937Sjkim    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
4467151937Sjkim  Current Release:
4468151937Sjkim    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
4469151937Sjkim    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
4470151937Sjkim
4471151937Sjkim
4472151937Sjkim2) iASL Compiler/Disassembler:
4473151937Sjkim
4474193267SjkimFixed a problem with the internal 64-bit String-to-integer conversion with 
4475193267Sjkimstrings less than two characters long.
4476151937Sjkim
4477193267SjkimFixed a problem with constant folding where the result of the Index() 
4478193267Sjkimoperator can not be considered a constant. This means that Index() cannot be 
4479193267Sjkima type3 opcode and this will require an update to the ACPI specification.
4480151937Sjkim
4481193267SjkimDisassembler: Implemented support for the TTP, MTP, and TRS resource 
4482193267Sjkimdescriptor fields. These fields were inadvertently ignored and not output in 
4483193267Sjkimthe disassembly of the resource descriptor.
4484151937Sjkim
4485151937Sjkim
4486151937Sjkim ----------------------------------------
4487151937Sjkim11 February 2005.  Summary of changes for version 20050211:
4488151937Sjkim
4489151937Sjkim1) ACPI CA Core Subsystem:
4490151937Sjkim
4491193267SjkimImplemented ACPI 3.0 support for implicit conversion within the Match() 
4492193267Sjkimoperator. MatchObjects can now be of type integer, buffer, or string instead 
4493193267Sjkimof just type integer.  Package elements are implicitly converted to the type 
4494193267Sjkimof the MatchObject. This change aligns the behavior of Match() with the 
4495193267Sjkimbehavior of the other logical operators (LLess(), etc.) It also requires an 
4496193267Sjkimerrata change to the ACPI specification as this support was intended for 
4497193267SjkimACPI 3.0, but was inadvertently omitted.
4498151937Sjkim
4499193267SjkimFixed a problem with the internal implicit "to buffer" conversion. Strings 
4500193267Sjkimthat are converted to buffers will cause buffer truncation if the string is 
4501193267Sjkimsmaller than the target buffer. Integers that are converted to buffers will 
4502193267Sjkimnot cause buffer truncation, only zero extension (both as per the ACPI 
4503193267Sjkimspec.) The problem was introduced when code was added to truncate the 
4504193267Sjkimbuffer, but this should not be performed in all cases, only the string case.
4505151937Sjkim
4506193267SjkimFixed a problem with the Buffer and Package operators where the interpreter 
4507193267Sjkimwould get confused if two such operators were used as operands to an ASL 
4508193267Sjkimoperator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 
4509193267Sjkimstack was not being popped after the execution of these operators, resulting 
4510193267Sjkimin an AE_NO_RETURN_VALUE exception.
4511151937Sjkim
4512193267SjkimFixed a problem with constructs of the form Store(Index(...),...). The 
4513193267Sjkimreference object returned from Index was inadvertently resolved to an actual 
4514193267Sjkimvalue. This problem was introduced in version 20050114 when the behavior of 
4515193267SjkimStore() was modified to restrict the object types that can be used as the 
4516151937Sjkimsource operand (to match the ACPI specification.)
4517151937Sjkim
4518193267SjkimReduced excessive stack use within the AcpiGetObjectInfo procedure.
4519151937Sjkim
4520193267SjkimAdded a fix to aclinux.h to allow generation of AcpiExec on Linux.
4521151937Sjkim
4522193267SjkimUpdated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
4523151937Sjkim
4524193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4525193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4526193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4527193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4528193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4529193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4530193267Sjkimthe compiler options used during generation.
4531151937Sjkim
4532151937Sjkim  Previous Release:
4533151937Sjkim    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
4534151937Sjkim    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
4535151937Sjkim  Current Release:
4536151937Sjkim    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
4537151937Sjkim    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
4538151937Sjkim
4539151937Sjkim
4540151937Sjkim2) iASL Compiler/Disassembler:
4541151937Sjkim
4542193267SjkimFixed a code generation problem in the constant folding optimization code 
4543193267Sjkimwhere incorrect code was generated if a constant was reduced to a buffer 
4544193267Sjkimobject (i.e., a reduced type 5 opcode.)
4545151937Sjkim
4546193267SjkimFixed a typechecking problem for the ToBuffer operator. Caused by an 
4547193267Sjkimincorrect return type in the internal opcode information table.
4548151937Sjkim
4549151937Sjkim----------------------------------------
4550151937Sjkim25 January 2005.  Summary of changes for version 20050125:
4551151937Sjkim
4552151937Sjkim1) ACPI CA Core Subsystem:
4553151937Sjkim
4554193267SjkimFixed a recently introduced problem with the Global Lock where the 
4555193267Sjkimunderlying semaphore was not created.  This problem was introduced in 
4556193267Sjkimversion 20050114, and caused an AE_AML_NO_OPERAND exception during an 
4557193267SjkimAcquire() operation on _GL.
4558151937Sjkim
4559193267SjkimThe local object cache is now optional, and is disabled by default. Both 
4560193267SjkimAcpiExec and the iASL compiler enable the cache because they run in user 
4561193267Sjkimmode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 
4562193267Sjkimto enable the local cache.
4563151937Sjkim
4564193267SjkimFixed an issue in the internal function AcpiUtEvaluateObject concerning the 
4565193267Sjkimoptional "implicit return" support where an error was returned if no return 
4566193267Sjkimobject was expected, but one was implicitly returned. AE_OK is now returned 
4567193267Sjkimin this case and the implicitly returned object is deleted. 
4568193267SjkimAcpiUtEvaluateObject is only occasionally used, and only to execute reserved 
4569193267Sjkimmethods such as _STA and _INI where the return type is known up front.
4570151937Sjkim
4571193267SjkimFixed a few issues with the internal convert-to-integer code. It now returns 
4572193267Sjkiman error if an attempt is made to convert a null string, a string of only 
4573193267Sjkimblanks/tabs, or a zero-length buffer. This affects both implicit conversion 
4574193267Sjkimand explicit conversion via the ToInteger() operator.
4575151937Sjkim
4576193267SjkimThe internal debug code in AcpiUtAcquireMutex has been commented out. It is 
4577193267Sjkimnot needed for normal operation and should increase the performance of the 
4578193267Sjkimentire subsystem. The code remains in case it is needed for debug purposes 
4579193267Sjkimagain.
4580151937Sjkim
4581193267SjkimThe AcpiExec source and makefile are included in the Unix/Linux package for 
4582193267Sjkimthe first time.
4583151937Sjkim
4584193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4585193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4586193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4587193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4588193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4589193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4590193267Sjkimthe compiler options used during generation.
4591151937Sjkim
4592151937Sjkim  Previous Release:
4593151937Sjkim    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
4594151937Sjkim    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
4595151937Sjkim  Current Release:
4596151937Sjkim    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
4597151937Sjkim    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
4598151937Sjkim
4599151937Sjkim2) iASL Compiler/Disassembler:
4600151937Sjkim
4601193267SjkimSwitch/Case support: A warning is now issued if the type of the Switch value 
4602193267Sjkimcannot be determined at compile time. For example, Switch(Arg0) will 
4603193267Sjkimgenerate the warning, and the type is assumed to be an integer. As per the 
4604193267SjkimACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 
4605193267Sjkimwarning.
4606151937Sjkim
4607193267SjkimSwitch/Case support: Implemented support for buffer and string objects as 
4608193267Sjkimthe switch value.  This is an ACPI 3.0 feature, now that LEqual supports 
4609193267Sjkimbuffers and strings.
4610151937Sjkim
4611193267SjkimSwitch/Case support: The emitted code for the LEqual() comparisons now uses 
4612193267Sjkimthe switch value as the first operand, not the second. The case value is now 
4613193267Sjkimthe second operand, and this allows the case value to be implicitly 
4614193267Sjkimconverted to the type of the switch value, not the other way around.
4615151937Sjkim
4616193267SjkimSwitch/Case support: Temporary variables are now emitted immediately within 
4617193267Sjkimthe control method, not at the global level. This means that there are now 
4618193267Sjkim36 temps available per-method, not 36 temps per-module as was the case with 
4619193267Sjkimthe earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
4620151937Sjkim
4621151937Sjkim----------------------------------------
4622151937Sjkim14 January 2005.  Summary of changes for version 20050114:
4623151937Sjkim
4624193267SjkimAdded 2005 copyright to all module headers.  This affects every module in 
4625193267Sjkimthe core subsystem, iASL compiler, and the utilities.
4626151937Sjkim
4627151937Sjkim1) ACPI CA Core Subsystem:
4628151937Sjkim
4629193267SjkimFixed an issue with the String-to-Buffer conversion code where the string 
4630193267Sjkimnull terminator was not included in the buffer after conversion, but there 
4631193267Sjkimis existing ASL that assumes the string null terminator is included. This is 
4632193267Sjkimthe root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 
4633193267Sjkimintroduced in the previous version when the code was updated to correctly 
4634193267Sjkimset the converted buffer size as per the ACPI specification. The ACPI spec 
4635193267Sjkimis ambiguous and will be updated to specify that the null terminator must be 
4636193267Sjkimincluded in the converted buffer. This also affects the ToBuffer() ASL 
4637193267Sjkimoperator.
4638151937Sjkim
4639193267SjkimFixed a problem with the Mid() ASL/AML operator where it did not work 
4640193267Sjkimcorrectly on Buffer objects. Newly created sub-buffers were not being marked 
4641193267Sjkimas initialized.
4642151937Sjkim
4643167802Sjkim
4644193267SjkimFixed a problem in AcpiTbFindTable where incorrect string compares were 
4645193267Sjkimperformed on the OemId and OemTableId table header fields.  These fields are 
4646193267Sjkimnot null terminated, so strncmp is now used instead of strcmp.
4647151937Sjkim
4648193267SjkimImplemented a restriction on the Store() ASL/AML operator to align the 
4649193267Sjkimbehavior with the ACPI specification.  Previously, any object could be used 
4650193267Sjkimas the source operand.  Now, the only objects that may be used are Integers, 
4651193267SjkimBuffers, Strings, Packages, Object References, and DDB Handles.  If 
4652193267Sjkimnecessary, the original behavior can be restored by enabling the 
4653151937SjkimEnableInterpreterSlack flag.
4654151937Sjkim
4655193267SjkimEnhanced the optional "implicit return" support to allow an implicit return 
4656193267Sjkimvalue from methods that are invoked externally via the AcpiEvaluateObject 
4657193267Sjkiminterface.  This enables implicit returns from the _STA and _INI methods, 
4658193267Sjkimfor example.
4659151937Sjkim
4660193267SjkimChanged the Revision() ASL/AML operator to return the current version of the 
4661193267SjkimAML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 
4662193267Sjkimthe supported ACPI version (This is the function of the _REV method).
4663151937Sjkim
4664193267SjkimUpdated the _REV predefined method to return the currently supported version 
4665193267Sjkimof ACPI, now 3.
4666151937Sjkim
4667151937SjkimImplemented batch mode option for the AcpiExec utility (-b).
4668151937Sjkim
4669193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4670193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4671193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4672193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4673193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4674193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4675193267Sjkimthe compiler options used during generation.
4676151937Sjkim
4677151937Sjkim  Previous Release:
4678151937Sjkim    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
4679151937Sjkim    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
4680151937Sjkim  Current Release:
4681151937Sjkim    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
4682151937Sjkim    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
4683151937Sjkim
4684151937Sjkim----------------------------------------
4685151937Sjkim10 December 2004.  Summary of changes for version 20041210:
4686151937Sjkim
4687193267SjkimACPI 3.0 support is nearing completion in both the iASL compiler and the 
4688193267SjkimACPI CA core subsystem.
4689151937Sjkim
4690151937Sjkim1) ACPI CA Core Subsystem:
4691151937Sjkim
4692193267SjkimFixed a problem in the ToDecimalString operator where the resulting string 
4693193267Sjkimlength was incorrectly calculated. The length is now calculated exactly, 
4694193267Sjkimeliminating incorrect AE_STRING_LIMIT exceptions.
4695151937Sjkim
4696193267SjkimFixed a problem in the ToHexString operator to allow a maximum 200 character 
4697193267Sjkimstring to be produced.
4698151937Sjkim
4699193267SjkimFixed a problem in the internal string-to-buffer and buffer-to-buffer copy 
4700193267Sjkimroutine where the length of the resulting buffer was not truncated to the 
4701193267Sjkimnew size (if the target buffer already existed).
4702151937Sjkim
4703193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4704193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4705193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4706193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4707193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4708193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4709193267Sjkimthe compiler options used during generation.
4710151937Sjkim
4711151937Sjkim  Previous Release:
4712151937Sjkim    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
4713151937Sjkim    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
4714151937Sjkim  Current Release:
4715151937Sjkim    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
4716151937Sjkim    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
4717151937Sjkim
4718151937Sjkim
4719151937Sjkim2) iASL Compiler/Disassembler:
4720151937Sjkim
4721193267SjkimImplemented the new ACPI 3.0 resource template macros - DWordSpace, 
4722193267SjkimExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 
4723193267SjkimIncludes support in the disassembler.
4724151937Sjkim
4725193267SjkimImplemented support for the new (ACPI 3.0) parameter to the Register macro, 
4726193267SjkimAccessSize.
4727151937Sjkim
4728193267SjkimFixed a problem where the _HE resource name for the Interrupt macro was 
4729193267Sjkimreferencing bit 0 instead of bit 1.
4730151937Sjkim
4731193267SjkimImplemented check for maximum 255 interrupts in the Interrupt macro.
4732151937Sjkim
4733193267SjkimFixed a problem with the predefined resource descriptor names where 
4734193267Sjkimincorrect AML code was generated if the offset within the resource buffer 
4735193267Sjkimwas 0 or 1.  The optimizer shortened the AML code to a single byte opcode 
4736193267Sjkimbut did not update the surrounding package lengths.
4737151937Sjkim
4738193267SjkimChanges to the Dma macro:  All channels within the channel list must be in 
4739193267Sjkimthe range 0-7.  Maximum 8 channels can be specified. BusMaster operand is 
4740193267Sjkimoptional (default is BusMaster).
4741151937Sjkim
4742193267SjkimImplemented check for maximum 7 data bytes for the VendorShort macro.
4743151937Sjkim
4744193267SjkimThe ReadWrite parameter is now optional for the Memory32 and similar macros.
4745151937Sjkim
4746151937Sjkim----------------------------------------
4747151937Sjkim03 December 2004.  Summary of changes for version 20041203:
4748151937Sjkim
4749151937Sjkim1) ACPI CA Core Subsystem:
4750151937Sjkim
4751193267SjkimThe low-level field insertion/extraction code (exfldio) has been completely 
4752193267Sjkimrewritten to eliminate unnecessary complexity, bugs, and boundary 
4753193267Sjkimconditions.
4754151937Sjkim
4755193267SjkimFixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 
4756193267Sjkimoperators where the input operand could be inadvertently deleted if no 
4757193267Sjkimconversion was necessary (e.g., if the input to ToInteger was an Integer 
4758193267Sjkimobject.)
4759151937Sjkim
4760193267SjkimFixed a problem with the ToDecimalString and ToHexString where an incorrect 
4761193267Sjkimexception code was returned if the resulting string would be > 200 chars.  
4762193267SjkimAE_STRING_LIMIT is now returned.
4763151937Sjkim
4764193267SjkimFixed a problem with the Concatenate operator where AE_OK was always 
4765193267Sjkimreturned, even if the operation failed.
4766151937Sjkim
4767193267SjkimFixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 
4768193267Sjkimsemaphores to be allocated.
4769151937Sjkim
4770193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4771193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4772193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4773193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4774193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4775193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4776193267Sjkimthe compiler options used during generation.
4777151937Sjkim
4778151937Sjkim  Previous Release:
4779151937Sjkim    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
4780151937Sjkim    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
4781151937Sjkim  Current Release:
4782151937Sjkim    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
4783151937Sjkim    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
4784151937Sjkim
4785151937Sjkim
4786151937Sjkim2) iASL Compiler/Disassembler:
4787151937Sjkim
4788193267SjkimFixed typechecking for the ObjectType and SizeOf operators.  Problem was 
4789193267Sjkimrecently introduced in 20041119.
4790151937Sjkim
4791193267SjkimFixed a problem with the ToUUID macro where the upper nybble of each buffer 
4792193267Sjkimbyte was inadvertently set to zero.
4793151937Sjkim
4794151937Sjkim----------------------------------------
4795138287Smarks19 November 2004.  Summary of changes for version 20041119:
4796138287Smarks
4797138287Smarks1) ACPI CA Core Subsystem:
4798138287Smarks
4799193267SjkimFixed a problem in the internal ConvertToInteger routine where new integers 
4800193267Sjkimwere not truncated to 32 bits for 32-bit ACPI tables. This routine converts 
4801193267Sjkimbuffers and strings to integers.
4802138287Smarks
4803193267SjkimImplemented support to store a value to an Index() on a String object. This 
4804193267Sjkimis an ACPI 2.0 feature that had not yet been implemented.
4805138287Smarks
4806193267SjkimImplemented new behavior for storing objects to individual package elements 
4807193267Sjkim(via the Index() operator). The previous behavior was to invoke the implicit 
4808193267Sjkimconversion rules if an object was already present at the index.  The new 
4809193267Sjkimbehavior is to simply delete any existing object and directly store the new 
4810193267Sjkimobject. Although the ACPI specification seems unclear on this subject, other 
4811193267SjkimACPI implementations behave in this manner.  (This is the root of the 
4812193267SjkimAE_BAD_HEX_CONSTANT issue.)
4813138287Smarks
4814193267SjkimModified the RSDP memory scan mechanism to support the extended checksum for 
4815193267SjkimACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 
4816193267SjkimRSDP signature is found with a valid checksum.
4817138287Smarks
4818193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4819193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4820193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4821193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4822193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4823193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4824193267Sjkimthe compiler options used during generation.
4825138287Smarks
4826151937Sjkim  Previous Release:
4827151937Sjkim    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
4828151937Sjkim    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
4829151937Sjkim  Current Release:
4830151937Sjkim    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
4831151937Sjkim    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
4832138287Smarks
4833138287Smarks
4834138287Smarks2) iASL Compiler/Disassembler:
4835138287Smarks
4836138287SmarksFixed a missing semicolon in the aslcompiler.y file.
4837138287Smarks
4838138287Smarks----------------------------------------
4839138287Smarks05 November 2004.  Summary of changes for version 20041105:
4840138287Smarks
4841138287Smarks1) ACPI CA Core Subsystem:
4842138287Smarks
4843193267SjkimImplemented support for FADT revision 2.  This was an interim table (between 
4844193267SjkimACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
4845138287Smarks
4846193267SjkimImplemented optional support to allow uninitialized LocalX and ArgX 
4847193267Sjkimvariables in a control method.  The variables are initialized to an Integer 
4848193267Sjkimobject with a value of zero.  This support is enabled by setting the 
4849193267SjkimAcpiGbl_EnableInterpreterSlack flag to TRUE.
4850138287Smarks
4851193267SjkimImplemented support for Integer objects for the SizeOf operator.  Either 4 
4852193267Sjkimor 8 is returned, depending on the current integer size (32-bit or 64-bit, 
4853193267Sjkimdepending on the parent table revision).
4854138287Smarks
4855193267SjkimFixed a problem in the implementation of the SizeOf and ObjectType operators 
4856193267Sjkimwhere the operand was resolved to a value too early, causing incorrect 
4857193267Sjkimreturn values for some objects.
4858138287Smarks
4859138287SmarksFixed some possible memory leaks during exceptional conditions.
4860138287Smarks
4861193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4862193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4863193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4864193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4865193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4866193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4867193267Sjkimthe compiler options used during generation.
4868138287Smarks
4869138287Smarks  Previous Release:
4870138287Smarks    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
4871138287Smarks    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
4872138287Smarks  Current Release:
4873138287Smarks    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
4874138287Smarks    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
4875138287Smarks
4876138287Smarks
4877138287Smarks2) iASL Compiler/Disassembler:
4878138287Smarks
4879138287SmarksImplemented support for all ACPI 3.0 reserved names and methods.
4880138287Smarks
4881193267SjkimImplemented all ACPI 3.0 grammar elements in the front-end, including 
4882193267Sjkimsupport for semicolons.
4883138287Smarks
4884138287SmarksImplemented the ACPI 3.0 Function() and ToUUID() macros
4885138287Smarks
4886193267SjkimFixed a problem in the disassembler where a Scope() operator would not be 
4887193267Sjkimemitted properly if the target of the scope was in another table.
4888138287Smarks
4889138287Smarks----------------------------------------
4890138287Smarks15 October 2004.  Summary of changes for version 20041015:
4891138287Smarks
4892193267SjkimNote:  ACPI CA is currently undergoing an in-depth and complete formal 
4893193267Sjkimevaluation to test/verify the following areas. Other suggestions are 
4894193267Sjkimwelcome. This will result in an increase in the frequency of releases and 
4895193267Sjkimthe number of bug fixes in the next few months.
4896138287Smarks  - Functional tests for all ASL/AML operators
4897138287Smarks  - All implicit/explicit type conversions
4898138287Smarks  - Bit fields and operation regions
4899138287Smarks  - 64-bit math support and 32-bit-only "truncated" math support
4900138287Smarks  - Exceptional conditions, both compiler and interpreter
4901138287Smarks  - Dynamic object deletion and memory leaks
4902138287Smarks  - ACPI 3.0 support when implemented
4903138287Smarks  - External interfaces to the ACPI subsystem
4904138287Smarks
4905138287Smarks
4906138287Smarks1) ACPI CA Core Subsystem:
4907138287Smarks
4908193267SjkimFixed two alignment issues on 64-bit platforms - within debug statements in 
4909193267SjkimAcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 
4910193267Sjkimfield within the non-aligned ACPI generic address structure.
4911138287Smarks
4912193267SjkimFixed a problem in the Increment and Decrement operators where incorrect 
4913193267Sjkimoperand resolution could result in the inadvertent modification of the 
4914193267Sjkimoriginal integer when the integer is passed into another method as an 
4915193267Sjkimargument and the arg is then incremented/decremented.
4916138287Smarks
4917193267SjkimFixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 
4918193267SjkimBCD number were truncated during conversion.
4919138287Smarks
4920193267SjkimFixed a problem in the ToDecimal operator where the length of the resulting 
4921193267Sjkimstring could be set incorrectly too long if the input operand was a Buffer 
4922193267Sjkimobject.
4923138287Smarks
4924193267SjkimFixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 
4925193267Sjkimwithin a buffer would prematurely terminate a compare between buffer 
4926193267Sjkimobjects.
4927138287Smarks
4928193267SjkimAdded a check for string overflow (>200 characters as per the ACPI 
4929193267Sjkimspecification) during the Concatenate operator with two string operands.
4930138287Smarks
4931193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
4932193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
4933193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
4934193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
4935193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
4936193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
4937193267Sjkimthe compiler options used during generation.
4938138287Smarks
4939138287Smarks  Previous Release:
4940138287Smarks    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
4941138287Smarks    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
4942138287Smarks  Current Release:
4943138287Smarks    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
4944138287Smarks    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
4945138287Smarks
4946138287Smarks
4947167802Sjkim
4948138287Smarks2) iASL Compiler/Disassembler:
4949138287Smarks
4950193267SjkimAllow the use of the ObjectType operator on uninitialized Locals and Args 
4951193267Sjkim(returns 0 as per the ACPI specification).
4952138287Smarks
4953193267SjkimFixed a problem where the compiler would fault if there was a syntax error 
4954193267Sjkimin the FieldName of all of the various CreateXXXField operators.
4955138287Smarks
4956193267SjkimDisallow the use of lower case letters within the EISAID macro, as per the 
4957193267SjkimACPI specification.  All EISAID strings must be of the form "UUUNNNN" Where 
4958193267SjkimU is an uppercase letter and N is a hex digit.
4959138287Smarks
4960138287Smarks
4961138287Smarks----------------------------------------
4962138287Smarks06 October 2004.  Summary of changes for version 20041006:
4963138287Smarks
4964138287Smarks1) ACPI CA Core Subsystem:
4965138287Smarks
4966193267SjkimImplemented support for the ACPI 3.0 Timer operator. This ASL function 
4967193267Sjkimimplements a 64-bit timer with 100 nanosecond granularity.
4968138287Smarks
4969193267SjkimDefined a new OSL interface, AcpiOsGetTimer. This interface is used to 
4970193267Sjkimimplement the ACPI 3.0 Timer operator.  This allows the host OS to implement 
4971193267Sjkimthe timer with the best clock available. Also, it keeps the core subsystem 
4972193267Sjkimout of the clock handling business, since the host OS (usually) performs 
4973193267Sjkimthis function.
4974138287Smarks
4975193267SjkimFixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 
4976193267Sjkimfunctions use a 64-bit address which is part of the packed ACPI Generic 
4977193267SjkimAddress Structure. Since the structure is non-aligned, the alignment macros 
4978193267Sjkimare now used to extract the address to a local variable before use.
4979138287Smarks
4980193267SjkimFixed a problem where the ToInteger operator assumed all input strings were 
4981193267Sjkimhexadecimal. The operator now handles both decimal strings and hex strings 
4982193267Sjkim(prefixed with "0x").
4983138287Smarks
4984193267SjkimFixed a problem where the string length in the string object created as a 
4985193267Sjkimresult of the internal ConvertToString procedure could be incorrect. This 
4986193267Sjkimpotentially affected all implicit conversions and also the ToDecimalString 
4987193267Sjkimand ToHexString operators.
4988138287Smarks
4989193267SjkimFixed two problems in the ToString operator. If the length parameter was 
4990193267Sjkimzero, an incorrect string object was created and the value of the input 
4991193267Sjkimlength parameter was inadvertently changed from zero to Ones.
4992138287Smarks
4993193267SjkimFixed a problem where the optional ResourceSource string in the ExtendedIRQ 
4994193267Sjkimresource macro was ignored.
4995138287Smarks
4996193267SjkimSimplified the interfaces to the internal division functions, reducing code 
4997193267Sjkimsize and complexity.
4998138287Smarks
4999193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5000193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
5001193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5002193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
5003193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
5004193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5005193267Sjkimthe compiler options used during generation.
5006138287Smarks
5007138287Smarks  Previous Release:
5008138287Smarks    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
5009138287Smarks    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
5010138287Smarks  Current Release:
5011138287Smarks    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
5012138287Smarks    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
5013138287Smarks
5014138287Smarks
5015138287Smarks2) iASL Compiler/Disassembler:
5016138287Smarks
5017138287SmarksImplemented support for the ACPI 3.0 Timer operator.
5018138287Smarks
5019193267SjkimFixed a problem where the Default() operator was inadvertently ignored in a 
5020193267SjkimSwitch/Case block.  This was a problem in the translation of the Switch 
5021193267Sjkimstatement to If...Else pairs.
5022138287Smarks
5023193267SjkimAdded support to allow a standalone Return operator, with no parentheses (or 
5024193267Sjkimoperands).
5025138287Smarks
5026193267SjkimFixed a problem with code generation for the ElseIf operator where the 
5027193267Sjkimtranslated Else...If parse tree was improperly constructed leading to the 
5028193267Sjkimloss of some code.
5029138287Smarks
5030138287Smarks----------------------------------------
5031138287Smarks22 September 2004.  Summary of changes for version 20040922:
5032138287Smarks
5033138287Smarks1) ACPI CA Core Subsystem:
5034138287Smarks
5035193267SjkimFixed a problem with the implementation of the LNot() operator where "Ones" 
5036193267Sjkimwas not returned for the TRUE case. Changed the code to return Ones instead 
5037193267Sjkimof (!Arg) which was usually 1. This change affects iASL constant folding for 
5038193267Sjkimthis operator also.
5039138287Smarks
5040193267SjkimFixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 
5041193267Sjkiminitialized properly -- Now zero the entire buffer in this case where the 
5042193267Sjkimbuffer already exists.
5043138287Smarks
5044193267SjkimChanged the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 
5045193267SjkimMilliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 
5046193267Sjkimrelated code considerably. This will require changes/updates to all OS 
5047193267Sjkiminterface layers (OSLs.)
5048138287Smarks
5049193267SjkimImplemented a new external interface, AcpiInstallExceptionHandler, to allow 
5050193267Sjkima system exception handler to be installed. This handler is invoked upon any 
5051193267Sjkimrun-time exception that occurs during control method execution.
5052138287Smarks
5053193267SjkimAdded support for the DSDT in AcpiTbFindTable. This allows the 
5054138287SmarksDataTableRegion() operator to access the local copy of the DSDT.
5055138287Smarks
5056193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5057193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 
5058193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5059193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 
5060193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 
5061193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5062193267Sjkimthe compiler options used during generation.
5063138287Smarks
5064138287Smarks  Previous Release:
5065138287Smarks    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
5066138287Smarks    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
5067138287Smarks  Current Release:
5068138287Smarks    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
5069138287Smarks    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
5070138287Smarks
5071138287Smarks
5072138287Smarks2) iASL Compiler/Disassembler:
5073138287Smarks
5074193267SjkimFixed a problem with constant folding and the LNot operator. LNot was 
5075193267Sjkimreturning 1 in the TRUE case, not Ones as per the ACPI specification. This 
5076193267Sjkimcould result in the generation of an incorrect folded/reduced constant.
5077138287Smarks
5078193267SjkimEnd-Of-File is now allowed within a "//"-style comment.  A parse error no 
5079193267Sjkimlonger occurs if such a comment is at the very end of the input ASL source 
5080193267Sjkimfile.
5081138287Smarks
5082193267SjkimImplemented the "-r" option to override the Revision in the table header. 
5083193267SjkimThe initial use of this option will be to simplify the evaluation of the AML 
5084193267Sjkiminterpreter by allowing a single ASL source module to be compiled for either 
5085193267Sjkim32-bit or 64-bit integers.
5086138287Smarks
5087138287Smarks
5088138287Smarks----------------------------------------
5089138287Smarks27 August 2004.  Summary of changes for version 20040827:
5090138287Smarks
5091138287Smarks1) ACPI CA Core Subsystem:
5092138287Smarks
5093193267Sjkim- Implemented support for implicit object conversion in the non-numeric 
5094193267Sjkimlogical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 
5095193267SjkimLNotEqual.)  Any combination of Integers/Strings/Buffers may now be used; 
5096193267Sjkimthe second operand is implicitly converted on the fly to match the type of 
5097193267Sjkimthe first operand.  For example:
5098138287Smarks
5099138287Smarks    LEqual (Source1, Source2)
5100138287Smarks
5101193267SjkimSource1 and Source2 must each evaluate to an integer, a string, or a buffer. 
5102193267SjkimThe data type of Source1 dictates the required type of Source2. Source2 is 
5103193267Sjkimimplicitly converted if necessary to match the type of Source1.
5104138287Smarks
5105193267Sjkim- Updated and corrected the behavior of the string conversion support.  The 
5106193267Sjkimrules concerning conversion of buffers to strings (according to the ACPI 
5107193267Sjkimspecification) are as follows:
5108138287Smarks
5109193267SjkimToDecimalString - explicit byte-wise conversion of buffer to string of 
5110193267Sjkimdecimal values (0-255) separated by commas. ToHexString - explicit byte-wise 
5111193267Sjkimconversion of buffer to string of hex values (0-FF) separated by commas. 
5112193267SjkimToString - explicit byte-wise conversion of buffer to string.  Byte-by-byte 
5113193267Sjkimcopy with no transform except NULL terminated. Any other implicit buffer-to-
5114193267Sjkimstring conversion - byte-wise conversion of buffer to string of hex values 
5115193267Sjkim(0-FF) separated by spaces.
5116138287Smarks
5117138287Smarks- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
5118138287Smarks
5119193267Sjkim- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 
5120193267Sjkimone byte too short in the case of a node in the root scope.  This could 
5121193267Sjkimcause a fault during debug output.
5122138287Smarks
5123193267Sjkim- Code and Data Size: Current and previous core subsystem library sizes are 
5124193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5125193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5126193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5127193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5128193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5129193267Sjkimthe compiler options used during generation.
5130138287Smarks
5131138287Smarks  Previous Release:
5132138287Smarks    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
5133138287Smarks    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
5134138287Smarks  Current Release:
5135138287Smarks    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
5136138287Smarks    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
5137138287Smarks
5138138287Smarks
5139138287Smarks2) iASL Compiler/Disassembler:
5140138287Smarks
5141138287Smarks- Fixed a Linux generation error.
5142138287Smarks
5143138287Smarks
5144138287Smarks----------------------------------------
5145138287Smarks16 August 2004.  Summary of changes for version 20040816:
5146138287Smarks
5147138287Smarks1) ACPI CA Core Subsystem:
5148138287Smarks
5149193267SjkimDesigned and implemented support within the AML interpreter for the so-
5150193267Sjkimcalled "implicit return".  This support returns the result of the last ASL 
5151193267Sjkimoperation within a control method, in the absence of an explicit Return() 
5152193267Sjkimoperator.  A few machines depend on this behavior, even though it is not 
5153193267Sjkimexplicitly supported by the ASL language.  It is optional support that can 
5154193267Sjkimbe enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
5155138287Smarks
5156193267SjkimRemoved support for the PCI_Config address space from the internal low level 
5157193267Sjkimhardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This 
5158193267Sjkimsupport was not used internally, and would not work correctly anyway because 
5159193267Sjkimthe PCI bus number and segment number were not supported.  There are 
5160193267Sjkimseparate interfaces for PCI configuration space access because of the unique 
5161138287Smarksinterface.
5162138287Smarks
5163193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5164193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5165193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5166193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5167193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5168193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5169193267Sjkimthe compiler options used during generation.
5170138287Smarks
5171138287Smarks  Previous Release:
5172138287Smarks    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
5173138287Smarks    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
5174138287Smarks  Current Release:
5175138287Smarks    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
5176138287Smarks    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
5177138287Smarks
5178138287Smarks
5179138287Smarks2) iASL Compiler/Disassembler:
5180138287Smarks
5181193267SjkimFixed a problem where constants in ASL expressions at the root level (not 
5182193267Sjkimwithin a control method) could be inadvertently truncated during code 
5183193267Sjkimgeneration.  This problem was introduced in the 20040715 release.
5184138287Smarks
5185138287Smarks
5186138287Smarks----------------------------------------
5187138287Smarks15 July 2004.  Summary of changes for version 20040715:
5188138287Smarks
5189138287Smarks1) ACPI CA Core Subsystem:
5190138287Smarks
5191193267SjkimRestructured the internal HW GPE interfaces to pass/track the current state 
5192193267Sjkimof interrupts (enabled/disabled) in order to avoid possible deadlock and 
5193193267Sjkimincrease flexibility of the interfaces.
5194138287Smarks
5195193267SjkimImplemented a "lexicographical compare" for String and Buffer objects within 
5196193267Sjkimthe logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 
5197193267Sjkimas per further clarification to the ACPI specification.  Behavior is similar 
5198193267Sjkimto C library "strcmp".
5199138287Smarks
5200193267SjkimCompleted a major reduction in CPU stack use for the AcpiGetFirmwareTable 
5201193267Sjkimexternal function.  In the 32-bit non-debug case, the stack use has been 
5202193267Sjkimreduced from 168 bytes to 32 bytes.
5203138287Smarks
5204193267SjkimDeployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 
5205193267Sjkimwhose purpose is to allow the AML interpreter to forgive certain bad AML 
5206193267Sjkimconstructs.  Default setting is FALSE.
5207138287Smarks
5208193267SjkimImplemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 
5209193267Sjkimsupport code.  If enabled, it allows field access to go beyond the end of a 
5210193267Sjkimregion definition if the field is within the region length rounded up to the 
5211193267Sjkimnext access width boundary (a common coding error.)
5212138287Smarks
5213193267SjkimRenamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 
5214193267SjkimACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also, these 
5215193267Sjkimsymbols are lowercased by the latest version of the AcpiSrc tool.
5216138287Smarks
5217193267SjkimThe prototypes for the PCI interfaces in acpiosxf.h have been updated to 
5218193267Sjkimrename "Register" to simply "Reg" to prevent certain compilers from 
5219193267Sjkimcomplaining.
5220138287Smarks
5221193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5222193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5223193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5224193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5225193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5226193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5227193267Sjkimthe compiler options used during generation.
5228138287Smarks
5229138287Smarks  Previous Release:
5230138287Smarks    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
5231138287Smarks    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
5232138287Smarks  Current Release:
5233138287Smarks    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
5234138287Smarks    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
5235138287Smarks
5236138287Smarks
5237138287Smarks2) iASL Compiler/Disassembler:
5238138287Smarks
5239193267SjkimImplemented full support for Package objects within the Case() operator.  
5240193267SjkimNote: The Break() operator is currently not supported within Case blocks 
5241193267Sjkim(TermLists) as there is some question about backward compatibility with ACPI 
5242193267Sjkim1.0 interpreters.
5243138287Smarks
5244167802Sjkim
5245193267SjkimFixed a problem where complex terms were not supported properly within the 
5246193267SjkimSwitch() operator.
5247138287Smarks
5248193267SjkimEliminated extraneous warning for compiler-emitted reserved names of the 
5249193267Sjkimform "_T_x".  (Used in Switch/Case operators.)
5250138287Smarks
5251193267SjkimEliminated optimization messages for "_T_x" objects and small constants 
5252193267Sjkimwithin the DefinitionBlock operator.
5253138287Smarks
5254138287Smarks
5255138287Smarks----------------------------------------
5256138287Smarks15 June 2004.  Summary of changes for version 20040615:
5257138287Smarks
5258138287Smarks1) ACPI CA Core Subsystem:
5259138287Smarks
5260193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 
5261193267Sjkimfollowing ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and 
5262193267SjkimLLessEqual.
5263138287Smarks
5264193267SjkimAll directory names in the entire source package are lower case, as they 
5265193267Sjkimwere in earlier releases.
5266138287Smarks
5267193267SjkimImplemented "Disassemble" command in the AML debugger that will disassemble 
5268193267Sjkima single control method.
5269138287Smarks
5270193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5271193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5272193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5273193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5274193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5275193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5276193267Sjkimthe compiler options used during generation.
5277138287Smarks
5278138287Smarks  Previous Release:
5279138287Smarks    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
5280138287Smarks    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
5281167802Sjkim
5282138287Smarks  Current Release:
5283138287Smarks    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
5284138287Smarks    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
5285138287Smarks
5286138287Smarks
5287138287Smarks2) iASL Compiler/Disassembler:
5288138287Smarks
5289193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 
5290193267Sjkimfollowing ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and 
5291193267SjkimLLessEqual.
5292138287Smarks
5293193267SjkimAll directory names in the entire source package are lower case, as they 
5294193267Sjkimwere in earlier releases.
5295138287Smarks
5296193267SjkimFixed a fault when using the -g or -d<nofilename> options if the FADT was 
5297193267Sjkimnot found.
5298138287Smarks
5299193267SjkimFixed an issue with the Windows version of the compiler where later versions 
5300193267Sjkimof Windows place the FADT in the registry under the name "FADT" and not 
5301193267Sjkim"FACP" as earlier versions did.  This applies when using the -g or -
5302193267Sjkimd<nofilename> options.  The compiler now looks for both strings as 
5303193267Sjkimnecessary.
5304138287Smarks
5305193267SjkimFixed a problem with compiler namepath optimization where a namepath within 
5306193267Sjkimthe Scope() operator could not be optimized if the namepath was a subpath of 
5307193267Sjkimthe current scope path.
5308138287Smarks
5309138287Smarks----------------------------------------
5310131440Smarks27 May 2004.  Summary of changes for version 20040527:
5311131440Smarks
5312131440Smarks1) ACPI CA Core Subsystem:
5313131440Smarks
5314193267SjkimCompleted a new design and implementation for EBDA (Extended BIOS Data Area) 
5315193267Sjkimsupport in the RSDP scan code.  The original code improperly scanned for the 
5316193267SjkimEBDA by simply scanning from memory location 0 to 0x400.  The correct method 
5317193267Sjkimis to first obtain the EBDA pointer from within the BIOS data area, then 
5318193267Sjkimscan 1K of memory starting at the EBDA pointer.  There appear to be few if 
5319131440Smarksany machines that place the RSDP in the EBDA, however.
5320131440Smarks
5321193267SjkimIntegrated a fix for a possible fault during evaluation of BufferField 
5322193267Sjkimarguments.  Obsolete code that was causing the problem was removed.
5323131440Smarks
5324193267SjkimFound and fixed a problem in the Field Support Code where data could be 
5325193267Sjkimcorrupted on a bit field read that starts on an aligned boundary but does 
5326193267Sjkimnot end on an aligned boundary.  Merged the read/write "datum length" 
5327193267Sjkimcalculation code into a common procedure.
5328131440Smarks
5329131440SmarksRolled in a couple of changes to the FreeBSD-specific header.
5330131440Smarks
5331167802Sjkim
5332193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5333193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5334193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5335193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5336193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5337193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5338193267Sjkimthe compiler options used during generation.
5339131440Smarks
5340131440Smarks  Previous Release:
5341131440Smarks    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
5342131440Smarks    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
5343131440Smarks  Current Release:
5344131440Smarks    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
5345131440Smarks    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
5346131440Smarks
5347131440Smarks
5348131440Smarks2) iASL Compiler/Disassembler:
5349131440Smarks
5350193267SjkimFixed a generation warning produced by some overly-verbose compilers for a 
5351193267Sjkim64-bit constant.
5352131440Smarks
5353131440Smarks----------------------------------------
5354129684Snjl14 May 2004.  Summary of changes for version 20040514:
5355129684Snjl
5356129684Snjl1) ACPI CA Core Subsystem:
5357129684Snjl
5358193267SjkimFixed a problem where hardware GPE enable bits sometimes not set properly 
5359193267Sjkimduring and after GPE method execution.  Result of 04/27 changes.
5360129684Snjl
5361129684SnjlRemoved extra "clear all GPEs" when sleeping/waking.
5362129684Snjl
5363193267SjkimRemoved AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 
5364193267SjkimAcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 
5365193267Sjkimthe new AcpiEv* calls as appropriate.
5366129684Snjl
5367193267SjkimACPI_OS_NAME was removed from the OS-specific headers.  The default name is 
5368193267Sjkimnow "Microsoft Windows NT" for maximum compatibility.  However this can be 
5369193267Sjkimchanged by modifying the acconfig.h file.
5370129684Snjl
5371193267SjkimAllow a single invocation of AcpiInstallNotifyHandler for a handler that 
5372193267Sjkimtraps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag. 
5373129684Snjl
5374193267SjkimRun _INI methods on ThermalZone objects.  This is against the ACPI 
5375193267Sjkimspecification, but there is apparently ASL code in the field that has these 
5376193267Sjkim_INI methods, and apparently "other" AML interpreters execute them.
5377129684Snjl
5378193267SjkimPerformed a full 16/32/64 bit lint that resulted in some small changes.
5379129684Snjl
5380193267SjkimAdded a sleep simulation command to the AML debugger to test sleep code. 
5381129684Snjl
5382193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5383193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5384193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5385193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5386193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5387193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5388193267Sjkimthe compiler options used during generation.
5389129684Snjl
5390129684Snjl  Previous Release:
5391129684Snjl    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
5392129684Snjl    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
5393129684Snjl  Current Release:
5394129684Snjl    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
5395129684Snjl    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
5396129684Snjl
5397129684Snjl----------------------------------------
5398129684Snjl27 April 2004.  Summary of changes for version 20040427:
5399129684Snjl
5400129684Snjl1) ACPI CA Core Subsystem:
5401129684Snjl
5402193267SjkimCompleted a major overhaul of the GPE handling within ACPI CA.  There are 
5403193267Sjkimnow three types of GPEs:  wake-only, runtime-only, and combination wake/run.  
5404193267SjkimThe only GPEs allowed to be combination wake/run are for button-style 
5405193267Sjkimdevices such as a control-method power button, control-method sleep button, 
5406193267Sjkimor a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are not 
5407193267Sjkimreferenced by any _PRW methods are marked for "runtime" and hardware 
5408193267Sjkimenabled.  Any GPE that is referenced by a _PRW method is marked for "wake" 
5409193267Sjkim(and disabled at runtime).  However, at sleep time, only those GPEs that 
5410193267Sjkimhave been specifically enabled for wake via the AcpiEnableGpe interface will 
5411193267Sjkimactually be hardware enabled.
5412129684Snjl
5413193267SjkimA new external interface has been added, AcpiSetGpeType(), that is meant to 
5414193267Sjkimbe used by device drivers to force a GPE to a particular type.  It will be 
5415193267Sjkimespecially useful for the drivers for the button devices mentioned above.
5416129684Snjl
5417193267SjkimCompleted restructuring of the ACPI CA initialization sequence so that 
5418193267Sjkimdefault operation region handlers are installed before GPEs are initialized 
5419193267Sjkimand the _PRW methods are executed.  This will prevent errors when the _PRW 
5420193267Sjkimmethods attempt to access system memory or I/O space.
5421129684Snjl
5422193267SjkimGPE enable/disable no longer reads the GPE enable register.  We now keep the 
5423193267Sjkimenable info for runtime and wake separate and in the GPE_EVENT_INFO.  We 
5424193267Sjkimthus no longer depend on the hardware to maintain these bits.
5425129684Snjl
5426193267SjkimAlways clear the wake status and fixed/GPE status bits before sleep, even 
5427193267Sjkimfor state S5.
5428129684Snjl
5429193267SjkimImproved the AML debugger output for displaying the GPE blocks and their 
5430193267Sjkimcurrent status.
5431129684Snjl
5432193267SjkimAdded new strings for the _OSI method, of the form "Windows 2001 SPx" where 
5433193267Sjkimx = 0,1,2,3,4.
5434129684Snjl
5435193267SjkimFixed a problem where the physical address was incorrectly calculated when 
5436193267Sjkimthe Load() operator was used to directly load from an Operation Region (vs. 
5437193267Sjkimloading from a Field object.)  Also added check for minimum table length for 
5438193267Sjkimthis case.
5439129684Snjl
5440193267SjkimFix for multiple mutex acquisition.  Restore original thread SyncLevel on 
5441193267Sjkimmutex release.
5442129684Snjl
5443193267SjkimAdded ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 
5444129684Snjlconsistency with the other fields returned.
5445129684Snjl
5446193267SjkimShrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such 
5447193267Sjkimstructure for each GPE in the system, so the size of this structure is 
5448193267Sjkimimportant.
5449129684Snjl
5450193267SjkimCPU stack requirement reduction:  Cleaned up the method execution and object 
5451193267Sjkimevaluation paths so that now a parameter structure is passed, instead of 
5452193267Sjkimcopying the various method parameters over and over again.
5453129684Snjl
5454193267SjkimIn evregion.c:  Correctly exit and reenter the interpreter region if and 
5455193267Sjkimonly if dispatching an operation region request to a user-installed handler.  
5456193267SjkimDo not exit/reenter when dispatching to a default handler (e.g., default 
5457193267Sjkimsystem memory or I/O handlers)
5458129684Snjl
5459129684Snjl
5460193267SjkimNotes for updating drivers for the new GPE support.  The following changes 
5461193267Sjkimmust be made to ACPI-related device drivers that are attached to one or more 
5462193267SjkimGPEs: (This information will be added to the ACPI CA Programmer Reference.)
5463129684Snjl
5464193267Sjkim1) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 
5465193267Sjkimexplicitly call AcpiEnableGpe.
5466193267Sjkim2) There is a new interface called AcpiSetGpeType. This should be called 
5467193267Sjkimbefore enabling the GPE.  Also, this interface will automatically disable 
5468193267Sjkimthe GPE if it is currently enabled.
5469129684Snjl3) AcpiEnableGpe no longer supports a GPE type flag.
5470129684Snjl
5471129684SnjlSpecific drivers that must be changed:
5472129684Snjl1) EC driver:
5473193267Sjkim    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 
5474129684SnjlAeGpeHandler, NULL);
5475129684Snjl    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
5476129684Snjl    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
5477129684Snjl
5478129684Snjl2) Button Drivers (Power, Lid, Sleep):
5479129684SnjlRun _PRW method under parent device
5480129684SnjlIf _PRW exists: /* This is a control-method button */
5481129684Snjl    Extract GPE number and possibly GpeDevice
5482129684Snjl    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
5483129684Snjl    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
5484129684Snjl
5485193267SjkimFor all other devices that have _PRWs, we automatically set the GPE type to 
5486193267SjkimACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.  This 
5487193267Sjkimmust be done on a selective basis, usually requiring some kind of user app 
5488193267Sjkimto allow the user to pick the wake devices.
5489129684Snjl
5490129684Snjl
5491193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5492193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5493193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5494193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5495193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5496193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5497193267Sjkimthe compiler options used during generation.
5498129684Snjl
5499129684Snjl  Previous Release:
5500129684Snjl    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
5501129684Snjl    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
5502129684Snjl  Current Release:
5503167802Sjkim
5504129684Snjl    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
5505129684Snjl    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
5506129684Snjl
5507129684Snjl
5508129684Snjl
5509129684Snjl----------------------------------------
5510128212Snjl02 April 2004.  Summary of changes for version 20040402:
5511128212Snjl
5512128212Snjl1) ACPI CA Core Subsystem:
5513128212Snjl
5514193267SjkimFixed an interpreter problem where an indirect store through an ArgX 
5515193267Sjkimparameter was incorrectly applying the "implicit conversion rules" during 
5516193267Sjkimthe store.  From the ACPI specification: "If the target is a method local or 
5517193267Sjkimargument (LocalX or ArgX), no conversion is performed and the result is 
5518193267Sjkimstored directly to the target".  The new behavior is to disable implicit 
5519193267Sjkimconversion during ALL stores to an ArgX.
5520128212Snjl
5521193267SjkimChanged the behavior of the _PRW method scan to ignore any and all errors 
5522193267Sjkimreturned by a given _PRW.  This prevents the scan from aborting from the 
5523193267Sjkimfailure of any single _PRW.
5524128212Snjl
5525193267SjkimMoved the runtime configuration parameters from the global init procedure to 
5526193267Sjkimstatic variables in acglobal.h.  This will allow the host to override the 
5527193267Sjkimdefault values easily.
5528128212Snjl
5529193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5530193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5531193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5532193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5533193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5534193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5535193267Sjkimthe compiler options used during generation.
5536128212Snjl
5537128212Snjl  Previous Release:
5538128212Snjl    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
5539128212Snjl    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
5540128212Snjl  Current Release:
5541128212Snjl    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
5542128212Snjl    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
5543128212Snjl
5544128212Snjl
5545128212Snjl2) iASL Compiler/Disassembler:
5546128212Snjl
5547193267SjkimiASL now fully disassembles SSDTs.  However, External() statements are not 
5548193267Sjkimgenerated automatically for unresolved symbols at this time.  This is a 
5549193267Sjkimplanned feature for future implementation.
5550128212Snjl
5551193267SjkimFixed a scoping problem in the disassembler that occurs when the type of the 
5552193267Sjkimtarget of a Scope() operator is overridden.  This problem caused an 
5553193267Sjkimincorrectly nested internal namespace to be constructed.
5554128212Snjl
5555193267SjkimAny warnings or errors that are emitted during disassembly are now commented 
5556193267Sjkimout automatically so that the resulting file can be recompiled without any 
5557193267Sjkimhand editing.
5558128212Snjl
5559128212Snjl----------------------------------------
5560128212Snjl26 March 2004.  Summary of changes for version 20040326:
5561128212Snjl
5562128212Snjl1) ACPI CA Core Subsystem:
5563128212Snjl
5564193267SjkimImplemented support for "wake" GPEs via interaction between GPEs and the 
5565193267Sjkim_PRW methods.  Every GPE that is pointed to by one or more _PRWs is 
5566193267Sjkimidentified as a WAKE GPE and by default will no longer be enabled at 
5567193267Sjkimruntime.  Previously, we were blindly enabling all GPEs with a corresponding 
5568193267Sjkim_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.  We 
5569193267Sjkimbelieve this has been the cause of thousands of "spurious" GPEs on some 
5570128212Snjlsystems.
5571128212Snjl
5572193267SjkimThis new GPE behavior is can be reverted to the original behavior (enable 
5573193267SjkimALL GPEs at runtime) via a runtime flag.
5574128212Snjl
5575193267SjkimFixed a problem where aliased control methods could not access objects 
5576193267Sjkimproperly.  The proper scope within the namespace was not initialized 
5577193267Sjkim(transferred to the target of the aliased method) before executing the 
5578193267Sjkimtarget method.
5579128212Snjl
5580193267SjkimFixed a potential race condition on internal object deletion on the return 
5581193267Sjkimobject in AcpiEvaluateObject. 
5582128212Snjl
5583193267SjkimIntegrated a fix for resource descriptors where both _MEM and _MTP were 
5584193267Sjkimbeing extracted instead of just _MEM.  (i.e. bitmask was incorrectly too 
5585193267Sjkimwide, 0x0F instead of 0x03.)
5586128212Snjl
5587193267SjkimAdded a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 
5588193267Sjkimfault in some cases.
5589128212Snjl
5590128212SnjlUpdated Notify() values for debug statements in evmisc.c
5591128212Snjl
5592193267SjkimReturn proper status from AcpiUtMutexInitialize, not just simply AE_OK.
5593128212Snjl
5594193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5595193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5596193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5597193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5598193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5599193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5600193267Sjkimthe compiler options used during generation.
5601128212Snjl
5602128212Snjl  Previous Release:
5603167802Sjkim
5604128212Snjl    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
5605128212Snjl    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
5606128212Snjl  Current Release:
5607128212Snjl    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
5608128212Snjl    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
5609128212Snjl
5610128212Snjl----------------------------------------
5611127175Snjl11 March 2004.  Summary of changes for version 20040311:
5612127175Snjl
5613127175Snjl1) ACPI CA Core Subsystem:
5614127175Snjl
5615193267SjkimFixed a problem where errors occurring during the parse phase of control 
5616193267Sjkimmethod execution did not abort cleanly.  For example, objects created and 
5617193267Sjkiminstalled in the namespace were not deleted.  This caused all subsequent 
5618193267Sjkiminvocations of the method to return the AE_ALREADY_EXISTS exception.
5619127175Snjl
5620193267SjkimImplemented a mechanism to force a control method to "Serialized" execution 
5621193267Sjkimif the method attempts to create namespace objects. (The root of the 
5622193267SjkimAE_ALREADY_EXISTS problem.)
5623127175Snjl
5624193267SjkimImplemented support for the predefined _OSI "internal" control method.  
5625193267SjkimInitial supported strings are "Linux", "Windows 2000", "Windows 2001", and 
5626193267Sjkim"Windows 2001.1", and can be easily upgraded for new strings as necessary.  
5627193267SjkimThis feature will allow "other" operating systems to execute the fully 
5628193267Sjkimtested, "Windows" code path through the ASL code
5629127175Snjl
5630193267SjkimGlobal Lock Support:  Now allows multiple acquires and releases with any 
5631193267Sjkiminternal thread.  Removed concept of "owning thread" for this special mutex.
5632127175Snjl
5633193267SjkimFixed two functions that were inappropriately declaring large objects on the 
5634193267SjkimCPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage during 
5635193267Sjkimmethod execution considerably.
5636127175Snjl
5637193267SjkimFixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 
5638193267SjkimS4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
5639127175Snjl
5640193267SjkimFixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 
5641193267Sjkimdefined on the machine.
5642127175Snjl
5643193267SjkimImplemented two runtime options:  One to force all control method execution 
5644193267Sjkimto "Serialized" to mimic Windows behavior, another to disable _OSI support 
5645193267Sjkimif it causes problems on a given machine.
5646127175Snjl
5647193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 
5648193267Sjkimshown below.  These are the code and data sizes for the acpica.lib produced 
5649193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 
5650193267Sjkimany ACPI driver or OSPM code.  The debug version of the code includes the 
5651193267Sjkimdebug output trace mechanism and has a much larger code and data size.  Note 
5652193267Sjkimthat these values will vary depending on the efficiency of the compiler and 
5653193267Sjkimthe compiler options used during generation.
5654127175Snjl
5655127175Snjl  Previous Release:
5656127175Snjl    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
5657127175Snjl    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
5658127175Snjl  Current Release:
5659127175Snjl    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
5660127175Snjl    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
5661127175Snjl
5662127175Snjl2) iASL Compiler/Disassembler:
5663127175Snjl
5664193267SjkimFixed an array size problem for FreeBSD that would cause the compiler to 
5665193267Sjkimfault.
5666127175Snjl
5667127175Snjl----------------------------------------
5668126372Snjl20 February 2004.  Summary of changes for version 20040220:
5669126372Snjl
5670167802Sjkim
5671126372Snjl1) ACPI CA Core Subsystem:
5672126372Snjl
5673193267SjkimImplemented execution of _SxD methods for Device objects in the 
5674126372SnjlGetObjectInfo interface.
5675126372Snjl
5676126372SnjlFixed calls to _SST method to pass the correct arguments.
5677126372Snjl
5678126372SnjlAdded a call to _SST on wake to restore to "working" state.
5679126372Snjl
5680193267SjkimCheck for End-Of-Buffer failure case in the WalkResources interface.
5681126372Snjl
5682193267SjkimIntegrated fix for 64-bit alignment issue in acglobal.h by moving two 
5683193267Sjkimstructures to the beginning of the file.
5684126372Snjl
5685126372SnjlAfter wake, clear GPE status register(s) before enabling GPEs.
5686126372Snjl
5687193267SjkimAfter wake, clear/enable power button.  (Perhaps we should clear/enable all 
5688193267Sjkimfixed events upon wake.)
5689126372Snjl
5690126372SnjlFixed a couple of possible memory leaks in the Namespace manager.
5691126372Snjl
5692126372SnjlIntegrated latest acnetbsd.h file.
5693126372Snjl
5694126372Snjl----------------------------------------
5695126372Snjl11 February 2004.  Summary of changes for version 20040211:
5696126372Snjl
5697167802Sjkim
5698126372Snjl1) ACPI CA Core Subsystem:
5699126372Snjl
5700193267SjkimCompleted investigation and implementation of the call-by-reference 
5701193267Sjkimmechanism for control method arguments.
5702126372Snjl
5703193267SjkimFixed a problem where a store of an object into an indexed package could 
5704193267Sjkimfail if the store occurs within a different method than the method that 
5705193267Sjkimcreated the package.
5706126372Snjl
5707193267SjkimFixed a problem where the ToDecimal operator could return incorrect results.
5708126372Snjl
5709193267SjkimFixed a problem where the CopyObject operator could fail on some of the more 
5710193267Sjkimobscure objects (e.g., Reference objects.)
5711126372Snjl
5712193267SjkimImproved the output of the Debug object to display buffer, package, and 
5713193267Sjkimindex objects.
5714126372Snjl
5715193267SjkimFixed a problem where constructs of the form "RefOf (ArgX)" did not return 
5716193267Sjkimthe expected result.
5717126372Snjl
5718193267SjkimAdded permanent ACPI_REPORT_ERROR macros for all instances of the 
5719126372SnjlACPI_AML_INTERNAL exception.
5720126372Snjl
5721126372SnjlIntegrated latest version of acfreebsd.h
5722126372Snjl
5723126372Snjl----------------------------------------
5724126372Snjl16 January 2004.  Summary of changes for version 20040116:
5725126372Snjl
5726193267SjkimThe purpose of this release is primarily to update the copyright years in 
5727193267Sjkimeach module, thus causing a huge number of diffs.  There are a few small 
5728193267Sjkimfunctional changes, however.
5729126372Snjl
5730126372Snjl1) ACPI CA Core Subsystem:
5731126372Snjl
5732193267SjkimImproved error messages when there is a problem finding one or more of the 
5733193267Sjkimrequired base ACPI tables
5734126372Snjl
5735126372SnjlReintroduced the definition of APIC_HEADER in actbl.h
5736126372Snjl
5737126372SnjlChanged definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
5738126372Snjl
5739126372SnjlRemoved extraneous reference to NewObj in dsmthdat.c
5740126372Snjl
5741126372Snjl2) iASL compiler
5742126372Snjl
5743193267SjkimFixed a problem introduced in December that disabled the correct disassembly 
5744193267Sjkimof Resource Templates
5745126372Snjl
5746126372Snjl
5747126372Snjl----------------------------------------
5748126372Snjl03 December 2003.  Summary of changes for version 20031203:
5749126372Snjl
5750126372Snjl1) ACPI CA Core Subsystem:
5751126372Snjl
5752126372SnjlChanged the initialization of Operation Regions during subsystem
5753126372Snjlinit to perform two entire walks of the ACPI namespace; The first
5754126372Snjlto initialize the regions themselves, the second to execute the
5755126372Snjl_REG methods.  This fixed some interdependencies across _REG
5756126372Snjlmethods found on some machines.
5757126372Snjl
5758126372SnjlFixed a problem where a Store(Local0, Local1) could simply update
5759126372Snjlthe object reference count, and not create a new copy of the
5760126372Snjlobject if the Local1 is uninitialized.
5761126372Snjl
5762126372SnjlImplemented support for the _SST reserved method during sleep
5763126372Snjltransitions.
5764126372Snjl
5765126372SnjlImplemented support to clear the SLP_TYP and SLP_EN bits when
5766126372Snjlwaking up, this is apparently required by some machines.
5767126372Snjl
5768193267SjkimWhen sleeping, clear the wake status only if SleepState is not S5.
5769126372Snjl
5770126372SnjlFixed a problem in AcpiRsExtendedIrqResource() where an incorrect
5771126372Snjlpointer arithmetic advanced a string pointer too far.
5772126372Snjl
5773126372SnjlFixed a problem in AcpiTbGetTablePtr() where a garbage pointer
5774126372Snjlcould be returned if the requested table has not been loaded.
5775126372Snjl
5776193267SjkimWithin the support for IRQ resources, restructured the handling of
5777126372Snjlthe active and edge/level bits.
5778126372Snjl
5779126372SnjlFixed a few problems in AcpiPsxExecute() where memory could be
5780126372Snjlleaked under certain error conditions.
5781126372Snjl
5782126372SnjlImproved error messages for the cases where the ACPI mode could
5783126372Snjlnot be entered.
5784126372Snjl
5785126372SnjlCode and Data Size: Current and previous core subsystem library
5786126372Snjlsizes are shown below.  These are the code and data sizes for the
5787126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
5788126372Snjlthese values do not include any ACPI driver or OSPM code.  The
5789126372Snjldebug version of the code includes the debug output trace
5790126372Snjlmechanism and has a much larger code and data size.  Note that
5791193267Sjkimthese values will vary depending on the efficiency of the compiler
5792126372Snjland the compiler options used during generation.
5793126372Snjl
5794126372Snjl  Previous Release (20031029):
5795126372Snjl    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
5796126372Snjl    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
5797126372Snjl  Current Release:
5798126372Snjl    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
5799126372Snjl    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
5800126372Snjl
5801126372Snjl2) iASL Compiler/Disassembler:
5802126372Snjl
5803126372SnjlImplemented a fix for the iASL disassembler where a bad index was
5804126372Snjlgenerated.  This was most noticeable on 64-bit platforms
5805126372Snjl
5806126372Snjl
5807126372Snjl----------------------------------------
5808126372Snjl29 October 2003.  Summary of changes for version 20031029:
5809126372Snjl
5810126372Snjl1) ACPI CA Core Subsystem:
5811126372Snjl
5812167802Sjkim
5813126372SnjlFixed a problem where a level-triggered GPE with an associated
5814126372Snjl_Lxx control method was incorrectly cleared twice.
5815126372Snjl
5816126372SnjlFixed a problem with the Field support code where an access can
5817126372Snjloccur beyond the end-of-region if the field is non-aligned but
5818126372Snjlextends to the very end of the parent region (resulted in an
5819126372SnjlAE_AML_REGION_LIMIT exception.)
5820126372Snjl
5821126372SnjlFixed a problem with ACPI Fixed Events where an RT Clock handler
5822193267Sjkimwould not get invoked on an RTC event.  The RTC event bitmasks for
5823126372Snjlthe PM1 registers were not being initialized properly.
5824126372Snjl
5825126372SnjlImplemented support for executing _STA and _INI methods for
5826126372SnjlProcessor objects.  Although this is currently not part of the
5827193267SjkimACPI specification, there is existing ASL code that depends on the
5828126372Snjlinit-time execution of these methods.
5829126372Snjl
5830126372SnjlImplemented and deployed a GetDescriptorName function to decode
5831126372Snjlthe various types of internal descriptors.  Guards against null
5832126372Snjldescriptors during debug output also.
5833126372Snjl
5834126372SnjlImplemented and deployed a GetNodeName function to extract the 4-
5835193267Sjkimcharacter namespace node name.  This function simplifies the debug
5836193267Sjkimand error output, as well as guarding against null pointers during
5837126372Snjloutput.
5838126372Snjl
5839126372SnjlImplemented and deployed the ACPI_FORMAT_UINT64 helper macro to
5840126372Snjlsimplify the debug and error output of 64-bit integers.  This
5841126372Snjlmacro replaces the HIDWORD and LODWORD macros for dumping these
5842126372Snjlintegers.
5843126372Snjl
5844126372SnjlUpdated the implementation of the Stall() operator to only call
5845126372SnjlAcpiOsStall(), and also return an error if the operand is larger
5846126372Snjlthan 255.  This preserves the required behavior of not
5847126372Snjlrelinquishing the processor, as would happen if AcpiOsSleep() was
5848126372Snjlcalled for "long stalls".
5849126372Snjl
5850126372SnjlConstructs of the form "Store(LocalX,LocalX)" where LocalX is not
5851126372Snjlinitialized are now treated as NOOPs.
5852126372Snjl
5853126372SnjlCleaned up a handful of warnings during 64-bit generation.
5854126372Snjl
5855126372SnjlFixed a reported error where and incorrect GPE number was passed
5856126372Snjlto the GPE dispatch handler.  This value is only used for error
5857193267Sjkimoutput, however.  Used this opportunity to clean up and streamline
5858126372Snjlthe GPE dispatch code.
5859126372Snjl
5860126372SnjlCode and Data Size: Current and previous core subsystem library
5861126372Snjlsizes are shown below.  These are the code and data sizes for the
5862126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
5863126372Snjlthese values do not include any ACPI driver or OSPM code.  The
5864167802Sjkim
5865126372Snjldebug version of the code includes the debug output trace
5866126372Snjlmechanism and has a much larger code and data size.  Note that
5867193267Sjkimthese values will vary depending on the efficiency of the compiler
5868126372Snjland the compiler options used during generation.
5869126372Snjl
5870126372Snjl  Previous Release (20031002):
5871126372Snjl    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
5872126372Snjl    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
5873126372Snjl  Current Release:
5874126372Snjl    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
5875126372Snjl    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
5876126372Snjl
5877126372Snjl
5878126372Snjl2) iASL Compiler/Disassembler:
5879126372Snjl
5880193267SjkimUpdated the iASL compiler to return an error if the operand to the
5881126372SnjlStall() operator is larger than 255.
5882126372Snjl
5883126372Snjl
5884126372Snjl----------------------------------------
5885126372Snjl02 October 2003.  Summary of changes for version 20031002:
5886126372Snjl
5887126372Snjl
5888126372Snjl1) ACPI CA Core Subsystem:
5889126372Snjl
5890126372SnjlFixed a problem with Index Fields where the index was not
5891126372Snjlincremented for fields that require multiple writes to the
5892126372Snjlindex/data registers (Fields that are wider than the data
5893126372Snjlregister.)
5894126372Snjl
5895126372SnjlFixed a problem with all Field objects where a write could go
5896126372Snjlbeyond the end-of-field if the field was larger than the access
5897193267Sjkimgranularity and therefore required multiple writes to complete the
5898126372Snjlrequest.  An extra write beyond the end of the field could happen
5899126372Snjlinadvertently.
5900126372Snjl
5901126372SnjlFixed a problem with Index Fields where a BUFFER_OVERFLOW error
5902126372Snjlwould incorrectly be returned if the width of the Data Register
5903126372Snjlwas larger than the specified field access width.
5904126372Snjl
5905126372SnjlCompleted fixes for LoadTable() and Unload() and verified their
5906126372Snjloperation.  Implemented full support for the "DdbHandle" object
5907126372Snjlthroughout the ACPI CA subsystem.
5908126372Snjl
5909126372SnjlImplemented full support for the MADT and ECDT tables in the ACPI
5910126372SnjlCA header files.  Even though these tables are not directly
5911126372Snjlconsumed by ACPI CA, the header definitions are useful for ACPI
5912126372Snjldevice drivers.
5913126372Snjl
5914126372SnjlIntegrated resource descriptor fixes posted to the Linux ACPI
5915126372Snjllist.  This included checks for minimum descriptor length, and
5916126372Snjlsupport for trailing NULL strings within descriptors that have
5917126372Snjloptional string elements.
5918126372Snjl
5919126372SnjlCode and Data Size: Current and previous core subsystem library
5920126372Snjlsizes are shown below.  These are the code and data sizes for the
5921126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
5922126372Snjlthese values do not include any ACPI driver or OSPM code.  The
5923126372Snjldebug version of the code includes the debug output trace
5924126372Snjlmechanism and has a much larger code and data size.  Note that
5925193267Sjkimthese values will vary depending on the efficiency of the compiler
5926126372Snjland the compiler options used during generation.
5927126372Snjl
5928126372Snjl  Previous Release (20030918):
5929126372Snjl    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
5930126372Snjl    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
5931126372Snjl  Current Release:
5932126372Snjl    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
5933126372Snjl    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
5934126372Snjl
5935126372Snjl
5936126372Snjl2) iASL Compiler:
5937126372Snjl
5938126372SnjlImplemented detection of non-ASCII characters within the input
5939126372Snjlsource ASL file.  This catches attempts to compile binary (AML)
5940126372Snjlfiles early in the compile, with an informative error message.
5941126372Snjl
5942126372SnjlFixed a problem where the disassembler would fault if the output
5943193267Sjkimfilename could not be generated or if the output file could not be
5944126372Snjlopened.
5945126372Snjl
5946126372Snjl----------------------------------------
5947126372Snjl18 September 2003.  Summary of changes for version 20030918:
5948126372Snjl
5949126372Snjl
5950126372Snjl1) ACPI CA Core Subsystem:
5951126372Snjl
5952126372SnjlFound and fixed a longstanding problem with the late execution of
5953126372Snjlthe various deferred AML opcodes (such as Operation Regions,
5954126372SnjlBuffer Fields, Buffers, and Packages).  If the name string
5955126372Snjlspecified for the name of the new object placed the object in a
5956126372Snjlscope other than the current scope, the initialization/execution
5957126372Snjlof the opcode failed.  The solution to this problem was to
5958126372Snjlimplement a mechanism where the late execution of such opcodes
5959126372Snjldoes not attempt to lookup/create the name a second time in an
5960126372Snjlincorrect scope.  This fixes the "region size computed
5961126372Snjlincorrectly" problem.
5962126372Snjl
5963193267SjkimFixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
5964126372SnjlGlobal Lock AE_BAD_PARAMETER error.
5965126372Snjl
5966126372SnjlFixed several 64-bit issues with prototypes, casting and data
5967126372Snjltypes.
5968126372Snjl
5969126372SnjlRemoved duplicate prototype from acdisasm.h
5970126372Snjl
5971126372SnjlFixed an issue involving EC Operation Region Detach (Shaohua Li)
5972126372Snjl
5973126372SnjlCode and Data Size: Current and previous core subsystem library
5974126372Snjlsizes are shown below.  These are the code and data sizes for the
5975126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
5976126372Snjlthese values do not include any ACPI driver or OSPM code.  The
5977126372Snjldebug version of the code includes the debug output trace
5978126372Snjlmechanism and has a much larger code and data size.  Note that
5979193267Sjkimthese values will vary depending on the efficiency of the compiler
5980126372Snjland the compiler options used during generation.
5981126372Snjl
5982126372Snjl  Previous Release:
5983167802Sjkim
5984126372Snjl    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
5985126372Snjl    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
5986126372Snjl  Current Release:
5987126372Snjl    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
5988126372Snjl    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
5989126372Snjl
5990126372Snjl
5991126372Snjl2) Linux:
5992126372Snjl
5993126372SnjlFixed the AcpiOsSleep implementation in osunixxf.c to pass the
5994126372Snjlcorrect sleep time in seconds.
5995126372Snjl
5996126372Snjl----------------------------------------
5997126372Snjl14 July 2003.  Summary of changes for version 20030619:
5998126372Snjl
5999126372Snjl1) ACPI CA Core Subsystem:
6000126372Snjl
6001126372SnjlParse SSDTs in order discovered, as opposed to reverse order
6002126372Snjl(Hrvoje Habjanic)
6003126372Snjl
6004126372SnjlFixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
6005126372SnjlKlausner,
6006126372Snjl   Nate Lawson)
6007126372Snjl
6008126372Snjl
6009126372Snjl2) Linux:
6010126372Snjl
6011126372SnjlDynamically allocate SDT list (suggested by Andi Kleen)
6012126372Snjl
6013126372Snjlproc function return value cleanups (Andi Kleen)
6014126372Snjl
6015126372SnjlCorrectly handle NMI watchdog during long stalls (Andrew Morton)
6016126372Snjl
6017126372SnjlMake it so acpismp=force works (reported by Andrew Morton)
6018126372Snjl
6019126372Snjl
6020126372Snjl----------------------------------------
6021117521Snjl19 June 2003.  Summary of changes for version 20030619:
6022117521Snjl
6023117521Snjl1) ACPI CA Core Subsystem:
6024117521Snjl
6025193267SjkimFix To/FromBCD, eliminating the need for an arch-specific #define.
6026117521Snjl
6027117521SnjlDo not acquire a semaphore in the S5 shutdown path.
6028117521Snjl
6029117521SnjlFix ex_digits_needed for 0. (Takayoshi Kochi)
6030117521Snjl
6031117521SnjlFix sleep/stall code reversal. (Andi Kleen)
6032117521Snjl
6033117521SnjlRevert a change having to do with control method calling
6034117521Snjlsemantics.
6035117521Snjl
6036117521Snjl2) Linux:
6037117521Snjl
6038117521Snjlacpiphp update (Takayoshi Kochi)
6039117521Snjl
6040117521SnjlExport acpi_disabled for sonypi (Stelian Pop)
6041117521Snjl
6042117521SnjlMention acpismp=force in config help
6043117521Snjl
6044117521SnjlRe-add acpitable.c and acpismp=force. This improves backwards
6045167802Sjkim
6046193267Sjkimcompatibility and also cleans up the code to a significant degree.
6047117521Snjl
6048117521SnjlAdd ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
6049117521Snjl
6050117521Snjl----------------------------------------
6051117521Snjl22 May 2003.  Summary of changes for version 20030522:
6052117521Snjl
6053117521Snjl1) ACPI CA Core Subsystem:
6054117521Snjl
6055117521SnjlFound and fixed a reported problem where an AE_NOT_FOUND error
6056117521Snjloccurred occasionally during _BST evaluation.  This turned out to
6057117521Snjlbe an Owner ID allocation issue where a called method did not get
6058193267Sjkima new ID assigned to it.  Eventually, (after 64k calls), the Owner
6059193267SjkimID UINT16 would wraparound so that the ID would be the same as the
6060126372Snjlcaller's and the called method would delete the caller's
6061117521Snjlnamespace.
6062117521Snjl
6063117521SnjlImplemented extended error reporting for control methods that are
6064117521Snjlaborted due to a run-time exception.  Output includes the exact
6065193267SjkimAML instruction that caused the method abort, a dump of the method
6066126372Snjllocals and arguments at the time of the abort, and a trace of all
6067126372Snjlnested control method calls.
6068117521Snjl
6069117521SnjlModified the interpreter to allow the creation of buffers of zero
6070117521Snjllength from the AML code. Implemented new code to ensure that no
6071117521Snjlattempt is made to actually allocate a memory buffer (of length
6072193267Sjkimzero) - instead, a simple buffer object with a NULL buffer pointer
6073126372Snjland length zero is created.  A warning is no longer issued when
6074126372Snjlthe AML attempts to create a zero-length buffer.
6075117521Snjl
6076117521SnjlImplemented a workaround for the "leading asterisk issue" in
6077117521Snjl_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
6078117521Snjlasterisk is automatically removed if present in any HID, UID, or
6079117521SnjlCID strings.  The iASL compiler will still flag this asterisk as
6080117521Snjlan error, however.
6081117521Snjl
6082193267SjkimImplemented full support for _CID methods that return a package of
6083193267Sjkimmultiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
6084126372Snjlnow additionally returns a device _CID list if present.  This
6085126372Snjlrequired a change to the external interface in order to pass an
6086126372SnjlACPI_BUFFER object as a parameter since the _CID list is of
6087117521Snjlvariable length.
6088117521Snjl
6089117521SnjlFixed a problem with the new AE_SAME_HANDLER exception where
6090117521Snjlhandler initialization code did not know about this exception.
6091117521Snjl
6092117521SnjlCode and Data Size: Current and previous core subsystem library
6093117521Snjlsizes are shown below.  These are the code and data sizes for the
6094117521Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
6095117521Snjlthese values do not include any ACPI driver or OSPM code.  The
6096117521Snjldebug version of the code includes the debug output trace
6097117521Snjlmechanism and has a much larger code and data size.  Note that
6098193267Sjkimthese values will vary depending on the efficiency of the compiler
6099126372Snjland the compiler options used during generation.
6100117521Snjl
6101117521Snjl  Previous Release (20030509):
6102117521Snjl    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
6103117521Snjl    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
6104117521Snjl  Current Release:
6105117521Snjl    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
6106117521Snjl    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
6107117521Snjl
6108117521Snjl
6109117521Snjl2) Linux:
6110117521Snjl
6111117521SnjlFixed a bug in which we would reinitialize the ACPI interrupt
6112193267Sjkimafter it was already working, thus disabling all ACPI and the IRQs
6113126372Snjlfor any other device sharing the interrupt. (Thanks to Stian
6114117521SnjlJordet)
6115117521Snjl
6116117521SnjlToshiba driver update (John Belmonte)
6117117521Snjl
6118117521SnjlReturn only 0 or 1 for our interrupt handler status (Andrew
6119117521SnjlMorton)
6120117521Snjl
6121117521Snjl
6122117521Snjl3) iASL Compiler:
6123117521Snjl
6124117521SnjlFixed a reported problem where multiple (nested) ElseIf()
6125117521Snjlstatements were not handled correctly by the compiler, resulting
6126117521Snjlin incorrect warnings and incorrect AML code.  This was a problem
6127117521Snjlin both the ASL parser and the code generator.
6128117521Snjl
6129117521Snjl
6130117521Snjl4) Documentation:
6131117521Snjl
6132193267SjkimAdded changes to existing interfaces, new exception codes, and new
6133126372Snjltext concerning reference count object management versus garbage
6134126372Snjlcollection.
6135117521Snjl
6136117521Snjl----------------------------------------
6137117521Snjl09 May 2003.  Summary of changes for version 20030509.
6138117521Snjl
6139117521Snjl
6140117521Snjl1) ACPI CA Core Subsystem:
6141117521Snjl
6142117521SnjlChanged the subsystem initialization sequence to hold off
6143193267Sjkiminstallation of address space handlers until the hardware has been
6144193267Sjkiminitialized and the system has entered ACPI mode.  This is because
6145126372Snjlthe installation of space handlers can cause _REG methods to be
6146193267Sjkimrun.  Previously, the _REG methods could potentially be run before
6147126372SnjlACPI mode was enabled.
6148117521Snjl
6149193267SjkimFixed some memory leak issues related to address space handler and
6150126372Snjlnotify handler installation.  There were some problems with the
6151126372Snjlreference count mechanism caused by the fact that the handler
6152117521Snjlobjects are shared across several namespace objects.
6153117521Snjl
6154117521SnjlFixed a reported problem where reference counts within the
6155117521Snjlnamespace were not properly updated when named objects created by
6156117521Snjlmethod execution were deleted.
6157117521Snjl
6158117521SnjlFixed a reported problem where multiple SSDTs caused a deletion
6159117521Snjlissue during subsystem termination.  Restructured the table data
6160117521Snjlstructures to simplify the linked lists and the related code.
6161117521Snjl
6162117521SnjlFixed a problem where the table ID associated with secondary
6163193267Sjkimtables (SSDTs) was not being propagated into the namespace objects
6164126372Snjlcreated by those tables.  This would only present a problem for
6165126372Snjltables that are unloaded at run-time, however.
6166117521Snjl
6167117521SnjlUpdated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
6168117521Snjltype as the length parameter (instead of UINT32).
6169117521Snjl
6170117521SnjlSolved a long-standing problem where an ALREADY_EXISTS error
6171117521Snjlappears on various systems.  This problem could happen when there
6172117521Snjlare multiple PCI_Config operation regions under a single PCI root
6173117521Snjlbus.  This doesn't happen very frequently, but there are some
6174117521Snjlsystems that do this in the ASL.
6175117521Snjl
6176117521SnjlFixed a reported problem where the internal DeleteNode function
6177117521Snjlwas incorrectly handling the case where a namespace node was the
6178117521Snjlfirst in the parent's child list, and had additional peers (not
6179117521Snjlthe only child, but first in the list of children.)
6180117521Snjl
6181193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6182126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6183126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6184126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6185126372Snjlversion of the code includes the debug output trace mechanism and
6186193267Sjkimhas a much larger code and data size.  Note that these values will
6187126372Snjlvary depending on the efficiency of the compiler and the compiler
6188126372Snjloptions used during generation.
6189117521Snjl
6190117521Snjl  Previous Release
6191117521Snjl    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
6192117521Snjl    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
6193117521Snjl  Current Release:
6194117521Snjl    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
6195117521Snjl    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
6196117521Snjl
6197117521Snjl
6198117521Snjl2) Linux:
6199117521Snjl
6200117521SnjlAllow ":" in OS override string (Ducrot Bruno)
6201117521Snjl
6202117521SnjlKobject fix (Greg KH)
6203117521Snjl
6204117521Snjl
6205117521Snjl3 iASL Compiler/Disassembler:
6206117521Snjl
6207117521SnjlFixed a problem in the generation of the C source code files (AML
6208117521Snjlis emitted in C source statements for BIOS inclusion) where the
6209193267SjkimAscii dump that appears within a C comment at the end of each line
6210126372Snjlcould cause a compile time error if the AML sequence happens to
6211126372Snjlhave an open comment or close comment sequence embedded.
6212117521Snjl
6213117521Snjl
6214117521Snjl----------------------------------------
6215117521Snjl24 April 2003.  Summary of changes for version 20030424.
6216117521Snjl
6217117521Snjl
6218117521Snjl1) ACPI CA Core Subsystem:
6219117521Snjl
6220117521SnjlSupport for big-endian systems has been implemented.  Most of the
6221193267Sjkimsupport has been invisibly added behind big-endian versions of the
6222126372SnjlACPI_MOVE_* macros.
6223117521Snjl
6224117521SnjlFixed a problem in AcpiHwDisableGpeBlock() and
6225117521SnjlAcpiHwClearGpeBlock() where an incorrect offset was passed to the
6226117521Snjllow level hardware write routine.  The offset parameter was
6227193267Sjkimactually eliminated from the low level read/write routines because
6228126372Snjlthey had become obsolete.
6229117521Snjl
6230117521SnjlFixed a problem where a handler object was deleted twice during
6231117521Snjlthe removal of a fixed event handler.
6232117521Snjl
6233117521Snjl
6234117521Snjl2) Linux:
6235117521Snjl
6236117521SnjlA fix for SMP systems with link devices was contributed by
6237167802Sjkim
6238117521SnjlCompaq's Dan Zink.
6239117521Snjl
6240117521Snjl(2.5) Return whether we handled the interrupt in our IRQ handler.
6241193267Sjkim(Linux ISRs no longer return void, so we can propagate the handler
6242126372Snjlreturn value from the ACPI CA core back to the OS.)
6243117521Snjl
6244117521Snjl
6245167802Sjkim
6246117521Snjl3) Documentation:
6247117521Snjl
6248117521SnjlThe ACPI CA Programmer Reference has been updated to reflect new
6249117521Snjlinterfaces and changes to existing interfaces.
6250117521Snjl
6251117521Snjl----------------------------------------
6252117521Snjl28 March 2003.  Summary of changes for version 20030328.
6253117521Snjl
6254117521Snjl1) ACPI CA Core Subsystem:
6255117521Snjl
6256117521SnjlThe GPE Block Device support has been completed.  New interfaces
6257117521Snjlare AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
6258117521Snjlinterfaces (enable, disable, clear, getstatus) have been split
6259117521Snjlinto separate interfaces for Fixed Events and General Purpose
6260117521SnjlEvents (GPEs) in order to support GPE Block Devices properly.
6261117521Snjl
6262117521SnjlFixed a problem where the error message "Failed to acquire
6263117521Snjlsemaphore" would appear during operations on the embedded
6264117521Snjlcontroller (EC).
6265117521Snjl
6266193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6267126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6268126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6269126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6270126372Snjlversion of the code includes the debug output trace mechanism and
6271193267Sjkimhas a much larger code and data size.  Note that these values will
6272126372Snjlvary depending on the efficiency of the compiler and the compiler
6273126372Snjloptions used during generation.
6274117521Snjl
6275117521Snjl  Previous Release
6276117521Snjl    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
6277117521Snjl    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
6278117521Snjl  Current Release:
6279117521Snjl    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
6280117521Snjl    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
6281117521Snjl
6282117521Snjl
6283117521Snjl----------------------------------------
6284114237Snjl28 February 2003.  Summary of changes for version 20030228.
6285114237Snjl
6286114237Snjl
6287114237Snjl1) ACPI CA Core Subsystem:
6288114237Snjl
6289114237SnjlThe GPE handling and dispatch code has been completely overhauled
6290114237Snjlin preparation for support of GPE Block Devices (ID ACPI0006).
6291114237SnjlThis affects internal data structures and code only; there should
6292114237Snjlbe no differences visible externally.  One new file has been
6293114237Snjladded, evgpeblk.c
6294114237Snjl
6295114237SnjlThe FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
6296114237Snjlfields that are used to determine the GPE block lengths.  The
6297114237SnjlREGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
6298193267Sjkimstructures are ignored.  This is per the ACPI specification but it
6299126372Snjlisn't very clear.  The full 256 Block 0/1 GPEs are now supported
6300193267Sjkim(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
6301114237Snjl
6302114237SnjlIn the SCI interrupt handler, removed the read of the PM1_CONTROL
6303114237Snjlregister to look at the SCI_EN bit.  On some machines, this read
6304114237Snjlcauses an SMI event and greatly slows down SCI events.  (This may
6305114237Snjlin fact be the cause of slow battery status response on some
6306114237Snjlsystems.)
6307114237Snjl
6308193267SjkimFixed a problem where a store of a NULL string to a package object
6309126372Snjlcould cause the premature deletion of the object.  This was seen
6310126372Snjlduring execution of the battery _BIF method on some systems,
6311126372Snjlresulting in no battery data being returned.
6312114237Snjl
6313114237SnjlAdded AcpiWalkResources interface to simplify parsing of resource
6314114237Snjllists.
6315114237Snjl
6316193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6317126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6318126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6319126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6320126372Snjlversion of the code includes the debug output trace mechanism and
6321193267Sjkimhas a much larger code and data size.  Note that these values will
6322126372Snjlvary depending on the efficiency of the compiler and the compiler
6323126372Snjloptions used during generation.
6324114237Snjl
6325114237Snjl  Previous Release
6326114237Snjl    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
6327114237Snjl    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
6328114237Snjl  Current Release:
6329114237Snjl    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
6330114237Snjl    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
6331114237Snjl
6332114237Snjl
6333114237Snjl2) Linux
6334114237Snjl
6335114237SnjlS3 fixes (Ole Rohne)
6336114237Snjl
6337114237SnjlUpdate ACPI PHP driver with to use new acpi_walk_resource API
6338114237Snjl(Bjorn Helgaas)
6339114237Snjl
6340114237SnjlAdd S4BIOS support (Pavel Machek)
6341114237Snjl
6342114237SnjlMap in entire table before performing checksum (John Stultz)
6343114237Snjl
6344193267SjkimExpand the mem= cmdline to allow the specification of reserved and
6345126372SnjlACPI DATA blocks (Pavel Machek)
6346114237Snjl
6347114237SnjlNever use ACPI on VISWS
6348114237Snjl
6349114237SnjlFix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
6350114237Snjl
6351114237SnjlRevert a change that allowed P_BLK lengths to be 4 or 5. This is
6352114237Snjlcausing us to think that some systems support C2 when they really
6353114237Snjldon't.
6354114237Snjl
6355114237SnjlDo not count processor objects for non-present CPUs (Thanks to
6356114237SnjlDominik Brodowski)
6357114237Snjl
6358114237Snjl
6359114237Snjl3) iASL Compiler:
6360114237Snjl
6361114237SnjlFixed a problem where ASL include files could not be found and
6362114237Snjlopened.
6363114237Snjl
6364114237SnjlAdded support for the _PDC reserved name.
6365114237Snjl
6366114237Snjl
6367117521Snjl----------------------------------------
6368114237Snjl22 January 2003.  Summary of changes for version 20030122.
6369114237Snjl
6370114237Snjl
6371114237Snjl1) ACPI CA Core Subsystem:
6372114237Snjl
6373114237SnjlAdded a check for constructs of the form:  Store (Local0, Local0)
6374114237Snjlwhere Local0 is not initialized.  Apparently, some BIOS
6375193267Sjkimprogrammers believe that this is a NOOP.  Since this store doesn't
6376126372Snjldo anything anyway, the new prototype behavior will ignore this
6377126372Snjlerror.  This is a case where we can relax the strict checking in
6378126372Snjlthe interpreter in the name of compatibility.
6379114237Snjl
6380114237Snjl
6381114237Snjl2) Linux
6382114237Snjl
6383114237SnjlThe AcpiSrc Source Conversion Utility has been released with the
6384114237SnjlLinux package for the first time.  This is the utility that is
6385193267Sjkimused to convert the ACPI CA base source code to the Linux version.
6386114237Snjl
6387114237Snjl(Both) Handle P_BLK lengths shorter than 6 more gracefully
6388114237Snjl
6389114237Snjl(Both) Move more headers to include/acpi, and delete an unused
6390114237Snjlheader.
6391114237Snjl
6392114237Snjl(Both) Move drivers/acpi/include directory to include/acpi
6393114237Snjl
6394114237Snjl(Both) Boot functions don't use cmdline, so don't pass it around
6395114237Snjl
6396114237Snjl(Both) Remove include of unused header (Adrian Bunk)
6397114237Snjl
6398114237Snjl(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
6399114237Snjlthe
6400193267Sjkimformer now also includes the latter, acpiphp.h only needs the one,
6401126372Snjlnow.
6402114237Snjl
6403193267Sjkim(2.5) Make it possible to select method of bios restoring after S3
6404114237Snjlresume. [=> no more ugly ifdefs] (Pavel Machek)
6405114237Snjl
6406114237Snjl(2.5) Make proc write interfaces work (Pavel Machek)
6407114237Snjl
6408114237Snjl(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
6409114237Snjl
6410114237Snjl(2.5) Break out ACPI Perf code into its own module, under cpufreq
6411114237Snjl(Dominik Brodowski)
6412114237Snjl
6413114237Snjl(2.4) S4BIOS support (Ducrot Bruno)
6414114237Snjl
6415114237Snjl(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
6416114237SnjlVisinoni)
6417114237Snjl
6418114237Snjl
6419114237Snjl3) iASL Compiler:
6420114237Snjl
6421114237SnjlAdded support to disassemble SSDT and PSDTs.
6422114237Snjl
6423114237SnjlImplemented support to obtain SSDTs from the Windows registry if
6424114237Snjlavailable.
6425114237Snjl
6426114237Snjl
6427102550Siwasaki----------------------------------------
6428114237Snjl09 January 2003.  Summary of changes for version 20030109.
6429114237Snjl
6430114237Snjl1) ACPI CA Core Subsystem:
6431114237Snjl
6432114237SnjlChanged the behavior of the internal Buffer-to-String conversion
6433193267Sjkimfunction.  The current ACPI specification states that the contents
6434126372Snjlof the buffer are "converted to a string of two-character
6435126372Snjlhexadecimal numbers, each separated by a space".  Unfortunately,
6436193267Sjkimthis definition is not backwards compatible with existing ACPI 1.0
6437193267Sjkimimplementations (although the behavior was not defined in the ACPI
6438126372Snjl1.0 specification).  The new behavior simply copies data from the
6439193267Sjkimbuffer to the string until a null character is found or the end of
6440126372Snjlthe buffer is reached.  The new String object is always null
6441126372Snjlterminated.  This problem was seen during the generation of _BIF
6442126372Snjlbattery data where incorrect strings were returned for battery
6443126372Snjltype, etc.  This will also require an errata to the ACPI
6444126372Snjlspecification.
6445114237Snjl
6446114237SnjlRenamed all instances of NATIVE_UINT and NATIVE_INT to
6447114237SnjlACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
6448114237Snjl
6449114237SnjlCopyright in all module headers (both Linux and non-Linux) has be
6450114237Snjlupdated to 2003.
6451114237Snjl
6452193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6453126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6454126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6455126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6456126372Snjlversion of the code includes the debug output trace mechanism and
6457193267Sjkimhas a much larger code and data size.  Note that these values will
6458126372Snjlvary depending on the efficiency of the compiler and the compiler
6459126372Snjloptions used during generation.
6460114237Snjl
6461114237Snjl  Previous Release
6462114237Snjl    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
6463114237Snjl    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
6464114237Snjl  Current Release:
6465114237Snjl    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
6466114237Snjl    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
6467114237Snjl
6468114237Snjl
6469114237Snjl2) Linux
6470114237Snjl
6471114237SnjlFixed an oops on module insertion/removal (Matthew Tippett)
6472114237Snjl
6473114237Snjl(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
6474114237Snjl
6475114237Snjl(2.5) Replace pr_debug (Randy Dunlap)
6476114237Snjl
6477114237Snjl(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
6478114237Snjl
6479114237Snjl(Both) Eliminate spawning of thread from timer callback, in favor
6480114237Snjlof schedule_work()
6481114237Snjl
6482114237Snjl(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
6483114237Snjl
6484114237Snjl(Both) Added define for Fixed Function HW region (Matthew Wilcox)
6485114237Snjl
6486114237Snjl(Both) Add missing statics to button.c (Pavel Machek)
6487114237Snjl
6488114237SnjlSeveral changes have been made to the source code translation
6489114237Snjlutility that generates the Linux Code in order to make the code
6490114237Snjlmore "Linux-like":
6491114237Snjl
6492114237SnjlAll typedefs on structs and unions have been removed in keeping
6493114237Snjlwith the Linux coding style.
6494114237Snjl
6495114237SnjlRemoved the non-Linux SourceSafe module revision number from each
6496114237Snjlmodule header.
6497114237Snjl
6498114237SnjlCompleted major overhaul of symbols to be lowercased for linux.
6499114237SnjlDoubled the number of symbols that are lowercased.
6500114237Snjl
6501114237SnjlFixed a problem where identifiers within procedure headers and
6502114237Snjlwithin quotes were not fully lower cased (they were left with a
6503114237Snjlstarting capital.)
6504114237Snjl
6505114237SnjlSome C macros whose only purpose is to allow the generation of 16-
6506114237Snjlbit code are now completely removed in the Linux code, increasing
6507114237Snjlreadability and maintainability.
6508114237Snjl
6509114237Snjl----------------------------------------
6510114237Snjl
6511114237Snjl12 December 2002.  Summary of changes for version 20021212.
6512114237Snjl
6513114237Snjl
6514114237Snjl1) ACPI CA Core Subsystem:
6515114237Snjl
6516114237SnjlFixed a problem where the creation of a zero-length AML Buffer
6517114237Snjlwould cause a fault.
6518114237Snjl
6519193267SjkimFixed a problem where a Buffer object that pointed to a static AML
6520126372Snjlbuffer (in an ACPI table) could inadvertently be deleted, causing
6521126372Snjlmemory corruption.
6522114237Snjl
6523114237SnjlFixed a problem where a user buffer (passed in to the external
6524114237SnjlACPI CA interfaces) could be overwritten if the buffer was too
6525114237Snjlsmall to complete the operation, causing memory corruption.
6526114237Snjl
6527114237SnjlFixed a problem in the Buffer-to-String conversion code where a
6528114237Snjlstring of length one was always returned, regardless of the size
6529114237Snjlof the input Buffer object.
6530114237Snjl
6531114237SnjlRemoved the NATIVE_CHAR data type across the entire source due to
6532114237Snjllack of need and lack of consistent use.
6533114237Snjl
6534193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6535126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6536126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6537126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6538126372Snjlversion of the code includes the debug output trace mechanism and
6539193267Sjkimhas a much larger code and data size.  Note that these values will
6540126372Snjlvary depending on the efficiency of the compiler and the compiler
6541126372Snjloptions used during generation.
6542114237Snjl
6543114237Snjl  Previous Release
6544114237Snjl    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
6545114237Snjl    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
6546114237Snjl  Current Release:
6547114237Snjl    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
6548114237Snjl    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
6549114237Snjl
6550114237Snjl
6551114237Snjl----------------------------------------
6552114237Snjl05 December 2002.  Summary of changes for version 20021205.
6553114237Snjl
6554114237Snjl1) ACPI CA Core Subsystem:
6555114237Snjl
6556114237SnjlFixed a problem where a store to a String or Buffer object could
6557114237Snjlcause corruption of the DSDT if the object type being stored was
6558114237Snjlthe same as the target object type and the length of the object
6559114237Snjlbeing stored was equal to or smaller than the original (existing)
6560114237Snjltarget object.  This was seen to cause corruption of battery _BIF
6561114237Snjlbuffers if the _BIF method modified the buffer on the fly.
6562114237Snjl
6563193267SjkimFixed a problem where an internal error was generated if a control
6564126372Snjlmethod invocation was used in an OperationRegion, Buffer, or
6565126372SnjlPackage declaration.  This was caused by the deferred parsing of
6566126372Snjlthe control method and thus the deferred creation of the internal
6567126372Snjlmethod object.  The solution to this problem was to create the
6568126372Snjlinternal method object at the moment the method is encountered in
6569126372Snjlthe first pass - so that subsequent references to the method will
6570126372Snjlable to obtain the required parameter count and thus properly
6571126372Snjlparse the method invocation.  This problem presented itself as an
6572126372SnjlAE_AML_INTERNAL during the pass 1 parse phase during table load.
6573114237Snjl
6574114237SnjlFixed a problem where the internal String object copy routine did
6575193267Sjkimnot always allocate sufficient memory for the target String object
6576126372Snjland caused memory corruption.  This problem was seen to cause
6577126372Snjl"Allocation already present in list!" errors as memory allocation
6578126372Snjlbecame corrupted.
6579114237Snjl
6580193267SjkimImplemented a new function for the evaluation of namespace objects
6581126372Snjlthat allows the specification of the allowable return object
6582126372Snjltypes.  This simplifies a lot of code that checks for a return
6583126372Snjlobject of one or more specific objects returned from the
6584114237Snjlevaluation (such as _STA, etc.)  This may become and external
6585114237Snjlfunction if it would be useful to ACPI-related drivers.
6586114237Snjl
6587114237SnjlCompleted another round of prefixing #defines with "ACPI_" for
6588114237Snjlclarity.
6589114237Snjl
6590114237SnjlCompleted additional code restructuring to allow more modular
6591114237Snjllinking for iASL compiler and AcpiExec.  Several files were split
6592114237Snjlcreating new files.  New files:  nsparse.c dsinit.c evgpe.c
6593114237Snjl
6594114237SnjlImplemented an abort mechanism to terminate an executing control
6595193267Sjkimmethod via the AML debugger.  This feature is useful for debugging
6596126372Snjlcontrol methods that depend (wait) for specific hardware
6597126372Snjlresponses.
6598114237Snjl
6599193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6600126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6601126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6602126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6603126372Snjlversion of the code includes the debug output trace mechanism and
6604193267Sjkimhas a much larger code and data size.  Note that these values will
6605126372Snjlvary depending on the efficiency of the compiler and the compiler
6606126372Snjloptions used during generation.
6607114237Snjl
6608114237Snjl  Previous Release
6609114237Snjl    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
6610114237Snjl    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
6611114237Snjl  Current Release:
6612114237Snjl    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
6613114237Snjl    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
6614114237Snjl
6615114237Snjl
6616114237Snjl2) iASL Compiler/Disassembler
6617114237Snjl
6618114237SnjlFixed a compiler code generation problem for "Interrupt" Resource
6619114237SnjlDescriptors.  If specified in the ASL, the optional "Resource
6620114237SnjlSource Index" and "Resource Source" fields were not inserted into
6621114237Snjlthe correct location within the AML resource descriptor, creating
6622114237Snjlan invalid descriptor.
6623114237Snjl
6624193267SjkimFixed a disassembler problem for "Interrupt" resource descriptors.
6625126372SnjlThe optional "Resource Source Index" and "Resource Source" fields
6626126372Snjlwere ignored.
6627114237Snjl
6628114237Snjl
6629114237Snjl----------------------------------------
6630114237Snjl22 November 2002.  Summary of changes for version 20021122.
6631114237Snjl
6632114237Snjl
6633114237Snjl1) ACPI CA Core Subsystem:
6634114237Snjl
6635114237SnjlFixed a reported problem where an object stored to a Method Local
6636114237Snjlor Arg was not copied to a new object during the store - the
6637114237Snjlobject pointer was simply copied to the Local/Arg.  This caused
6638114237Snjlall subsequent operations on the Local/Arg to also affect the
6639114237Snjloriginal source of the store operation.
6640114237Snjl
6641114237SnjlFixed a problem where a store operation to a Method Local or Arg
6642114237Snjlwas not completed properly if the Local/Arg contained a reference
6643114237Snjl(from RefOf) to a named field.  The general-purpose store-to-
6644114237Snjlnamespace-node code is now used so that this case is handled
6645114237Snjlautomatically.
6646114237Snjl
6647193267SjkimFixed a problem where the internal object copy routine would cause
6648126372Snjla protection fault if the object being copied was a Package and
6649126372Snjlcontained either 1) a NULL package element or 2) a nested sub-
6650114237Snjlpackage.
6651114237Snjl
6652114237SnjlFixed a problem with the GPE initialization that resulted from an
6653114237Snjlambiguity in the ACPI specification.  One section of the
6654114237Snjlspecification states that both the address and length of the GPE
6655193267Sjkimblock must be zero if the block is not supported.  Another section
6656126372Snjlimplies that only the address need be zero if the block is not
6657193267Sjkimsupported.  The code has been changed so that both the address and
6658126372Snjlthe length must be non-zero to indicate a valid GPE block (i.e.,
6659126372Snjlif either the address or the length is zero, the GPE block is
6660126372Snjlinvalid.)
6661114237Snjl
6662193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6663126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6664126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6665126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6666126372Snjlversion of the code includes the debug output trace mechanism and
6667193267Sjkimhas a much larger code and data size.  Note that these values will
6668126372Snjlvary depending on the efficiency of the compiler and the compiler
6669126372Snjloptions used during generation.
6670114237Snjl
6671114237Snjl  Previous Release
6672114237Snjl    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
6673114237Snjl    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
6674114237Snjl  Current Release:
6675114237Snjl    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
6676114237Snjl    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
6677114237Snjl
6678114237Snjl
6679114237Snjl2) Linux
6680114237Snjl
6681114237SnjlCleaned up EC driver. Exported an external EC read/write
6682114237Snjlinterface. By going through this, other drivers (most notably
6683114237Snjlsonypi) will be able to serialize access to the EC.
6684114237Snjl
6685114237Snjl
6686114237Snjl3) iASL Compiler/Disassembler
6687114237Snjl
6688114237SnjlImplemented support to optionally generate include files for both
6689114237SnjlASM and C (the -i switch).  This simplifies BIOS development by
6690114237Snjlautomatically creating include files that contain external
6691114237Snjldeclarations for the symbols that are created within the
6692167802Sjkim
6693114237Snjl(optionally generated) ASM and C AML source files.
6694114237Snjl
6695114237Snjl
6696114237Snjl----------------------------------------
6697107325Siwasaki15 November 2002.  Summary of changes for version 20021115.
6698104470Siwasaki
6699107325Siwasaki1) ACPI CA Core Subsystem:
6700107325Siwasaki
6701114237SnjlFixed a memory leak problem where an error during resolution of
6702167802Sjkim
6703114237Snjlmethod arguments during a method invocation from another method
6704114237Snjlfailed to cleanup properly by deleting all successfully resolved
6705114237Snjlargument objects.
6706107325Siwasaki
6707114237SnjlFixed a problem where the target of the Index() operator was not
6708114237Snjlcorrectly constructed if the source object was a package.  This
6709114237Snjlproblem has not been detected because the use of a target operand
6710114237Snjlwith Index() is very rare.
6711107325Siwasaki
6712107325SiwasakiFixed a problem with the Index() operator where an attempt was
6713107325Siwasakimade to delete the operand objects twice.
6714107325Siwasaki
6715107325SiwasakiFixed a problem where an attempt was made to delete an operand
6716114237Snjltwice during execution of the CondRefOf() operator if the target
6717114237Snjldid not exist.
6718107325Siwasaki
6719114237SnjlImplemented the first of perhaps several internal create object
6720193267Sjkimfunctions that create and initialize a specific object type.  This
6721126372Snjlconsolidates duplicated code wherever the object is created, thus
6722126372Snjlshrinking the size of the subsystem.
6723107325Siwasaki
6724114237SnjlImplemented improved debug/error messages for errors that occur
6725114237Snjlduring nested method invocations.  All executing method pathnames
6726193267Sjkimare displayed (with the error) as the call stack is unwound - thus
6727126372Snjlsimplifying debug.
6728107325Siwasaki
6729107325SiwasakiFixed a problem introduced in the 10/02 release that caused
6730114237Snjlpremature deletion of a buffer object if a buffer was used as an
6731114237SnjlASL operand where an integer operand is required (Thus causing an
6732193267Sjkimimplicit object conversion from Buffer to Integer.)  The change in
6733126372Snjlthe 10/02 release was attempting to fix a memory leak (albeit
6734114237Snjlincorrectly.)
6735107325Siwasaki
6736193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6737126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6738126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6739126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6740126372Snjlversion of the code includes the debug output trace mechanism and
6741193267Sjkimhas a much larger code and data size.  Note that these values will
6742126372Snjlvary depending on the efficiency of the compiler and the compiler
6743126372Snjloptions used during generation.
6744107325Siwasaki
6745107325Siwasaki  Previous Release
6746107325Siwasaki    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
6747107325Siwasaki    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
6748107325Siwasaki  Current Release:
6749107325Siwasaki    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
6750107325Siwasaki    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
6751107325Siwasaki
6752107325Siwasaki
6753107325Siwasaki2) Linux
6754107325Siwasaki
6755114237SnjlChanged the implementation of the ACPI semaphores to use down()
6756114237Snjlinstead of down_interruptable().  It is important that the
6757114237Snjlexecution of ACPI control methods not be interrupted by signals.
6758114237SnjlMethods must run to completion, or the system may be left in an
6759114237Snjlunknown/unstable state.
6760107325Siwasaki
6761193267SjkimFixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
6762126372Snjl(Shawn Starr)
6763107325Siwasaki
6764107325Siwasaki
6765107325Siwasaki3) iASL Compiler/Disassembler
6766107325Siwasaki
6767107325Siwasaki
6768114237SnjlChanged the default location of output files.  All output files
6769114237Snjlare now placed in the current directory by default instead of in
6770114237Snjlthe directory of the source file.  This change may affect some
6771114237Snjlexisting makefiles, but it brings the behavior of the compiler in
6772114237Snjlline with other similar tools.  The location of the output files
6773114237Snjlcan be overridden with the -p command line switch.
6774107325Siwasaki
6775114237Snjl
6776107325Siwasaki----------------------------------------
6777107325Siwasaki11 November 2002.  Summary of changes for version 20021111.
6778107325Siwasaki
6779107325Siwasaki
6780114237Snjl0) ACPI Specification 2.0B is released and is now available at:
6781114237Snjlhttp://www.acpi.info/index.html
6782107325Siwasaki
6783107325Siwasaki
6784107325Siwasaki1) ACPI CA Core Subsystem:
6785107325Siwasaki
6786107325SiwasakiImplemented support for the ACPI 2.0 SMBus Operation Regions.
6787114237SnjlThis includes the early detection and handoff of the request to
6788114237Snjlthe SMBus region handler (avoiding all of the complex field
6789107325Siwasakisupport code), and support for the bidirectional return packet
6790107325Siwasakifrom an SMBus write operation.  This paves the way for the
6791107325Siwasakidevelopment of SMBus drivers in each host operating system.
6792107325Siwasaki
6793107325SiwasakiFixed a problem where the semaphore WAIT_FOREVER constant was
6794107325Siwasakidefined as 32 bits, but must be 16 bits according to the ACPI
6795107325Siwasakispecification.  This had the side effect of causing ASL
6796107325SiwasakiMutex/Event timeouts even though the ASL code requested a wait
6797107325Siwasakiforever.  Changed all internal references to the ACPI timeout
6798193267Sjkimparameter to 16 bits to prevent future problems.  Changed the name
6799126372Snjlof WAIT_FOREVER to ACPI_WAIT_FOREVER.
6800107325Siwasaki
6801193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6802126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6803126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6804126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6805126372Snjlversion of the code includes the debug output trace mechanism and
6806193267Sjkimhas a much larger code and data size.  Note that these values will
6807126372Snjlvary depending on the efficiency of the compiler and the compiler
6808126372Snjloptions used during generation.
6809107325Siwasaki
6810107325Siwasaki  Previous Release
6811107325Siwasaki    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
6812107325Siwasaki    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
6813107325Siwasaki  Current Release:
6814107325Siwasaki    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
6815107325Siwasaki    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
6816107325Siwasaki
6817107325Siwasaki
6818107325Siwasaki2) Linux
6819107325Siwasaki
6820107325SiwasakiModule loading/unloading fixes (John Cagle)
6821107325Siwasaki
6822107325Siwasaki
6823107325Siwasaki3) iASL Compiler/Disassembler
6824107325Siwasaki
6825107325SiwasakiAdded support for the SMBBlockProcessCall keyword (ACPI 2.0)
6826107325Siwasaki
6827107325SiwasakiImplemented support for the disassembly of all SMBus protocol
6828107325Siwasakikeywords (SMBQuick, SMBWord, etc.)
6829107325Siwasaki
6830107325Siwasaki----------------------------------------
6831107325Siwasaki01 November 2002.  Summary of changes for version 20021101.
6832107325Siwasaki
6833107325Siwasaki
6834107325Siwasaki1) ACPI CA Core Subsystem:
6835107325Siwasaki
6836193267SjkimFixed a problem where platforms that have a GPE1 block but no GPE0
6837126372Snjlblock were not handled correctly.  This resulted in a "GPE
6838114237Snjloverlap" error message.  GPE0 is no longer required.
6839107325Siwasaki
6840107325SiwasakiRemoved code added in the previous release that inserted nodes
6841114237Snjlinto the namespace in alphabetical order.  This caused some side-
6842114237Snjleffects on various machines.  The root cause of the problem is
6843114237Snjlstill under investigation since in theory, the internal ordering
6844114237Snjlof the namespace nodes should not matter.
6845107325Siwasaki
6846107325Siwasaki
6847114237SnjlEnhanced error reporting for the case where a named object is not
6848114237Snjlfound during control method execution.  The full ACPI namepath
6849114237Snjl(name reference) of the object that was not found is displayed in
6850114237Snjlthis case.
6851107325Siwasaki
6852193267SjkimNote: as a result of the overhaul of the namespace object types in
6853126372Snjlthe previous release, the namespace nodes for the predefined
6854114237Snjlscopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
6855114237Snjlinstead of ACPI_TYPE_ANY.  This simplifies the namespace
6856114237Snjlmanagement code but may affect code that walks the namespace tree
6857114237Snjllooking for specific object types.
6858114237Snjl
6859193267SjkimCode and Data Size: Current core subsystem library sizes are shown
6860126372Snjlbelow.  These are the code and data sizes for the acpica.lib
6861126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
6862126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
6863126372Snjlversion of the code includes the debug output trace mechanism and
6864193267Sjkimhas a much larger code and data size.  Note that these values will
6865126372Snjlvary depending on the efficiency of the compiler and the compiler
6866126372Snjloptions used during generation.
6867107325Siwasaki
6868107325Siwasaki  Previous Release
6869107325Siwasaki    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
6870107325Siwasaki    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
6871107325Siwasaki  Current Release:
6872107325Siwasaki    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
6873107325Siwasaki    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
6874107325Siwasaki
6875107325Siwasaki
6876107325Siwasaki2) Linux
6877107325Siwasaki
6878107325SiwasakiFixed a problem introduced in the previous release where the
6879193267SjkimProcessor and Thermal objects were not recognized and installed in
6880193267Sjkim/proc.  This was related to the scope type change described above.
6881107325Siwasaki
6882107325Siwasaki
6883107325Siwasaki3) iASL Compiler/Disassembler
6884107325Siwasaki
6885114237SnjlImplemented the -g option to get all of the required ACPI tables
6886114237Snjlfrom the registry and save them to files (Windows version of the
6887193267Sjkimcompiler only.)  The required tables are the FADT, FACS, and DSDT.
6888107325Siwasaki
6889114237SnjlAdded ACPI table checksum validation during table disassembly in
6890114237Snjlorder to catch corrupted tables.
6891107325Siwasaki
6892107325Siwasaki
6893107325Siwasaki----------------------------------------
6894107325Siwasaki22 October 2002.  Summary of changes for version 20021022.
6895107325Siwasaki
6896107325Siwasaki1) ACPI CA Core Subsystem:
6897107325Siwasaki
6898114237SnjlImplemented a restriction on the Scope operator that the target
6899114237Snjlmust already exist in the namespace at the time the operator is
6900114237Snjlencountered (during table load or method execution).  In other
6901114237Snjlwords, forward references are not allowed and Scope() cannot
6902114237Snjlcreate a new object. This changes the previous behavior where the
6903193267Sjkiminterpreter would create the name if not found.  This new behavior
6904126372Snjlcorrectly enables the search-to-root algorithm during namespace
6905126372Snjllookup of the target name.  Because of this upsearch, this fixes
6906126372Snjlthe known Compaq _SB_.OKEC problem and makes both the AML
6907126372Snjlinterpreter and iASL compiler compatible with other ACPI
6908114237Snjlimplementations.
6909107325Siwasaki
6910114237SnjlCompleted a major overhaul of the internal ACPI object types for
6911114237Snjlthe ACPI Namespace and the associated operand objects.  Many of
6912114237Snjlthese types had become obsolete with the introduction of the two-
6913114237Snjlpass namespace load.  This cleanup simplifies the code and makes
6914114237Snjlthe entire namespace load mechanism much clearer and easier to
6915114237Snjlunderstand.
6916107325Siwasaki
6917114237SnjlImproved debug output for tracking scope opening/closing to help
6918114237Snjldiagnose scoping issues.  The old scope name as well as the new
6919114237Snjlscope name are displayed.  Also improved error messages for
6920114237Snjlproblems with ASL Mutex objects and error messages for GPE
6921114237Snjlproblems.
6922107325Siwasaki
6923107325SiwasakiCleaned up the namespace dump code, removed obsolete code.
6924107325Siwasaki
6925114237SnjlAll string output (for all namespace/object dumps) now uses the
6926193267Sjkimcommon ACPI string output procedure which handles escapes properly
6927126372Snjland does not emit non-printable characters.
6928107325Siwasaki
6929107325SiwasakiFixed some issues with constants in the 64-bit version of the
6930107325Siwasakilocal C library (utclib.c)
6931107325Siwasaki
6932107325Siwasaki
6933107325Siwasaki2) Linux
6934107325Siwasaki
6935107325SiwasakiEC Driver:  No longer attempts to acquire the Global Lock at
6936107325Siwasakiinterrupt level.
6937107325Siwasaki
6938107325Siwasaki
6939107325Siwasaki3) iASL Compiler/Disassembler
6940107325Siwasaki
6941193267SjkimImplemented ACPI 2.0B grammar change that disallows all Type 1 and
6942126372Snjl2 opcodes outside of a control method.  This means that the
6943114237Snjl"executable" operators (versus the "namespace" operators) cannot
6944193267Sjkimbe used at the table level; they can only be used within a control
6945126372Snjlmethod.
6946107325Siwasaki
6947107325SiwasakiImplemented the restriction on the Scope() operator where the
6948107325Siwasakitarget must already exist in the namespace at the time the
6949114237Snjloperator is encountered (during ASL compilation). In other words,
6950193267Sjkimforward references are not allowed and Scope() cannot create a new
6951126372Snjlobject.  This makes the iASL compiler compatible with other ACPI
6952193267Sjkimimplementations and makes the Scope() implementation adhere to the
6953126372SnjlACPI specification.
6954107325Siwasaki
6955193267SjkimFixed a problem where namepath optimization for the Alias operator
6956193267Sjkimwas optimizing the wrong path (of the two namepaths.)  This caused
6957126372Snjla "Missing alias link" error message.
6958107325Siwasaki
6959114237SnjlFixed a problem where an "unknown reserved name" warning could be
6960114237Snjlincorrectly generated for names like "_SB" when the trailing
6961114237Snjlunderscore is not used in the original ASL.
6962107325Siwasaki
6963107325SiwasakiFixed a problem where the reserved name check did not handle
6964114237SnjlNamePaths with multiple NameSegs correctly.  The first nameseg of
6965114237Snjlthe NamePath was examined instead of the last NameSeg.
6966107325Siwasaki
6967107325Siwasaki
6968107325Siwasaki----------------------------------------
6969107325Siwasaki
6970104470Siwasaki02 October 2002.  Summary of changes for this release.
6971104470Siwasaki
6972104470Siwasaki
6973104470Siwasaki1) ACPI CA Core Subsystem version 20021002:
6974104470Siwasaki
6975104470SiwasakiFixed a problem where a store/copy of a string to an existing
6976193267Sjkimstring did not always set the string length properly in the String
6977126372Snjlobject.
6978104470Siwasaki
6979104470SiwasakiFixed a reported problem with the ToString operator where the
6980193267Sjkimbehavior was identical to the ToHexString operator instead of just
6981126372Snjlsimply converting a raw buffer to a string data type.
6982104470Siwasaki
6983104470SiwasakiFixed a problem where CopyObject and the other "explicit"
6984193267Sjkimconversion operators were not updating the internal namespace node
6985126372Snjltype as part of the store operation.
6986104470Siwasaki
6987104470SiwasakiFixed a memory leak during implicit source operand conversion
6988193267Sjkimwhere the original object was not deleted if it was converted to a
6989126372Snjlnew object of a different type.
6990104470Siwasaki
6991193267SjkimEnhanced error messages for all problems associated with namespace
6992193267Sjkimlookups.  Common procedure generates and prints the lookup name as
6993126372Snjlwell as the formatted status.
6994104470Siwasaki
6995104470SiwasakiCompleted implementation of a new design for the Alias support
6996193267Sjkimwithin the namespace.  The existing design did not handle the case
6997193267Sjkimwhere a new object was assigned to one of the two names due to the
6998193267Sjkimuse of an explicit conversion operator, resulting in the two names
6999126372Snjlpointing to two different objects.  The new design simply points
7000126372Snjlthe Alias name to the original name node - not to the object.
7001193267SjkimThis results in a level of indirection that must be handled in the
7002126372Snjlname resolution mechanism.
7003104470Siwasaki
7004193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7005126372Snjlbelow.  These are the code and data sizes for the acpica.lib
7006126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7007126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7008126372Snjlversion of the code includes the debug output trace mechanism and
7009193267Sjkimhas a larger code and data size.  Note that these values will vary
7010126372Snjldepending on the efficiency of the compiler and the compiler
7011126372Snjloptions used during generation.
7012104470Siwasaki
7013104470Siwasaki  Previous Release
7014104470Siwasaki    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
7015104470Siwasaki    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
7016104470Siwasaki  Current Release:
7017104470Siwasaki    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
7018104470Siwasaki    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
7019104470Siwasaki
7020104470Siwasaki
7021104470Siwasaki2) Linux
7022104470Siwasaki
7023104470SiwasakiInitialize thermal driver's timer before it is used. (Knut
7024104470SiwasakiNeumann)
7025104470Siwasaki
7026104470SiwasakiAllow handling negative celsius values. (Kochi Takayoshi)
7027104470Siwasaki
7028114237SnjlFix thermal management and make trip points. R/W (Pavel Machek)
7029104470Siwasaki
7030104470SiwasakiFix /proc/acpi/sleep. (P. Christeas)
7031104470Siwasaki
7032104470SiwasakiIA64 fixes. (David Mosberger)
7033104470Siwasaki
7034104470SiwasakiFix reversed logic in blacklist code. (Sergio Monteiro Basto)
7035104470Siwasaki
7036104470SiwasakiReplace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
7037104470SiwasakiBrodowski)
7038104470Siwasaki
7039104470Siwasaki
7040104470Siwasaki3) iASL Compiler/Disassembler
7041104470Siwasaki
7042104470SiwasakiClarified some warning/error messages.
7043104470Siwasaki
7044104470Siwasaki
7045104470Siwasaki----------------------------------------
7046104470Siwasaki18 September 2002.  Summary of changes for this release.
7047104470Siwasaki
7048104470Siwasaki
7049104470Siwasaki1) ACPI CA Core Subsystem version 20020918:
7050104470Siwasaki
7051114237SnjlFixed a reported problem with reference chaining (via the Index()
7052193267Sjkimand RefOf() operators) in the ObjectType() and SizeOf() operators.
7053126372SnjlThe definition of these operators includes the dereferencing of
7054126372Snjlall chained references to return information on the base object.
7055104470Siwasaki
7056104470SiwasakiFixed a problem with stores to indexed package elements - the
7057104470Siwasakiexisting code would not complete the store if an "implicit
7058114237Snjlconversion" was not performed.  In other words, if the existing
7059114237Snjlobject (package element) was to be replaced completely, the code
7060114237Snjldidn't handle this case.
7061104470Siwasaki
7062104470SiwasakiRelaxed typechecking on the ASL "Scope" operator to allow the
7063104470Siwasakitarget name to refer to an object of type Integer, String, or
7064104470SiwasakiBuffer, in addition to the scoping object types (Device,
7065104470Siwasakipredefined Scopes, Processor, PowerResource, and ThermalZone.)
7066114237SnjlThis allows existing AML code that has workarounds for a bug in
7067193267SjkimWindows to function properly.  A warning is issued, however.  This
7068126372Snjlaffects both the AML interpreter and the iASL compiler. Below is
7069126372Snjlan example of this type of ASL code:
7070104470Siwasaki
7071104470Siwasaki      Name(DEB,0x00)
7072104470Siwasaki      Scope(DEB)
7073104470Siwasaki      {
7074104470Siwasaki
7075114237SnjlFixed some reported problems with 64-bit integer support in the
7076114237Snjllocal implementation of C library functions (clib.c)
7077104470Siwasaki
7078104470Siwasaki
7079104470Siwasaki2) Linux
7080104470Siwasaki
7081104470SiwasakiUse ACPI fix map region instead of IOAPIC region, since it is
7082104470Siwasakiundefined in non-SMP.
7083104470Siwasaki
7084114237SnjlEnsure that the SCI has the proper polarity and trigger, even on
7085114237Snjlsystems that do not have an interrupt override entry in the MADT.
7086104470Siwasaki
7087104470Siwasaki2.5 big driver reorganization (Pat Mochel)
7088104470Siwasaki
7089104470SiwasakiUse early table mapping code from acpitable.c (Andi Kleen)
7090104470Siwasaki
7091104470SiwasakiNew blacklist entries (Andi Kleen)
7092104470Siwasaki
7093114237SnjlBlacklist improvements. Split blacklist code out into a separate
7094114237Snjlfile. Move checking the blacklist to very early. Previously, we
7095114237Snjlwould use ACPI tables, and then halfway through init, check the
7096114237Snjlblacklist -- too late. Now, it's early enough to completely fall-
7097114237Snjlback to non-ACPI.
7098104470Siwasaki
7099104470Siwasaki
7100104470Siwasaki3) iASL Compiler/Disassembler version 20020918:
7101104470Siwasaki
7102114237SnjlFixed a problem where the typechecking code didn't know that an
7103114237Snjlalias could point to a method.  In other words, aliases were not
7104114237Snjlbeing dereferenced during typechecking.
7105104470Siwasaki
7106104470Siwasaki
7107104470Siwasaki----------------------------------------
7108104470Siwasaki29 August 2002.  Summary of changes for this release.
7109104470Siwasaki
7110104470Siwasaki1) ACPI CA Core Subsystem Version 20020829:
7111104470Siwasaki
7112114237SnjlIf the target of a Scope() operator already exists, it must be an
7113114237Snjlobject type that actually opens a scope -- such as a Device,
7114193267SjkimMethod, Scope, etc.  This is a fatal runtime error.  Similar error
7115126372Snjlcheck has been added to the iASL compiler also.
7116104470Siwasaki
7117114237SnjlTightened up the namespace load to disallow multiple names in the
7118114237Snjlsame scope.  This previously was allowed if both objects were of
7119114237Snjlthe same type.  (i.e., a lookup was the same as entering a new
7120114237Snjlname).
7121104470Siwasaki
7122104470Siwasaki
7123104470Siwasaki2) Linux
7124104470Siwasaki
7125104470SiwasakiEnsure that the ACPI interrupt has the proper trigger and
7126104470Siwasakipolarity.
7127104470Siwasaki
7128104470Siwasakilocal_irq_disable is extraneous. (Matthew Wilcox)
7129104470Siwasaki
7130104470SiwasakiMake "acpi=off" actually do what it says, and not use the ACPI
7131104470Siwasakiinterpreter *or* the tables.
7132104470Siwasaki
7133193267SjkimAdded arch-neutral support for parsing SLIT and SRAT tables (Kochi
7134126372SnjlTakayoshi)
7135104470Siwasaki
7136104470Siwasaki
7137104470Siwasaki3) iASL Compiler/Disassembler  Version 20020829:
7138104470Siwasaki
7139104470SiwasakiImplemented namepath optimization for name declarations.  For
7140104470Siwasakiexample, a declaration like "Method (\_SB_.ABCD)" would get
7141104470Siwasakioptimized to "Method (ABCD)" if the declaration is within the
7142104470Siwasaki\_SB_ scope.  This optimization is in addition to the named
7143104470Siwasakireference path optimization first released in the previous
7144114237Snjlversion. This would seem to complete all possible optimizations
7145114237Snjlfor namepaths within the ASL/AML.
7146104470Siwasaki
7147114237SnjlIf the target of a Scope() operator already exists, it must be an
7148114237Snjlobject type that actually opens a scope -- such as a Device,
7149114237SnjlMethod, Scope, etc.
7150104470Siwasaki
7151114237SnjlImplemented a check and warning for unreachable code in the same
7152114237Snjlblock below a Return() statement.
7153104470Siwasaki
7154114237SnjlFixed a problem where the listing file was not generated if the
7155114237Snjlcompiler aborted if the maximum error count was exceeded (200).
7156104470Siwasaki
7157193267SjkimFixed a problem where the typechecking of method return values was
7158126372Snjlbroken.  This includes the check for a return value when the
7159114237Snjlmethod is invoked as a TermArg (a return value is expected.)
7160104470Siwasaki
7161104470SiwasakiFixed a reported problem where EOF conditions during a quoted
7162104470Siwasakistring or comment caused a fault.
7163104470Siwasaki
7164104470Siwasaki
7165104470Siwasaki----------------------------------------
7166102550Siwasaki15 August 2002.  Summary of changes for this release.
7167102550Siwasaki
7168102550Siwasaki1) ACPI CA Core Subsystem Version 20020815:
7169102550Siwasaki
7170114237SnjlFixed a reported problem where a Store to a method argument that
7171193267Sjkimcontains a reference did not perform the indirect store correctly.
7172126372SnjlThis problem was created during the conversion to the new
7173126372Snjlreference object model - the indirect store to a method argument
7174126372Snjlcode was not updated to reflect the new model.
7175102550Siwasaki
7176114237SnjlReworked the ACPI mode change code to better conform to ACPI 2.0,
7177193267Sjkimhandle corner cases, and improve code legibility (Kochi Takayoshi)
7178102550Siwasaki
7179102550SiwasakiFixed a problem with the pathname parsing for the carat (^)
7180114237Snjlprefix.  The heavy use of the carat operator by the new namepath
7181193267Sjkimoptimization in the iASL compiler uncovered a problem with the AML
7182126372Snjlinterpreter handling of this prefix.  In the case where one or
7183126372Snjlmore carats precede a single nameseg, the nameseg was treated as
7184126372Snjlstandalone and the search rule (to root) was inadvertently
7185114237Snjlapplied.  This could cause both the iASL compiler and the
7186114237Snjlinterpreter to find the wrong object or to miss the error that
7187114237Snjlshould occur if the object does not exist at that exact pathname.
7188102550Siwasaki
7189114237SnjlFound and fixed the problem where the HP Pavilion DSDT would not
7190193267Sjkimload.  This was a relatively minor tweak to the table loading code
7191126372Snjl(a problem caused by the unexpected encounter with a method
7192193267Sjkiminvocation not within a control method), but it does not solve the
7193126372Snjloverall issue of the execution of AML code at the table level.
7194126372SnjlThis investigation is still ongoing.
7195102550Siwasaki
7196193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7197126372Snjlbelow.  These are the code and data sizes for the acpica.lib
7198126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7199126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7200126372Snjlversion of the code includes the debug output trace mechanism and
7201193267Sjkimhas a larger code and data size.  Note that these values will vary
7202126372Snjldepending on the efficiency of the compiler and the compiler
7203126372Snjloptions used during generation.
7204102550Siwasaki
7205102550Siwasaki  Previous Release
7206104470Siwasaki    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
7207104470Siwasaki    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
7208102550Siwasaki  Current Release:
7209104470Siwasaki    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
7210104470Siwasaki    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
7211102550Siwasaki
7212102550Siwasaki
7213102550Siwasaki2) Linux
7214102550Siwasaki
7215102550SiwasakiRemove redundant slab.h include (Brad Hards)
7216102550Siwasaki
7217102550SiwasakiFix several bugs in thermal.c (Herbert Nachtnebel)
7218102550Siwasaki
7219102550SiwasakiMake CONFIG_ACPI_BOOT work properly (Pavel Machek)
7220102550Siwasaki
7221104470SiwasakiChange acpi_system_suspend to use updated irq functions (Pavel
7222104470SiwasakiMachek)
7223102550Siwasaki
7224102550SiwasakiExport acpi_get_firmware_table (Matthew Wilcox)
7225102550Siwasaki
7226102550SiwasakiUse proper root proc entry for ACPI (Kochi Takayoshi)
7227102550Siwasaki
7228102550SiwasakiFix early-boot table parsing (Bjorn Helgaas)
7229102550Siwasaki
7230102550Siwasaki
7231102550Siwasaki3) iASL Compiler/Disassembler
7232102550Siwasaki
7233114237SnjlReworked the compiler options to make them more consistent and to
7234114237Snjluse two-letter options where appropriate.  We were running out of
7235114237Snjlsensible letters.   This may break some makefiles, so check the
7236114237Snjlcurrent options list by invoking the compiler with no parameters.
7237102550Siwasaki
7238102550SiwasakiCompleted the design and implementation of the ASL namepath
7239114237Snjloptimization option for the compiler.  This option optimizes all
7240114237Snjlreferences to named objects to the shortest possible path.  The
7241193267Sjkimfirst attempt tries to utilize a single nameseg (4 characters) and
7242126372Snjlthe "search-to-root" algorithm used by the interpreter.  If that
7243126372Snjlcannot be used (because either the name is not in the search path
7244126372Snjlor there is a conflict with another object with the same name),
7245126372Snjlthe pathname is optimized using the carat prefix (usually a
7246126372Snjlshorter string than specifying the entire path from the root.)
7247102550Siwasaki
7248114237SnjlImplemented support to obtain the DSDT from the Windows registry
7249114237Snjl(when the disassembly option is specified with no input file).
7250114237SnjlAdded this code as the implementation for AcpiOsTableOverride in
7251114237Snjlthe Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
7252114237Snjlutility) to scan memory for the DSDT to the AcpiOsTableOverride
7253114237Snjlfunction in the DOS OSL to make the disassembler truly OS
7254114237Snjlindependent.
7255102550Siwasaki
7256114237SnjlImplemented a new option to disassemble and compile in one step.
7257114237SnjlWhen used without an input filename, this option will grab the
7258193267SjkimDSDT from the local machine, disassemble it, and compile it in one
7259126372Snjlstep.
7260102550Siwasaki
7261114237SnjlAdded a warning message for invalid escapes (a backslash followed
7262114237Snjlby any character other than the allowable escapes).  This catches
7263114237Snjlthe quoted string error "\_SB_" (which should be "\\_SB_" ).
7264167802Sjkim
7265193267SjkimAlso, there are numerous instances in the ACPI specification where
7266126372Snjlthis error occurs.
7267102550Siwasaki
7268104470SiwasakiAdded a compiler option to disable all optimizations.  This is
7269114237Snjlbasically the "compatibility mode" because by using this option,
7270114237Snjlthe AML code will come out exactly the same as other ASL
7271114237Snjlcompilers.
7272102550Siwasaki
7273114237SnjlAdded error messages for incorrectly ordered dependent resource
7274114237Snjlfunctions.  This includes: missing EndDependentFn macro at end of
7275114237Snjldependent resource list, nested dependent function macros (both
7276114237Snjlstart and end), and missing StartDependentFn macro.  These are
7277114237Snjlcommon errors that should be caught at compile time.
7278102550Siwasaki
7279114237SnjlImplemented _OSI support for the disassembler and compiler.  _OSI
7280114237Snjlmust be included in the namespace for proper disassembly (because
7281114237Snjlthe disassembler must know the number of arguments.)
7282102550Siwasaki
7283104470SiwasakiAdded an "optimization" message type that is optional (off by
7284114237Snjldefault).  This message is used for all optimizations - including
7285193267Sjkimconstant folding, integer optimization, and namepath optimization.
7286102550Siwasaki
7287102550Siwasaki----------------------------------------
7288102550Siwasaki25 July 2002.  Summary of changes for this release.
7289102550Siwasaki
7290102550Siwasaki
7291102550Siwasaki1) ACPI CA Core Subsystem Version 20020725:
7292102550Siwasaki
7293114237SnjlThe AML Disassembler has been enhanced to produce compilable ASL
7294193267Sjkimcode and has been integrated into the iASL compiler (see below) as
7295126372Snjlwell as the single-step disassembly for the AML debugger and the
7296126372Snjldisassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
7297126372Snjlresource templates and macros are fully supported.  The
7298114237Snjldisassembler has been tested on over 30 different AML files,
7299114237Snjlproducing identical AML when the resulting disassembled ASL file
7300114237Snjlis recompiled with the same ASL compiler.
7301102550Siwasaki
7302114237SnjlModified the Resource Manager to allow zero interrupts and zero
7303114237Snjldma channels during the GetCurrentResources call.  This was
7304114237Snjlcausing problems on some platforms.
7305102550Siwasaki
7306114237SnjlAdded the AcpiOsRedirectOutput interface to the OSL to simplify
7307114237Snjloutput redirection for the AcpiOsPrintf and AcpiOsVprintf
7308114237Snjlinterfaces.
7309102550Siwasaki
7310193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7311126372Snjlbelow.  These are the code and data sizes for the acpica.lib
7312126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7313126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7314126372Snjlversion of the code includes the debug output trace mechanism and
7315193267Sjkimhas a larger code and data size.  Note that these values will vary
7316126372Snjldepending on the efficiency of the compiler and the compiler
7317126372Snjloptions used during generation.
7318102550Siwasaki
7319102550Siwasaki  Previous Release
7320104470Siwasaki    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
7321104470Siwasaki    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
7322102550Siwasaki  Current Release:
7323104470Siwasaki    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
7324104470Siwasaki    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
7325102550Siwasaki
7326102550Siwasaki
7327102550Siwasaki2) Linux
7328102550Siwasaki
7329102550SiwasakiFixed a panic in the EC driver (Dominik Brodowski)
7330102550Siwasaki
7331114237SnjlImplemented checksum of the R/XSDT itself during Linux table scan
7332114237Snjl(Richard Schaal)
7333102550Siwasaki
7334102550Siwasaki
7335102550Siwasaki3) iASL compiler
7336102550Siwasaki
7337114237SnjlThe AML disassembler is integrated into the compiler.  The "-d"
7338114237Snjloption invokes the disassembler  to completely disassemble an
7339114237Snjlinput AML file, producing as output a text ASL file with the
7340114237Snjlextension ".dsl" (to avoid name collisions with existing .asl
7341114237Snjlsource files.)  A future enhancement will allow the disassembler
7342114237Snjlto obtain the BIOS DSDT from the registry under Windows.
7343102550Siwasaki
7344102550SiwasakiFixed a problem with the VendorShort and VendorLong resource
7345102550Siwasakidescriptors where an invalid AML sequence was created.
7346102550Siwasaki
7347114237SnjlImplemented a fix for BufferData term in the ASL parser.  It was
7348114237Snjlinadvertently defined twice, allowing invalid syntax to pass and
7349114237Snjlcausing reduction conflicts.
7350102550Siwasaki
7351104470SiwasakiFixed a problem where the Ones opcode could get converted to a
7352193267Sjkimvalue of zero if "Ones" was used where a byte, word or dword value
7353126372Snjlwas expected.  The 64-bit value is now truncated to the correct
7354126372Snjlsize with the correct value.
7355102550Siwasaki
7356102550Siwasaki
7357167802Sjkim
7358102550Siwasaki----------------------------------------
7359102550Siwasaki02 July 2002.  Summary of changes for this release.
7360102550Siwasaki
7361102550Siwasaki
7362102550Siwasaki1) ACPI CA Core Subsystem Version 20020702:
7363102550Siwasaki
7364114237SnjlThe Table Manager code has been restructured to add several new
7365114237Snjlfeatures.  Tables that are not required by the core subsystem
7366114237Snjl(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
7367193267Sjkimvalidated in any way and are returned from AcpiGetFirmwareTable if
7368126372Snjlrequested.  The AcpiOsTableOverride interface is now called for
7369126372Snjleach table that is loaded by the subsystem in order to allow the
7370126372Snjlhost to override any table it chooses.  Previously, only the DSDT
7371126372Snjlcould be overridden.  Added one new files, tbrsdt.c and
7372114237Snjltbgetall.c.
7373102550Siwasaki
7374193267SjkimFixed a problem with the conversion of internal package objects to
7375126372Snjlexternal objects (when a package is returned from a control
7376114237Snjlmethod.)  The return buffer length was set to zero instead of the
7377114237Snjlproper length of the package object.
7378102550Siwasaki
7379104470SiwasakiFixed a reported problem with the use of the RefOf and DeRefOf
7380114237Snjloperators when passing reference arguments to control methods.  A
7381114237Snjlnew type of Reference object is used internally for references
7382114237Snjlproduced by the RefOf operator.
7383102550Siwasaki
7384193267SjkimAdded additional error messages in the Resource Manager to explain
7385126372SnjlAE_BAD_DATA errors when they occur during resource parsing.
7386102550Siwasaki
7387104470SiwasakiSplit the AcpiEnableSubsystem into two primitives to enable a
7388193267Sjkimfiner granularity initialization sequence.  These two calls should
7389126372Snjlbe called in this order: AcpiEnableSubsystem (flags),
7390114237SnjlAcpiInitializeObjects (flags).  The flags parameter remains the
7391114237Snjlsame.
7392102550Siwasaki
7393102550Siwasaki
7394102550Siwasaki2) Linux
7395102550Siwasaki
7396114237SnjlUpdated the ACPI utilities module to understand the new style of
7397193267Sjkimfully resolved package objects that are now returned from the core
7398126372Snjlsubsystem.  This eliminates errors of the form:
7399102550Siwasaki
7400102550Siwasaki    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
7401102550Siwasaki    acpi_utils-0430 [145] acpi_evaluate_reference:
7402102550Siwasaki        Invalid element in package (not a device reference)
7403102550Siwasaki
7404102550SiwasakiThe method evaluation utility uses the new buffer allocation
7405102550Siwasakischeme instead of calling AcpiEvaluate Object twice.
7406102550Siwasaki
7407102550SiwasakiAdded support for ECDT. This allows the use of the Embedded
7408167802Sjkim
7409114237SnjlController before the namespace has been fully initialized, which
7410114237Snjlis necessary for ACPI 2.0 support, and for some laptops to
7411114237Snjlinitialize properly. (Laptops using ECDT are still rare, so only
7412114237Snjllimited testing was performed of the added functionality.)
7413102550Siwasaki
7414102550SiwasakiFixed memory leaks in the EC driver.
7415102550Siwasaki
7416102550SiwasakiEliminated a brittle code structure in acpi_bus_init().
7417102550Siwasaki
7418114237SnjlEliminated the acpi_evaluate() helper function in utils.c. It is
7419114237Snjlno longer needed since acpi_evaluate_object can optionally
7420104470Siwasakiallocate memory for the return object.
7421102550Siwasaki
7422193267SjkimImplemented fix for keyboard hang when getting battery readings on
7423126372Snjlsome systems (Stephen White)
7424102550Siwasaki
7425102550SiwasakiPCI IRQ routing update (Dominik Brodowski)
7426102550Siwasaki
7427114237SnjlFix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
7428114237Snjlsupport
7429102550Siwasaki
7430102550Siwasaki----------------------------------------
7431102550Siwasaki11 June 2002.  Summary of changes for this release.
7432102550Siwasaki
7433102550Siwasaki
7434102550Siwasaki1) ACPI CA Core Subsystem Version 20020611:
7435102550Siwasaki
7436104470SiwasakiFixed a reported problem where constants such as Zero and One
7437114237Snjlappearing within _PRT packages were not handled correctly within
7438114237Snjlthe resource manager code.  Originally reported against the ASL
7439114237Snjlcompiler because the code generator now optimizes integers to
7440193267Sjkimtheir minimal AML representation (i.e. AML constants if possible.)
7441126372SnjlThe _PRT code now handles all AML constant opcodes correctly
7442126372Snjl(Zero, One, Ones, Revision).
7443102550Siwasaki
7444102550SiwasakiFixed a problem with the Concatenate operator in the AML
7445193267Sjkiminterpreter where a buffer result object was incorrectly marked as
7446126372Snjlnot fully evaluated, causing a run-time error of AE_AML_INTERNAL.
7447102550Siwasaki
7448104470SiwasakiAll package sub-objects are now fully resolved before they are
7449114237Snjlreturned from the external ACPI interfaces.  This means that name
7450114237Snjlstrings are resolved to object handles, and constant operators
7451114237Snjl(Zero, One, Ones, Revision) are resolved to Integers.
7452102550Siwasaki
7453102550SiwasakiImplemented immediate resolution of the AML Constant opcodes
7454104470Siwasaki(Zero, One, Ones, Revision) to Integer objects upon detection
7455104470Siwasakiwithin the AML stream. This has simplified and reduced the
7456104470Siwasakigenerated code size of the subsystem by eliminating about 10
7457104470Siwasakiswitch statements for these constants (which previously were
7458193267Sjkimcontained in Reference objects.)  The complicating issues are that
7459126372Snjlthe Zero opcode is used as a "placeholder" for unspecified
7460193267Sjkimoptional target operands and stores to constants are defined to be
7461126372Snjlno-ops.
7462102550Siwasaki
7463193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7464126372Snjlbelow. These are the code and data sizes for the acpica.lib
7465114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7466114237Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7467114237Snjlversion of the code includes the debug output trace mechanism and
7468193267Sjkimhas a larger code and data size.  Note that these values will vary
7469126372Snjldepending on the efficiency of the compiler and the compiler
7470114237Snjloptions used during generation.
7471102550Siwasaki
7472102550Siwasaki  Previous Release
7473104470Siwasaki    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
7474104470Siwasaki    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
7475102550Siwasaki  Current Release:
7476104470Siwasaki    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
7477104470Siwasaki    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
7478102550Siwasaki
7479102550Siwasaki
7480102550Siwasaki2) Linux
7481102550Siwasaki
7482167802Sjkim
7483104470SiwasakiAdded preliminary support for obtaining _TRA data for PCI root
7484104470Siwasakibridges (Bjorn Helgaas).
7485102550Siwasaki
7486102550Siwasaki
7487102550Siwasaki3) iASL Compiler Version X2046:
7488102550Siwasaki
7489193267SjkimFixed a problem where the "_DDN" reserved name was defined to be a
7490126372Snjlcontrol method with one argument.  There are no arguments, and
7491114237Snjl_DDN does not have to be a control method.
7492102550Siwasaki
7493114237SnjlFixed a problem with the Linux version of the compiler where the
7494114237Snjlsource lines printed with error messages were the wrong lines.
7495114237SnjlThis turned out to be the "LF versus CR/LF" difference between
7496114237SnjlWindows and Unix.  This appears to be the longstanding issue
7497114237Snjlconcerning listing output and error messages.
7498102550Siwasaki
7499114237SnjlFixed a problem with the Linux version of compiler where opcode
7500114237Snjlnames within error messages were wrong.  This was caused by a
7501114237Snjlslight difference in the output of the Flex tool on Linux versus
7502114237SnjlWindows.
7503102550Siwasaki
7504193267SjkimFixed a problem with the Linux compiler where the hex output files
7505126372Snjlcontained some garbage data caused by an internal buffer overrun.
7506102550Siwasaki
7507102550Siwasaki
7508102550Siwasaki----------------------------------------
7509102550Siwasaki17 May 2002.  Summary of changes for this release.
7510102550Siwasaki
7511102550Siwasaki
7512102550Siwasaki1) ACPI CA Core Subsystem Version 20020517:
7513102550Siwasaki
7514102550SiwasakiImplemented a workaround to an BIOS bug discovered on the HP
7515104470SiwasakiOmniBook where the FADT revision number and the table size are
7516193267Sjkiminconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
7517126372Snjlbehavior is to fallback to using only the ACPI 1.0 fields of the
7518126372SnjlFADT if the table is too small to be a ACPI 2.0 table as claimed
7519126372Snjlby the revision number.  Although this is a BIOS bug, this is a
7520126372Snjlcase where the workaround is simple enough and with no side
7521126372Snjleffects, so it seemed prudent to add it.  A warning message is
7522126372Snjlissued, however.
7523102550Siwasaki
7524193267SjkimImplemented minimum size checks for the fixed-length ACPI tables -
7525126372Snjl- the FADT and FACS, as well as consistency checks between the
7526114237Snjlrevision number and the table size.
7527102550Siwasaki
7528114237SnjlFixed a reported problem in the table override support where the
7529114237Snjlnew table pointer was incorrectly treated as a physical address
7530114237Snjlinstead of a logical address.
7531102550Siwasaki
7532114237SnjlEliminated the use of the AE_AML_ERROR exception and replaced it
7533114237Snjlwith more descriptive codes.
7534102550Siwasaki
7535193267SjkimFixed a problem where an exception would occur if an ASL Field was
7536126372Snjldefined with no named Field Units underneath it (used by some
7537114237Snjlindex fields).
7538102550Siwasaki
7539193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7540126372Snjlbelow.  These are the code and data sizes for the acpica.lib
7541126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7542126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7543126372Snjlversion of the code includes the debug output trace mechanism and
7544193267Sjkimhas a larger code and data size.  Note that these values will vary
7545126372Snjldepending on the efficiency of the compiler and the compiler
7546126372Snjloptions used during generation.
7547102550Siwasaki
7548102550Siwasaki  Previous Release
7549104470Siwasaki    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
7550104470Siwasaki    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
7551102550Siwasaki  Current Release:
7552104470Siwasaki    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
7553104470Siwasaki    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
7554102550Siwasaki
7555102550Siwasaki
7556102550Siwasaki
7557102550Siwasaki2) Linux
7558102550Siwasaki
7559114237SnjlMuch work done on ACPI init (MADT and PCI IRQ routing support).
7560114237Snjl(Paul D. and Dominik Brodowski)
7561102550Siwasaki
7562102550SiwasakiFix PCI IRQ-related panic on boot (Sam Revitch)
7563102550Siwasaki
7564102550SiwasakiSet BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
7565102550Siwasaki
7566102550SiwasakiFix "MHz" typo (Dominik Brodowski)
7567102550Siwasaki
7568102550SiwasakiFix RTC year 2000 issue (Dominik Brodowski)
7569102550Siwasaki
7570102550SiwasakiPreclude multiple button proc entries (Eric Brunet)
7571102550Siwasaki
7572102550SiwasakiMoved arch-specific code out of include/platform/aclinux.h
7573102550Siwasaki
7574102550Siwasaki3) iASL Compiler Version X2044:
7575102550Siwasaki
7576193267SjkimImplemented error checking for the string used in the EISAID macro
7577193267Sjkim(Usually used in the definition of the _HID object.)  The code now
7578126372Snjlstrictly enforces the PnP format - exactly 7 characters, 3
7579126372Snjluppercase letters and 4 hex digits.
7580102550Siwasaki
7581102550SiwasakiIf a raw string is used in the definition of the _HID object
7582102550Siwasaki(instead of the EISAID macro), the string must contain all
7583114237Snjlalphanumeric characters (e.g., "*PNP0011" is not allowed because
7584114237Snjlof the asterisk.)
7585102550Siwasaki
7586114237SnjlImplemented checking for invalid use of ACPI reserved names for
7587114237Snjlmost of the name creation operators (Name, Device, Event, Mutex,
7588114237SnjlOperationRegion, PowerResource, Processor, and ThermalZone.)
7589114237SnjlPreviously, this check was only performed for control methods.
7590102550Siwasaki
7591114237SnjlImplemented an additional check on the Name operator to emit an
7592114237Snjlerror if a reserved name that must be implemented in ASL as a
7593114237Snjlcontrol method is used.  We know that a reserved name must be a
7594114237Snjlmethod if it is defined with input arguments.
7595102550Siwasaki
7596193267SjkimThe warning emitted when a namespace object reference is not found
7597126372Snjlduring the cross reference phase has been changed into an error.
7598193267SjkimThe "External" directive should be used for names defined in other
7599126372Snjlmodules.
7600102550Siwasaki
7601102550Siwasaki
7602102550Siwasaki4) Tools and Utilities
7603102550Siwasaki
7604114237SnjlThe 16-bit tools (adump16 and aexec16) have been regenerated and
7605114237Snjltested.
7606102550Siwasaki
7607193267SjkimFixed a problem with the output of both acpidump and adump16 where
7608126372Snjlthe indentation of closing parentheses and brackets was not
7609167802Sjkim
7610114237Snjlaligned properly with the parent block.
7611102550Siwasaki
7612102550Siwasaki
7613102550Siwasaki----------------------------------------
7614102550Siwasaki03 May 2002.  Summary of changes for this release.
7615102550Siwasaki
7616102550Siwasaki
7617102550Siwasaki1) ACPI CA Core Subsystem Version 20020503:
7618102550Siwasaki
7619114237SnjlAdded support a new OSL interface that allows the host operating
7620167802Sjkim
7621114237Snjlsystem software to override the DSDT found in the firmware -
7622193267SjkimAcpiOsTableOverride.  With this interface, the OSL can examine the
7623126372Snjlversion of the firmware DSDT and replace it with a different one
7624126372Snjlif desired.
7625102550Siwasaki
7626114237SnjlAdded new external interfaces for accessing ACPI registers from
7627114237Snjldevice drivers and other system software - AcpiGetRegister and
7628114237SnjlAcpiSetRegister.  This was simply an externalization of the
7629114237Snjlexisting AcpiHwBitRegister interfaces.
7630102550Siwasaki
7631104470SiwasakiFixed a regression introduced in the previous build where the
7632104470SiwasakiASL/AML CreateField operator always returned an error,
7633102550Siwasaki"destination must be a NS Node".
7634102550Siwasaki
7635114237SnjlExtended the maximum time (before failure) to successfully enable
7636114237SnjlACPI mode to 3 seconds.
7637102550Siwasaki
7638193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7639126372Snjlbelow.  These are the code and data sizes for the acpica.lib
7640126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7641126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7642126372Snjlversion of the code includes the debug output trace mechanism and
7643193267Sjkimhas a larger code and data size.  Note that these values will vary
7644126372Snjldepending on the efficiency of the compiler and the compiler
7645126372Snjloptions used during generation.
7646102550Siwasaki
7647102550Siwasaki  Previous Release
7648104470Siwasaki    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
7649104470Siwasaki    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
7650102550Siwasaki  Current Release:
7651104470Siwasaki    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
7652104470Siwasaki    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
7653102550Siwasaki
7654102550Siwasaki
7655102550Siwasaki2) Linux
7656102550Siwasaki
7657104470SiwasakiEnhanced ACPI init code for SMP. We are now fully MPS and $PIR-
7658193267Sjkimfree. While 3 out of 4 of our in-house systems work fine, the last
7659126372Snjlone still hangs when testing the LAPIC timer.
7660102550Siwasaki
7661114237SnjlRenamed many files in 2.5 kernel release to omit "acpi_" from the
7662114237Snjlname.
7663102550Siwasaki
7664102550SiwasakiAdded warning on boot for Presario 711FR.
7665102550Siwasaki
7666102550SiwasakiSleep improvements (Pavel Machek)
7667102550Siwasaki
7668102550SiwasakiACPI can now be built without CONFIG_PCI enabled.
7669102550Siwasaki
7670102550SiwasakiIA64: Fixed memory map functions (JI Lee)
7671102550Siwasaki
7672102550Siwasaki
7673102550Siwasaki3) iASL Compiler Version X2043:
7674102550Siwasaki
7675114237SnjlAdded support to allow the compiler to be integrated into the MS
7676114237SnjlVC++ development environment for one-button compilation of single
7677114237Snjlfiles or entire projects -- with error-to-source-line mapping.
7678102550Siwasaki
7679104470SiwasakiImplemented support for compile-time constant folding for the
7680104470SiwasakiType3, Type4, and Type5 opcodes first defined in the ACPI 2.0
7681104470Siwasakispecification.  This allows the ASL writer to use expressions
7682104470Siwasakiinstead of Integer/Buffer/String constants in terms that must
7683114237Snjlevaluate to constants at compile time and will also simplify the
7684114237Snjlemitted AML in any such sub-expressions that can be folded
7685104470Siwasaki(evaluated at compile-time.)  This increases the size of the
7686104470Siwasakicompiler significantly because a portion of the ACPI CA AML
7687104470Siwasakiinterpreter is included within the compiler in order to pre-
7688104470Siwasakievaluate constant expressions.
7689102550Siwasaki
7690114237Snjl
7691102550SiwasakiFixed a problem with the "Unicode" ASL macro that caused the
7692114237Snjlcompiler to fault.  (This macro is used in conjunction with the
7693114237Snjl_STR reserved name.)
7694102550Siwasaki
7695114237SnjlImplemented an AML opcode optimization to use the Zero, One, and
7696114237SnjlOnes opcodes where possible to further reduce the size of integer
7697114237Snjlconstants and thus reduce the overall size of the generated AML
7698114237Snjlcode.
7699102550Siwasaki
7700193267SjkimImplemented error checking for new reserved terms for ACPI version
7701126372Snjl2.0A.
7702102550Siwasaki
7703104470SiwasakiImplemented the -qr option to display the current list of ACPI
7704104470Siwasakireserved names known to the compiler.
7705102550Siwasaki
7706104470SiwasakiImplemented the -qc option to display the current list of ASL
7707104470Siwasakioperators that are allowed within constant expressions and can
7708193267Sjkimtherefore be folded at compile time if the operands are constants.
7709102550Siwasaki
7710102550Siwasaki
7711102550Siwasaki4) Documentation
7712102550Siwasaki
7713193267SjkimUpdated the Programmer's Reference for new interfaces, data types,
7714126372Snjland memory allocation model options.
7715102550Siwasaki
7716114237SnjlUpdated the iASL Compiler User Reference to apply new format and
7717114237Snjladd information about new features and options.
7718102550Siwasaki
7719102550Siwasaki----------------------------------------
7720102550Siwasaki19 April 2002.  Summary of changes for this release.
7721102550Siwasaki
7722102550Siwasaki1) ACPI CA Core Subsystem Version 20020419:
7723102550Siwasaki
7724114237SnjlThe source code base for the Core Subsystem has been completely
7725114237Snjlcleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
7726114237Snjlversions.  The Lint option files used are included in the
7727114237Snjl/acpi/generate/lint directory.
7728102550Siwasaki
7729102550SiwasakiImplemented enhanced status/error checking across the entire
7730114237SnjlHardware manager subsystem.  Any hardware errors (reported from
7731114237Snjlthe OSL) are now bubbled up and will abort a running control
7732114237Snjlmethod.
7733102550Siwasaki
7734167802Sjkim
7735114237SnjlFixed a problem where the per-ACPI-table integer width (32 or 64)
7736114237Snjlwas stored only with control method nodes, causing a fault when
7737114237Snjlnon-control method code was executed during table loading.  The
7738114237Snjlsolution implemented uses a global variable to indicate table
7739114237Snjlwidth across the entire ACPI subsystem.  Therefore, ACPI CA does
7740114237Snjlnot support mixed integer widths across different ACPI tables
7741114237Snjl(DSDT, SSDT).
7742102550Siwasaki
7743114237SnjlFixed a problem where NULL extended fields (X fields) in an ACPI
7744114237Snjl2.0 ACPI FADT caused the table load to fail.  Although the
7745114237Snjlexisting ACPI specification is a bit fuzzy on this topic, the new
7746114237Snjlbehavior is to fall back on a ACPI 1.0 field if the corresponding
7747193267SjkimACPI 2.0 X field is zero (even though the table revision indicates
7748193267Sjkima full ACPI 2.0 table.)  The ACPI specification will be updated to
7749126372Snjlclarify this issue.
7750102550Siwasaki
7751104470SiwasakiFixed a problem with the SystemMemory operation region handler
7752104470Siwasakiwhere memory was always accessed byte-wise even if the AML-
7753104470Siwasakispecified access width was larger than a byte.  This caused
7754104470Siwasakiproblems on systems with memory-mapped I/O.  Memory is now
7755193267Sjkimaccessed with the width specified.  On systems that do not support
7756193267Sjkimnon-aligned transfers, a check is made to guarantee proper address
7757126372Snjlalignment before proceeding in order to avoid an AML-caused
7758126372Snjlalignment fault within the kernel.
7759102550Siwasaki
7760102550Siwasaki
7761114237SnjlFixed a problem with the ExtendedIrq resource where only one byte
7762114237Snjlof the 4-byte Irq field was extracted.
7763102550Siwasaki
7764114237SnjlFixed the AcpiExDigitsNeeded() procedure to support _UID.  This
7765114237Snjlfunction was out of date and required a rewrite.
7766114237Snjl
7767193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7768126372Snjlbelow.  These are the code and data sizes for the acpica.lib
7769126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7770126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7771126372Snjlversion of the code includes the debug output trace mechanism and
7772193267Sjkimhas a larger code and data size.  Note that these values will vary
7773126372Snjldepending on the efficiency of the compiler and the compiler
7774126372Snjloptions used during generation.
7775102550Siwasaki
7776102550Siwasaki  Previous Release
7777104470Siwasaki    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
7778104470Siwasaki    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
7779102550Siwasaki  Current Release:
7780104470Siwasaki    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
7781104470Siwasaki    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
7782102550Siwasaki
7783102550Siwasaki
7784102550Siwasaki2) Linux
7785102550Siwasaki
7786102550SiwasakiPCI IRQ routing fixes (Dominik Brodowski)
7787102550Siwasaki
7788102550Siwasaki
7789102550Siwasaki3) iASL Compiler Version X2042:
7790102550Siwasaki
7791104470SiwasakiImplemented an additional compile-time error check for a field
7792104470Siwasakiunit whose size + minimum access width would cause a run-time
7793114237Snjlaccess beyond the end-of-region.  Previously, only the field size
7794114237Snjlitself was checked.
7795102550Siwasaki
7796104470SiwasakiThe Core subsystem and iASL compiler now share a common parse
7797104470Siwasakiobject in preparation for compile-time evaluation of the type
7798104470Siwasaki3/4/5 ASL operators.
7799102550Siwasaki
7800102550Siwasaki
7801102550Siwasaki----------------------------------------
7802102550SiwasakiSummary of changes for this release: 03_29_02
7803102550Siwasaki
7804102550Siwasaki1) ACPI CA Core Subsystem Version 20020329:
7805102550Siwasaki
7806104470SiwasakiImplemented support for late evaluation of TermArg operands to
7807193267SjkimBuffer and Package objects.  This allows complex expressions to be
7808126372Snjlused in the declarations of these object types.
7809102550Siwasaki
7810193267SjkimFixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
7811126372Snjl1.0, if the field was larger than 32 bits, it was returned as a
7812126372Snjlbuffer - otherwise it was returned as an integer.  In ACPI 2.0,
7813193267Sjkimthe field is returned as a buffer only if the field is larger than
7814126372Snjl64 bits.  The TableRevision is now considered when making this
7815126372Snjlconversion to avoid incompatibility with existing ASL code.
7816102550Siwasaki
7817104470SiwasakiImplemented logical addressing for AcpiOsGetRootPointer.  This
7818114237Snjlallows an RSDP with either a logical or physical address.  With
7819114237Snjlthis support, the host OS can now override all ACPI tables with
7820114237Snjlone logical RSDP.  Includes implementation of  "typed" pointer
7821114237Snjlsupport to allow a common data type for both physical and logical
7822114237Snjlpointers internally.  This required a change to the
7823114237SnjlAcpiOsGetRootPointer interface.
7824102550Siwasaki
7825193267SjkimImplemented the use of ACPI 2.0 Generic Address Structures for all
7826193267SjkimGPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
7827126372Snjlmapped I/O for these ACPI features.
7828102550Siwasaki
7829102550SiwasakiInitialization now ignores not only non-required tables (All
7830114237Snjltables other than the FADT, FACS, DSDT, and SSDTs), but also does
7831114237Snjlnot validate the table headers of unrecognized tables.
7832102550Siwasaki
7833102550SiwasakiFixed a problem where a notify handler could only be
7834102550Siwasakiinstalled/removed on an object of type Device.  All "notify"
7835167802Sjkim
7836102550Siwasakiobjects are now supported -- Devices, Processor, Power, and
7837102550SiwasakiThermal.
7838102550Siwasaki
7839114237SnjlRemoved most verbosity from the ACPI_DB_INFO debug level.  Only
7840193267Sjkimcritical information is returned when this debug level is enabled.
7841102550Siwasaki
7842193267SjkimCode and Data Size: Current core subsystem library sizes are shown
7843126372Snjlbelow.  These are the code and data sizes for the acpica.lib
7844126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
7845126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
7846126372Snjlversion of the code includes the debug output trace mechanism and
7847193267Sjkimhas a larger code and data size.  Note that these values will vary
7848126372Snjldepending on the efficiency of the compiler and the compiler
7849126372Snjloptions used during generation.
7850102550Siwasaki
7851102550Siwasaki  Previous Release
7852104470Siwasaki    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
7853104470Siwasaki    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
7854102550Siwasaki  Current Release:
7855104470Siwasaki    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
7856104470Siwasaki    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
7857102550Siwasaki
7858102550Siwasaki
7859102550Siwasaki2) Linux:
7860102550Siwasaki
7861114237SnjlThe processor driver (acpi_processor.c) now fully supports ACPI
7862114237Snjl2.0-based processor performance control (e.g. Intel(R)
7863114237SnjlSpeedStep(TM) technology) Note that older laptops that only have
7864114237Snjlthe Intel "applet" interface are not supported through this.  The
7865114237Snjl'limit' and 'performance' interface (/proc) are fully functional.
7866114237Snjl[Note that basic policy for controlling performance state
7867114237Snjltransitions will be included in the next version of ospmd.]  The
7868114237Snjlidle handler was modified to more aggressively use C2, and PIIX4
7869114237Snjlerrata handling underwent a complete overhaul (big thanks to
7870114237SnjlDominik Brodowski).
7871102550Siwasaki
7872114237SnjlAdded support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
7873114237Snjlbased devices in the ACPI namespace are now dynamically bound
7874114237Snjl(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
7875114237SnjlThis allows, among other things, ACPI to resolve bus numbers for
7876114237Snjlsubordinate PCI bridges.
7877102550Siwasaki
7878104470SiwasakiEnhanced PCI IRQ routing to get the proper bus number for _PRT
7879104470Siwasakientries defined underneath PCI bridges.
7880102550Siwasaki
7881104470SiwasakiAdded IBM 600E to bad bios list due to invalid _ADR value for
7882104470SiwasakiPIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
7883102550Siwasaki
7884114237SnjlIn the process of adding full MADT support (e.g. IOAPIC) for IA32
7885114237Snjl(acpi.c, mpparse.c) -- stay tuned.
7886102550Siwasaki
7887102550SiwasakiAdded back visual differentiation between fixed-feature and
7888114237Snjlcontrol-method buttons in dmesg.  Buttons are also subtyped (e.g.
7889114237Snjlbutton/power/PWRF) to simplify button identification.
7890102550Siwasaki
7891114237SnjlWe no longer use -Wno-unused when compiling debug. Please ignore
7892114237Snjlany "_THIS_MODULE defined but not used" messages.
7893102550Siwasaki
7894102550SiwasakiCan now shut down the system using "magic sysrq" key.
7895102550Siwasaki
7896102550Siwasaki
7897102550Siwasaki3) iASL Compiler version 2041:
7898102550Siwasaki
7899104470SiwasakiFixed a problem where conversion errors for hex/octal/decimal
7900104470Siwasakiconstants were not reported.
7901102550Siwasaki
7902193267SjkimImplemented a fix for the General Register template Address field.
7903126372SnjlThis field was 8 bits when it should be 64.
7904102550Siwasaki
7905193267SjkimFixed a problem where errors/warnings were no longer being emitted
7906126372Snjlwithin the listing output file.
7907102550Siwasaki
7908114237SnjlImplemented the ACPI 2.0A restriction on ACPI Table Signatures to
7909114237Snjlexactly 4 characters, alphanumeric only.
7910102550Siwasaki
7911102550Siwasaki
7912102550Siwasaki
7913102550Siwasaki
7914102550Siwasaki----------------------------------------
7915102550SiwasakiSummary of changes for this release: 03_08_02
7916102550Siwasaki
7917102550Siwasaki
7918102550Siwasaki1) ACPI CA Core Subsystem Version 20020308:
7919102550Siwasaki
7920114237SnjlFixed a problem with AML Fields where the use of the "AccessAny"
7921193267Sjkimkeyword could cause an interpreter error due to attempting to read
7922126372Snjlor write beyond the end of the parent Operation Region.
7923102550Siwasaki
7924193267SjkimFixed a problem in the SystemMemory Operation Region handler where
7925126372Snjlan attempt was made to map memory beyond the end of the region.
7926126372SnjlThis was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
7927126372Snjlerrors on some Linux systems.
7928102550Siwasaki
7929114237SnjlFixed a problem where the interpreter/namespace "search to root"
7930114237Snjlalgorithm was not functioning for some object types.  Relaxed the
7931114237Snjlinternal restriction on the search to allow upsearches for all
7932114237Snjlexternal object types as well as most internal types.
7933102550Siwasaki
7934102550Siwasaki
7935102550Siwasaki2) Linux:
7936102550Siwasaki
7937193267SjkimWe now use safe_halt() macro versus individual calls to sti | hlt.
7938102550Siwasaki
7939193267SjkimWriting to the processor limit interface should now work. "echo 1"
7940126372Snjlwill increase the limit, 2 will decrease, and 0 will reset to the
7941167802Sjkim
7942126372Snjldefault.
7943102550Siwasaki
7944102550Siwasaki
7945102550Siwasaki3) ASL compiler:
7946102550Siwasaki
7947102550SiwasakiFixed segfault on Linux version.
7948102550Siwasaki
7949102550Siwasaki
7950102550Siwasaki----------------------------------------
7951102550SiwasakiSummary of changes for this release: 02_25_02
7952102550Siwasaki
7953102550Siwasaki1) ACPI CA Core Subsystem:
7954102550Siwasaki
7955102550Siwasaki
7956102550SiwasakiFixed a problem where the GPE bit masks were not initialized
7957102550Siwasakiproperly, causing erratic GPE behavior.
7958102550Siwasaki
7959193267SjkimImplemented limited support for multiple calling conventions.  The
7960126372Snjlcode can be generated with either the VPL (variable parameter
7961114237Snjllist, or "C") convention, or the FPL (fixed parameter list, or
7962114237Snjl"Pascal") convention.  The core subsystem is about 3.4% smaller
7963114237Snjlwhen generated with FPL.
7964102550Siwasaki
7965102550Siwasaki
7966102550Siwasaki2) Linux
7967102550Siwasaki
7968114237SnjlRe-add some /proc/acpi/event functionality that was lost during
7969114237Snjlthe rewrite
7970102550Siwasaki
7971193267SjkimResolved issue with /proc events for fixed-feature buttons showing
7972126372Snjlup as the system device.
7973102550Siwasaki
7974193267SjkimFixed checks on C2/C3 latencies to be inclusive of maximum values.
7975102550Siwasaki
7976114237SnjlReplaced AE_ERRORs in acpi_osl.c with more specific error codes.
7977102550Siwasaki
7978114237SnjlChanged ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
7979102550Siwasaki
7980104470SiwasakiFixed limit interface & usage to fix bugs with passive cooling
7981104470Siwasakihysterisis.
7982102550Siwasaki
7983102550SiwasakiRestructured PRT support.
7984102550Siwasaki
7985102550Siwasaki
7986102550Siwasaki----------------------------------------
7987102550SiwasakiSummary of changes for this label: 02_14_02
7988102550Siwasaki
7989102550Siwasaki
7990102550Siwasaki1) ACPI CA Core Subsystem:
7991102550Siwasaki
7992114237SnjlImplemented support in AcpiLoadTable to allow loading of FACS and
7993114237SnjlFADT tables.
7994102550Siwasaki
7995114237SnjlSuport for the now-obsolete interim 0.71 64-bit ACPI tables has
7996193267Sjkimbeen removed.  All 64-bit platforms should be migrated to the ACPI
7997193267Sjkim2.0 tables.  The actbl71.h header has been removed from the source
7998126372Snjltree.
7999102550Siwasaki
8000114237SnjlAll C macros defined within the subsystem have been prefixed with
8001114237Snjl"ACPI_" to avoid collision with other system include files.
8002102550Siwasaki
8003193267SjkimRemoved the return value for the two AcpiOsPrint interfaces, since
8004126372Snjlit is never used and causes lint warnings for ignoring the return
8005126372Snjlvalue.
8006102550Siwasaki
8007104470SiwasakiAdded error checking to all internal mutex acquire and release
8008104470Siwasakicalls.  Although a failure from one of these interfaces is
8009104470Siwasakiprobably a fatal system error, these checks will cause the
8010114237Snjlimmediate abort of the currently executing method or interface.
8011102550Siwasaki
8012114237SnjlFixed a problem where the AcpiSetCurrentResources interface could
8013193267Sjkimfault.  This was a side effect of the deployment of the new memory
8014126372Snjlallocation model.
8015102550Siwasaki
8016193267SjkimFixed a couple of problems with the Global Lock support introduced
8017193267Sjkimin the last major build.  The "common" (1.0/2.0) internal FACS was
8018126372Snjlbeing overwritten with the FACS signature and clobbering the
8019126372SnjlGlobal Lock pointer.  Also, the actual firmware FACS was being
8020126372Snjlunmapped after construction of the "common" FACS, preventing
8021126372Snjlaccess to the actual Global Lock field within it.  The "common"
8022126372Snjlinternal FACS is no longer installed as an actual ACPI table; it
8023126372Snjlis used simply as a global.
8024102550Siwasaki
8025193267SjkimCode and Data Size: Current core subsystem library sizes are shown
8026126372Snjlbelow.  These are the code and data sizes for the acpica.lib
8027126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
8028126372Snjlvalues do not include any ACPI driver or OSPM code.  The debug
8029126372Snjlversion of the code includes the debug output trace mechanism and
8030193267Sjkimhas a larger code and data size.  Note that these values will vary
8031126372Snjldepending on the efficiency of the compiler and the compiler
8032126372Snjloptions used during generation.
8033102550Siwasaki
8034102550Siwasaki  Previous Release (02_07_01)
8035104470Siwasaki    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
8036104470Siwasaki    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
8037102550Siwasaki  Current Release:
8038104470Siwasaki    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
8039104470Siwasaki    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
8040102550Siwasaki
8041102550Siwasaki
8042102550Siwasaki2) Linux
8043102550Siwasaki
8044102550SiwasakiUpdated Linux-specific code for core macro and OSL interface
8045102550Siwasakichanges described above.
8046102550Siwasaki
8047114237SnjlImproved /proc/acpi/event. It now can be opened only once and has
8048114237Snjlproper poll functionality.
8049102550Siwasaki
8050102550SiwasakiFixed and restructured power management (acpi_bus).
8051102550Siwasaki
8052193267SjkimOnly create /proc "view by type" when devices of that class exist.
8053102550Siwasaki
8054104470SiwasakiFixed "charging/discharging" bug (and others) in acpi_battery.
8055102550Siwasaki
8056102550SiwasakiImproved thermal zone code.
8057102550Siwasaki
8058102550Siwasaki
8059102550Siwasaki3) ASL Compiler, version X2039:
8060102550Siwasaki
8061114237Snjl
8062114237SnjlImplemented the new compiler restriction on ASL String hex/octal
8063193267Sjkimescapes to non-null, ASCII values.  An error results if an invalid
8064126372Snjlvalue is used.  (This will require an ACPI 2.0 specification
8065126372Snjlchange.)
8066102550Siwasaki
8067193267SjkimAML object labels that are output to the optional C and ASM source
8068126372Snjlare now prefixed with both the ACPI table signature and table ID
8069126372Snjlto help guarantee uniqueness within a large BIOS project.
8070102550Siwasaki
8071102550Siwasaki
8072102550Siwasaki----------------------------------------
8073102550SiwasakiSummary of changes for this label: 02_01_02
8074102550Siwasaki
8075102550Siwasaki1) ACPI CA Core Subsystem:
8076102550Siwasaki
8077114237SnjlACPI 2.0 support is complete in the entire Core Subsystem and the
8078114237SnjlASL compiler. All new ACPI 2.0 operators are implemented and all
8079114237Snjlother changes for ACPI 2.0 support are complete.  With
8080193267Sjkimsimultaneous code and data optimizations throughout the subsystem,
8081126372SnjlACPI 2.0 support has been implemented with almost no additional
8082126372Snjlcost in terms of code and data size.
8083102550Siwasaki
8084114237SnjlImplemented a new mechanism for allocation of return buffers.  If
8085114237Snjlthe buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
8086114237Snjlbe allocated on behalf of the caller.  Consolidated all return
8087114237Snjlbuffer validation and allocation to a common procedure.  Return
8088193267Sjkimbuffers will be allocated via the primary OSL allocation interface
8089193267Sjkimsince it appears that a separate pool is not needed by most users.
8090126372SnjlIf a separate pool is required for these buffers, the caller can
8091126372Snjlstill use the original mechanism and pre-allocate the buffer(s).
8092102550Siwasaki
8093102550SiwasakiImplemented support for string operands within the DerefOf
8094102550Siwasakioperator.
8095102550Siwasaki
8096114237SnjlRestructured the Hardware and Event managers to be table driven,
8097114237Snjlsimplifying the source code and reducing the amount of generated
8098114237Snjlcode.
8099102550Siwasaki
8100102550SiwasakiSplit the common read/write low-level ACPI register bitfield
8101104470Siwasakiprocedure into a separate read and write, simplifying the code
8102104470Siwasakiconsiderably.
8103102550Siwasaki
8104114237SnjlObsoleted the AcpiOsCallocate OSL interface.  This interface was
8105114237Snjlused only a handful of times and didn't have enough critical mass
8106193267Sjkimfor a separate interface.  Replaced with a common calloc procedure
8107126372Snjlin the core.
8108102550Siwasaki
8109104470SiwasakiFixed a reported problem with the GPE number mapping mechanism
8110104470Siwasakithat allows GPE1 numbers to be non-contiguous with GPE0.
8111114237SnjlReorganized the GPE information and shrunk a large array that was
8112114237Snjloriginally large enough to hold info for all possible GPEs (256)
8113114237Snjlto simply large enough to hold all GPEs up to the largest GPE
8114114237Snjlnumber on the machine.
8115102550Siwasaki
8116114237SnjlFixed a reported problem with resource structure alignment on 64-
8117114237Snjlbit platforms.
8118102550Siwasaki
8119102550SiwasakiChanged the AcpiEnableEvent and AcpiDisableEvent external
8120102550Siwasakiinterfaces to not require any flags for the common case of
8121102550Siwasakienabling/disabling a GPE.
8122102550Siwasaki
8123104470SiwasakiImplemented support to allow a "Notify" on a Processor object.
8124102550Siwasaki
8125114237SnjlMost TBDs in comments within the source code have been resolved
8126114237Snjland eliminated.
8127102550Siwasaki
8128167802Sjkim
8129102550SiwasakiFixed a problem in the interpreter where a standalone parent
8130102550Siwasakiprefix (^) was not handled correctly in the interpreter and
8131102550Siwasakidebugger.
8132102550Siwasaki
8133102550SiwasakiRemoved obsolete and unnecessary GPE save/restore code.
8134102550Siwasaki
8135193267SjkimImplemented Field support in the ASL Load operator.  This allows a
8136126372Snjltable to be loaded from a named field, in addition to loading a
8137114237Snjltable directly from an Operation Region.
8138102550Siwasaki
8139193267SjkimImplemented timeout and handle support in the external Global Lock
8140126372Snjlinterfaces.
8141102550Siwasaki
8142114237SnjlFixed a problem in the AcpiDump utility where pathnames were no
8143193267Sjkimlonger being generated correctly during the dump of named objects.
8144102550Siwasaki
8145102550SiwasakiModified the AML debugger to give a full display of if/while
8146102550Siwasakipredicates instead of just one AML opcode at a time.  (The
8147193267Sjkimpredicate can have several nested ASL statements.)  The old method
8148126372Snjlwas confusing during single stepping.
8149102550Siwasaki
8150193267SjkimCode and Data Size: Current core subsystem library sizes are shown
8151126372Snjlbelow. These are the code and data sizes for the acpica.lib
8152114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
8153114237Snjlvalues do not include any ACPI driver or OSPM code.  The debug
8154114237Snjlversion of the code includes the debug output trace mechanism and
8155193267Sjkimhas a larger code and data size.  Note that these values will vary
8156126372Snjldepending on the efficiency of the compiler and the compiler
8157114237Snjloptions used during generation.
8158102550Siwasaki
8159102550Siwasaki  Previous Release (12_18_01)
8160114237Snjl     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
8161114237Snjl     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
8162102550Siwasaki   Current Release:
8163114237Snjl     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
8164114237Snjl     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
8165102550Siwasaki
8166102550Siwasaki2) Linux
8167102550Siwasaki
8168104470Siwasaki Implemented fix for PIIX reverse throttling errata (Processor
8169104470Siwasakidriver)
8170102550Siwasaki
8171102550SiwasakiAdded new Limit interface (Processor and Thermal drivers)
8172102550Siwasaki
8173102550SiwasakiNew thermal policy (Thermal driver)
8174102550Siwasaki
8175102550SiwasakiMany updates to /proc
8176102550Siwasaki
8177102550SiwasakiBattery "low" event support (Battery driver)
8178102550Siwasaki
8179104470SiwasakiSupports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
8180102550Siwasaki
8181104470SiwasakiIA32 - IA64 initialization unification, no longer experimental
8182102550Siwasaki
8183102550SiwasakiMenuconfig options redesigned
8184102550Siwasaki
8185102550Siwasaki3) ASL Compiler, version X2037:
8186102550Siwasaki
8187193267SjkimImplemented several new output features to simplify integration of
8188126372SnjlAML code into  firmware: 1) Output the AML in C source code with
8189193267Sjkimlabels for each named ASL object.  The    original ASL source code
8190193267Sjkimis interleaved as C comments. 2) Output the AML in ASM source code
8191126372Snjlwith labels and interleaved ASL    source. 3) Output the AML in
8192126372Snjlraw hex table form, in either C or ASM.
8193102550Siwasaki
8194102550SiwasakiImplemented support for optional string parameters to the
8195102550SiwasakiLoadTable operator.
8196102550Siwasaki
8197104470SiwasakiCompleted support for embedded escape sequences within string
8198114237Snjlliterals.  The compiler now supports all single character escapes
8199114237Snjlas well as the Octal and Hex escapes.  Note: the insertion of a
8200114237Snjlnull byte into a string literal (via the hex/octal escape) causes
8201114237Snjlthe string to be immediately terminated.  A warning is issued.
8202102550Siwasaki
8203104470SiwasakiFixed a problem where incorrect AML was generated for the case
8204104470Siwasakiwhere an ASL namepath consists of a single parent prefix (
8205102550Siwasaki
8206102550Siwasaki) with no trailing name segments.
8207102550Siwasaki
8208102550SiwasakiThe compiler has been successfully generated with a 64-bit C
8209102550Siwasakicompiler.
8210102550Siwasaki
8211102550Siwasaki
8212102550Siwasaki
8213102550Siwasaki
8214102550Siwasaki----------------------------------------
8215102550SiwasakiSummary of changes for this label: 12_18_01
8216102550Siwasaki
8217102550Siwasaki1) Linux
8218102550Siwasaki
8219114237SnjlEnhanced blacklist with reason and severity fields. Any table's
8220114237Snjlsignature may now be used to identify a blacklisted system.
8221102550Siwasaki
8222114237SnjlCall _PIC control method to inform the firmware which interrupt
8223114237Snjlmodel the OS is using. Turn on any disabled link devices.
8224102550Siwasaki
8225102550SiwasakiCleaned up busmgr /proc error handling (Andreas Dilger)
8226102550Siwasaki
8227102550Siwasaki 2) ACPI CA Core Subsystem:
8228102550Siwasaki
8229193267SjkimImplemented ACPI 2.0 semantics for the "Break" operator (Exit from
8230126372Snjlwhile loop)
8231102550Siwasaki
8232102550SiwasakiCompleted implementation of the ACPI 2.0 "Continue",
8233102550Siwasaki"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
8234193267Sjkimoperators.  All new ACPI 2.0 operators are now implemented in both
8235193267Sjkimthe ASL compiler and the AML interpreter.  The only remaining ACPI
8236126372Snjl2.0 task is support for the String data type in the DerefOf
8237193267Sjkimoperator.  Fixed a problem with AcquireMutex where the status code
8238126372Snjlwas lost if the caller had to actually wait for the mutex.
8239102550Siwasaki
8240104470SiwasakiIncreased the maximum ASL Field size from 64K bits to 4G bits.
8241102550Siwasaki
8242193267SjkimCompleted implementation of the external Global Lock interfaces --
8243126372SnjlAcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
8244126372SnjlHandler parameters were added.
8245102550Siwasaki
8246102550SiwasakiCompleted another pass at removing warnings and issues when
8247114237Snjlcompiling with 64-bit compilers.  The code now compiles cleanly
8248114237Snjlwith the Intel 64-bit C/C++ compiler.  Most notably, the pointer
8249114237Snjladd and subtract (diff) macros have changed considerably.
8250102550Siwasaki
8251167802Sjkim
8252114237SnjlCreated and deployed a new ACPI_SIZE type that is 64-bits wide on
8253114237Snjl64-bit platforms, 32-bits on all others.  This type is used
8254193267Sjkimwherever memory allocation and/or the C sizeof() operator is used,
8255126372Snjland affects the OSL memory allocation interfaces AcpiOsAllocate
8256126372Snjland AcpiOsCallocate.
8257102550Siwasaki
8258102550SiwasakiImplemented sticky user breakpoints in the AML debugger.
8259102550Siwasaki
8260193267SjkimCode and Data Size: Current core subsystem library sizes are shown
8261126372Snjlbelow. These are the code and data sizes for the acpica.lib
8262114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
8263114237Snjlvalues do not include any ACPI driver or OSPM code.  The debug
8264114237Snjlversion of the code includes the debug output trace mechanism and
8265114237Snjlhas a larger code and data size. Note that these values will vary
8266114237Snjldepending on the efficiency of the compiler and the compiler
8267114237Snjloptions used during generation.
8268102550Siwasaki
8269102550Siwasaki  Previous Release (12_05_01)
8270114237Snjl     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
8271114237Snjl     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
8272102550Siwasaki   Current Release:
8273114237Snjl     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
8274114237Snjl     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
8275102550Siwasaki
8276102550Siwasaki 3) ASL Compiler, version X2034:
8277102550Siwasaki
8278114237SnjlNow checks for (and generates an error if detected) the use of a
8279114237SnjlBreak or Continue statement without an enclosing While statement.
8280102550Siwasaki
8281167802Sjkim
8282102550SiwasakiSuccessfully generated the compiler with the Intel 64-bit C
8283102550Siwasakicompiler.
8284102550Siwasaki
8285102550Siwasaki ----------------------------------------
8286102550SiwasakiSummary of changes for this label: 12_05_01
8287102550Siwasaki
8288102550Siwasaki 1) ACPI CA Core Subsystem:
8289102550Siwasaki
8290102550SiwasakiThe ACPI 2.0 CopyObject operator is fully implemented.  This
8291104470Siwasakioperator creates a new copy of an object (and is also used to
8292193267Sjkimbypass the "implicit conversion" mechanism of the Store operator.)
8293102550Siwasaki
8294102550SiwasakiThe ACPI 2.0 semantics for the SizeOf operator are fully
8295102550Siwasakiimplemented.  The change is that performing a SizeOf on a
8296114237Snjlreference object causes an automatic dereference of the object to
8297114237Snjltha actual value before the size is evaluated. This behavior was
8298114237Snjlundefined in ACPI 1.0.
8299102550Siwasaki
8300114237SnjlThe ACPI 2.0 semantics for the Extended IRQ resource descriptor
8301114237Snjlhave been implemented.  The interrupt polarity and mode are now
8302114237Snjlindependently set.
8303102550Siwasaki
8304114237SnjlFixed a problem where ASL Constants (Zero, One, Ones, Revision)
8305114237Snjlappearing in Package objects were not properly converted to
8306114237Snjlintegers when the internal Package was converted to an external
8307114237Snjlobject (via the AcpiEvaluateObject interface.)
8308102550Siwasaki
8309114237SnjlFixed a problem with the namespace object deletion mechanism for
8310114237Snjlobjects created by control methods.  There were two parts to this
8311193267Sjkimproblem: 1) Objects created during the initialization phase method
8312193267Sjkimparse were not being deleted, and 2) The object owner ID mechanism
8313126372Snjlto track objects was broken.
8314102550Siwasaki
8315114237SnjlFixed a problem where the use of the ASL Scope operator within a
8316114237Snjlcontrol method would result in an invalid opcode exception.
8317102550Siwasaki
8318114237SnjlFixed a problem introduced in the previous label where the buffer
8319114237Snjllength required for the _PRT structure was not being returned
8320114237Snjlcorrectly.
8321102550Siwasaki
8322193267SjkimCode and Data Size: Current core subsystem library sizes are shown
8323126372Snjlbelow. These are the code and data sizes for the acpica.lib
8324114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these
8325114237Snjlvalues do not include any ACPI driver or OSPM code.  The debug
8326114237Snjlversion of the code includes the debug output trace mechanism and
8327193267Sjkimhas a larger code and data size.  Note that these values will vary
8328126372Snjldepending on the efficiency of the compiler and the compiler
8329114237Snjloptions used during generation.
8330102550Siwasaki
8331102550Siwasaki  Previous Release (11_20_01)
8332114237Snjl     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
8333114237Snjl     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
8334102550Siwasaki
8335102550Siwasaki  Current Release:
8336114237Snjl     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
8337114237Snjl     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
8338102550Siwasaki
8339102550Siwasaki 2) Linux:
8340102550Siwasaki
8341102550SiwasakiUpdated all files to apply cleanly against 2.4.16.
8342102550Siwasaki
8343104470SiwasakiAdded basic PCI Interrupt Routing Table (PRT) support for IA32
8344114237Snjl(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
8345114237Snjlversion supports both static and dyanmic PRT entries, but dynamic
8346114237Snjlentries are treated as if they were static (not yet
8347114237Snjlreconfigurable).  Architecture- specific code to use this data is
8348114237Snjlabsent on IA32 but should be available shortly.
8349102550Siwasaki
8350114237SnjlChanged the initialization sequence to start the ACPI interpreter
8351114237Snjl(acpi_init) prior to initialization of the PCI driver (pci_init)
8352114237Snjlin init/main.c.  This ordering is required to support PRT and
8353114237Snjlfacilitate other (future) enhancement.  A side effect is that the
8354193267SjkimACPI bus driver and certain device drivers can no longer be loaded
8355126372Snjlas modules.
8356102550Siwasaki
8357104470SiwasakiModified the 'make menuconfig' options to allow PCI Interrupt
8358104470SiwasakiRouting support to be included without the ACPI Bus and other
8359104470Siwasakidevice drivers.
8360102550Siwasaki
8361102550Siwasaki 3) ASL Compiler, version X2033:
8362102550Siwasaki
8363102550SiwasakiFixed some issues with the use of the new CopyObject and
8364102550SiwasakiDataTableRegion operators.  Both are fully functional.
8365102550Siwasaki
8366102550Siwasaki ----------------------------------------
8367102550SiwasakiSummary of changes for this label: 11_20_01
8368102550Siwasaki
8369102550Siwasaki 20 November 2001.  Summary of changes for this release.
8370102550Siwasaki
8371102550Siwasaki 1) ACPI CA Core Subsystem:
8372102550Siwasaki
8373104470SiwasakiUpdated Index support to match ACPI 2.0 semantics.  Storing a
8374193267SjkimInteger, String, or Buffer to an Index of a Buffer will store only
8375126372Snjlthe least-significant byte of the source to the Indexed buffer
8376126372Snjlbyte.  Multiple writes are not performed.
8377102550Siwasaki
8378104470SiwasakiFixed a problem where the access type used in an AccessAs ASL
8379104470Siwasakioperator was not recorded correctly into the field object.
8380102550Siwasaki
8381102550SiwasakiFixed a problem where ASL Event objects were created in a
8382114237Snjlsignalled state. Events are now created in an unsignalled state.
8383102550Siwasaki
8384114237SnjlThe internal object cache is now purged after table loading and
8385114237Snjlinitialization to reduce the use of dynamic kernel memory -- on
8386114237Snjlthe assumption that object use is greatest during the parse phase
8387193267Sjkimof the entire table (versus the run-time use of individual control
8388126372Snjlmethods.)
8389102550Siwasaki
8390102550SiwasakiACPI 2.0 variable-length packages are now fully operational.
8391102550Siwasaki
8392193267SjkimCode and Data Size: Code and Data optimizations have permitted new
8393126372Snjlfeature development with an actual reduction in the library size.
8394126372SnjlCurrent core subsystem library sizes are shown below.  These are
8395126372Snjlthe code and data sizes for the acpica.lib produced by the
8396193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include
8397126372Snjlany ACPI driver or OSPM code.  The debug version of the code
8398126372Snjlincludes the debug output trace mechanism and has a larger code
8399126372Snjland data size.  Note that these values will vary depending on the
8400126372Snjlefficiency of the compiler and the compiler options used during
8401126372Snjlgeneration.
8402102550Siwasaki
8403102550Siwasaki  Previous Release (11_09_01):
8404114237Snjl     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
8405114237Snjl     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
8406102550Siwasaki
8407102550Siwasaki  Current Release:
8408114237Snjl     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
8409114237Snjl     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
8410102550Siwasaki
8411102550Siwasaki 2) Linux:
8412102550Siwasaki
8413114237SnjlEnhanced the ACPI boot-time initialization code to allow the use
8414114237Snjlof Local APIC tables for processor enumeration on IA-32, and to
8415114237Snjlpave the way for a fully MPS-free boot (on SMP systems) in the
8416114237Snjlnear future.  This functionality replaces
8417114237Snjlarch/i386/kernel/acpitables.c, which was introduced in an earlier
8418114237Snjl2.4.15-preX release.  To enable this feature you must add
8419114237Snjl"acpi_boot=on" to the kernel command line -- see the help entry
8420193267Sjkimfor CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
8421126372Snjlthe works...
8422102550Siwasaki
8423114237SnjlRestructured the configuration options to allow boot-time table
8424114237Snjlparsing support without inclusion of the ACPI Interpreter (and
8425114237Snjlother) code.
8426102550Siwasaki
8427193267SjkimNOTE: This release does not include fixes for the reported events,
8428126372Snjlpower-down, and thermal passive cooling issues (coming soon).
8429102550Siwasaki
8430102550Siwasaki 3) ASL Compiler:
8431102550Siwasaki
8432114237SnjlAdded additional typechecking for Fields within restricted access
8433114237SnjlOperation Regions.  All fields within EC and CMOS regions must be
8434114237Snjldeclared with ByteAcc. All fields withing SMBus regions must be
8435114237Snjldeclared with the BufferAcc access type.
8436102550Siwasaki
8437114237SnjlFixed a problem where the listing file output of control methods
8438114237Snjlno longer interleaved the actual AML code with the ASL source
8439114237Snjlcode.
8440102550Siwasaki
8441102550Siwasaki
8442102550Siwasaki
8443167802Sjkim
8444102550Siwasaki----------------------------------------
8445102550SiwasakiSummary of changes for this label: 11_09_01
8446102550Siwasaki
8447102550Siwasaki1) ACPI CA Core Subsystem:
8448102550Siwasaki
8449114237SnjlImplemented ACPI 2.0-defined support for writes to fields with a
8450193267SjkimBuffer, String, or Integer source operand that is smaller than the
8451126372Snjltarget field. In these cases, the source operand is zero-extended
8452126372Snjlto fill the target field.
8453102550Siwasaki
8454104470SiwasakiFixed a problem where a Field starting bit offset (within the
8455104470Siwasakiparent operation region) was calculated incorrectly if the
8456167802Sjkim
8457104470Siwasakialignment of the field differed from the access width.  This
8458114237Snjlaffected CreateWordField, CreateDwordField, CreateQwordField, and
8459114237Snjlpossibly other fields that use the "AccessAny" keyword.
8460102550Siwasaki
8461114237SnjlFixed a problem introduced in the 11_02_01 release where indirect
8462114237Snjlstores through method arguments did not operate correctly.
8463102550Siwasaki
8464102550Siwasaki2) Linux:
8465102550Siwasaki
8466102550SiwasakiImplemented boot-time ACPI table parsing support
8467114237Snjl(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
8468114237Snjlfacilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
8469114237Snjllegacy BIOS interfaces (e.g. MPS) for the configuration of system
8470193267Sjkimprocessors, memory, and interrupts during setup_arch().  Note that
8471126372Snjlthis patch does not include the required architecture-specific
8472126372Snjlchanges required to apply this information -- subsequent patches
8473126372Snjlwill be posted for both IA32 and IA64 to achieve this.
8474102550Siwasaki
8475114237SnjlAdded low-level sleep support for IA32 platforms, courtesy of Pat
8476114237SnjlMochel. This allows IA32 systems to transition to/from various
8477114237Snjlsleeping states (e.g. S1, S3), although the lack of a centralized
8478114237Snjldriver model and power-manageable drivers will prevent its
8479114237Snjl(successful) use on most systems.
8480102550Siwasaki
8481114237SnjlRevamped the ACPI 'menuconfig' layout: created new "ACPI Support"
8482193267Sjkimsubmenu, unified IA32 and IA64 options, added new "Boot using ACPI
8483126372Snjltables" option, etc.
8484102550Siwasaki
8485114237SnjlIncreased the default timeout for the EC driver from 1ms to 10ms
8486114237Snjl(1000 cycles of 10us) to try to address AE_TIME errors during EC
8487114237Snjltransactions.
8488102550Siwasaki
8489102550Siwasaki ----------------------------------------
8490102550SiwasakiSummary of changes for this label: 11_02_01
8491102550Siwasaki
8492102550Siwasaki1) ACPI CA Core Subsystem:
8493102550Siwasaki
8494102550SiwasakiACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
8495102550Siwasaki(QWordAcc keyword). All ACPI 2.0 64-bit support is now
8496102550Siwasakiimplemented.
8497102550Siwasaki
8498114237SnjlOSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
8499114237Snjlchanges to support ACPI 2.0 Qword field access.  Read/Write
8500193267SjkimPciConfiguration(), Read/Write Memory(), and Read/Write Port() now
8501126372Snjlaccept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
8502193267Sjkimthe value parameter for the address space handler interface is now
8503193267Sjkiman ACPI_INTEGER.  OSL implementations of these interfaces must now
8504126372Snjlhandle the case where the Width parameter is 64.
8505102550Siwasaki
8506104470SiwasakiIndex Fields: Fixed a problem where unaligned bit assembly and
8507104470Siwasakidisassembly for IndexFields was not supported correctly.
8508102550Siwasaki
8509102550SiwasakiIndex and Bank Fields:  Nested Index and Bank Fields are now
8510104470Siwasakisupported. During field access, a check is performed to ensure
8511114237Snjlthat the value written to an Index or Bank register is not out of
8512114237Snjlthe range of the register.  The Index (or Bank) register is
8513114237Snjlwritten before each access to the field data. Future support will
8514114237Snjlinclude allowing individual IndexFields to be wider than the
8515114237SnjlDataRegister width.
8516102550Siwasaki
8517114237SnjlFields: Fixed a problem where the AML interpreter was incorrectly
8518114237Snjlattempting to write beyond the end of a Field/OpRegion.  This was
8519114237Snjla boundary case that occurred when a DWORD field was written to a
8520114237SnjlBYTE access OpRegion, forcing multiple writes and causing the
8521114237Snjlinterpreter to write one datum too many.
8522102550Siwasaki
8523102550SiwasakiFields: Fixed a problem with Field/OpRegion access where the
8524114237Snjlstarting bit address of a field was incorrectly calculated if the
8525114237Snjlcurrent access type was wider than a byte (WordAcc, DwordAcc, or
8526114237SnjlQwordAcc).
8527102550Siwasaki
8528104470SiwasakiFields: Fixed a problem where forward references to individual
8529193267SjkimFieldUnits (individual Field names within a Field definition) were
8530126372Snjlnot resolved during the AML table load.
8531102550Siwasaki
8532104470SiwasakiFields: Fixed a problem where forward references from a Field
8533104470Siwasakidefinition to the parent Operation Region definition were not
8534104470Siwasakiresolved during the AML table load.
8535104470Siwasaki
8536114237SnjlFields: Duplicate FieldUnit names within a scope are now detected
8537114237Snjlduring AML table load.
8538102550Siwasaki
8539193267SjkimAcpi Interfaces: Fixed a problem where the AcpiGetName() interface
8540126372Snjlreturned an incorrect name for the root node.
8541102550Siwasaki
8542193267SjkimCode and Data Size: Code and Data optimizations have permitted new
8543126372Snjlfeature development with an actual reduction in the library size.
8544126372SnjlCurrent core subsystem library sizes are shown below.  These are
8545126372Snjlthe code and data sizes for the acpica.lib produced by the
8546193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include
8547126372Snjlany ACPI driver or OSPM code.  The debug version of the code
8548126372Snjlincludes the debug output trace mechanism and has a larger code
8549126372Snjland data size.  Note that these values will vary depending on the
8550126372Snjlefficiency of the compiler and the compiler options used during
8551126372Snjlgeneration.
8552102550Siwasaki
8553102550Siwasaki  Previous Release (10_18_01):
8554114237Snjl     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
8555114237Snjl     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
8556102550Siwasaki
8557102550Siwasaki  Current Release:
8558114237Snjl     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
8559114237Snjl     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
8560102550Siwasaki
8561102550Siwasaki 2) Linux:
8562102550Siwasaki
8563102550SiwasakiImproved /proc processor output (Pavel Machek) Re-added
8564102550SiwasakiMODULE_LICENSE("GPL") to all modules.
8565102550Siwasaki
8566102550Siwasaki 3) ASL Compiler version X2030:
8567102550Siwasaki
8568104470SiwasakiDuplicate FieldUnit names within a scope are now detected and
8569104470Siwasakiflagged as errors.
8570102550Siwasaki
8571102550Siwasaki 4) Documentation:
8572102550Siwasaki
8573104470SiwasakiProgrammer Reference updated to reflect OSL and address space
8574104470Siwasakihandler interface changes described above.
8575102550Siwasaki
8576102550Siwasaki----------------------------------------
8577102550SiwasakiSummary of changes for this label: 10_18_01
8578102550Siwasaki
8579102550SiwasakiACPI CA Core Subsystem:
8580102550Siwasaki
8581193267SjkimFixed a problem with the internal object reference count mechanism
8582126372Snjlthat occasionally caused premature object deletion. This resolves
8583126372Snjlall of the outstanding problem reports where an object is deleted
8584193267Sjkimin the middle of an interpreter evaluation.  Although this problem
8585126372Snjlonly showed up in rather obscure cases, the solution to the
8586126372Snjlproblem involved an adjustment of all reference counts involving
8587126372Snjlobjects attached to namespace nodes.
8588102550Siwasaki
8589102550SiwasakiFixed a problem with Field support in the interpreter where
8590114237Snjlwriting to an aligned field whose length is an exact multiple (2
8591193267Sjkimor greater) of the field access granularity would cause an attempt
8592126372Snjlto write beyond the end of the field.
8593102550Siwasaki
8594102550SiwasakiThe top level AML opcode execution functions within the
8595102550Siwasakiinterpreter have been renamed with a more meaningful and
8596102550Siwasakiconsistent naming convention.  The modules exmonad.c and
8597102550Siwasakiexdyadic.c were eliminated.  New modules are exoparg1.c,
8598102550Siwasakiexoparg2.c, exoparg3.c, and exoparg6.c.
8599102550Siwasaki
8600114237SnjlSupport for the ACPI 2.0 "Mid" ASL operator has been implemented.
8601102550Siwasaki
8602114237SnjlFixed a problem where the AML debugger was causing some internal
8603114237Snjlobjects to not be deleted during subsystem termination.
8604102550Siwasaki
8605104470SiwasakiFixed a problem with the external AcpiEvaluateObject interface
8606104470Siwasakiwhere the subsystem would fault if the named object to be
8607104470Siwasakievaluated refered to a constant such as Zero, Ones, etc.
8608102550Siwasaki
8609102550SiwasakiFixed a problem with IndexFields and BankFields where the
8610114237Snjlsubsystem would fault if the index, data, or bank registers were
8611114237Snjlnot defined in the same scope as the field itself.
8612102550Siwasaki
8613104470SiwasakiAdded printf format string checking for compilers that support
8614104470Siwasakithis feature.  Corrected more than 50 instances of issues with
8615104470Siwasakiformat specifiers within invocations of ACPI_DEBUG_PRINT
8616104470Siwasakithroughout the core subsystem code.
8617102550Siwasaki
8618104470SiwasakiThe ASL "Revision" operator now returns the ACPI support level
8619193267Sjkimimplemented in the core - the value "2" since the ACPI 2.0 support
8620126372Snjlis more than 50% implemented.
8621102550Siwasaki
8622114237SnjlEnhanced the output of the AML debugger "dump namespace" command
8623114237Snjlto output in a more human-readable form.
8624102550Siwasaki
8625114237SnjlCurrent core subsystem library code sizes are shown below.  These
8626167802Sjkim
8627114237Snjlare the code and data sizes for the acpica.lib produced by the
8628193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include
8629126372Snjlany ACPI driver or OSPM code.  The debug version of the code
8630126372Snjlincludes the full debug trace mechanism -- leading to a much
8631167802Sjkim
8632114237Snjllarger code and data size.  Note that these values will vary
8633114237Snjldepending on the efficiency of the compiler and the compiler
8634114237Snjloptions used during generation.
8635102550Siwasaki
8636102550Siwasaki     Previous Label (09_20_01):
8637114237Snjl     Non-Debug Version:    65K Code,     5K Data,     70K Total
8638114237Snjl     Debug Version:       138K Code,    58K Data,    196K Total
8639102550Siwasaki
8640102550Siwasaki     This Label:
8641102550Siwasaki
8642114237Snjl     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
8643114237Snjl     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
8644114237Snjl
8645102550SiwasakiLinux:
8646102550Siwasaki
8647104470SiwasakiImplemented a "Bad BIOS Blacklist" to track machines that have
8648104470Siwasakiknown ASL/AML problems.
8649102550Siwasaki
8650193267SjkimEnhanced the /proc interface for the thermal zone driver and added
8651126372Snjlsupport for _HOT (the critical suspend trip point).  The 'info'
8652193267Sjkimfile now includes threshold/policy information, and allows setting
8653126372Snjlof _SCP (cooling preference) and _TZP (polling frequency) values
8654193267Sjkimto the 'info' file. Examples: "echo tzp=5 > info" sets the polling
8655126372Snjlfrequency to 5 seconds, and "echo scp=1 > info" sets the cooling
8656126372Snjlpreference to the passive/quiet mode (if supported by the ASL).
8657102550Siwasaki
8658104470SiwasakiImplemented a workaround for a gcc bug that resuted in an OOPs
8659104470Siwasakiwhen loading the control method battery driver.
8660102550Siwasaki
8661102550Siwasaki ----------------------------------------
8662102550SiwasakiSummary of changes for this label: 09_20_01
8663102550Siwasaki
8664102550Siwasaki ACPI CA Core Subsystem:
8665102550Siwasaki
8666104470SiwasakiThe AcpiEnableEvent and AcpiDisableEvent interfaces have been
8667104470Siwasakimodified to allow individual GPE levels to be flagged as wake-
8668114237Snjlenabled (i.e., these GPEs are to remain enabled when the platform
8669114237Snjlsleeps.)
8670102550Siwasaki
8671104470SiwasakiThe AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
8672104470Siwasakisupport wake-enabled GPEs.  This means that upon entering the
8673104470Siwasakisleep state, all GPEs that are not wake-enabled are disabled.
8674104470SiwasakiWhen leaving the sleep state, these GPEs are reenabled.
8675102550Siwasaki
8676114237SnjlA local double-precision divide/modulo module has been added to
8677114237Snjlenhance portability to OS kernels where a 64-bit math library is
8678114237Snjlnot available.  The new module is "utmath.c".
8679102550Siwasaki
8680104470SiwasakiSeveral optimizations have been made to reduce the use of CPU
8681114237Snjlstack.  Originally over 2K, the maximum stack usage is now below
8682114237Snjl2K at 1860  bytes (1.82k)
8683102550Siwasaki
8684114237SnjlFixed a problem with the AcpiGetFirmwareTable interface where the
8685193267Sjkimroot table pointer was not mapped into a logical address properly.
8686102550Siwasaki
8687193267SjkimFixed a problem where a NULL pointer was being dereferenced in the
8688126372Snjlinterpreter code for the ASL Notify operator.
8689102550Siwasaki
8690102550SiwasakiFixed a problem where the use of the ASL Revision operator
8691114237Snjlreturned an error. This operator now returns the current version
8692114237Snjlof the ACPI CA core subsystem.
8693102550Siwasaki
8694114237SnjlFixed a problem where objects passed as control method parameters
8695114237Snjlto AcpiEvaluateObject were always deleted at method termination.
8696114237SnjlHowever, these objects may end up being stored into the namespace
8697114237Snjlby the called method.  The object reference count mechanism was
8698114237Snjlapplied to these objects instead of a force delete.
8699102550Siwasaki
8700114237SnjlFixed a problem where static strings or buffers (contained in the
8701114237SnjlAML code) that are declared as package elements within the ASL
8702114237Snjlcode could cause a fault because the interpreter would attempt to
8703114237Snjldelete them.  These objects are now marked with the "static
8704114237Snjlobject" flag to prevent any attempt to delete them.
8705102550Siwasaki
8706114237SnjlImplemented an interpreter optimization to use operands directly
8707114237Snjlfrom the state object instead of extracting the operands to local
8708114237Snjlvariables.  This reduces stack use and code size, and improves
8709114237Snjlperformance.
8710102550Siwasaki
8711193267SjkimThe module exxface.c was eliminated as it was an unnecessary extra
8712126372Snjllayer of code.
8713102550Siwasaki
8714114237SnjlCurrent core subsystem library code sizes are shown below.  These
8715114237Snjlare the code and data sizes for the acpica.lib produced by the
8716193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include
8717126372Snjlany ACPI driver or OSPM code.  The debug version of the code
8718126372Snjlincludes the full debug trace mechanism -- leading to a much
8719114237Snjllarger code and data size.  Note that these values will vary
8720114237Snjldepending on the efficiency of the compiler and the compiler
8721114237Snjloptions used during generation.
8722102550Siwasaki
8723102550Siwasaki  Non-Debug Version:  65K Code,   5K Data,   70K Total
8724114237Snjl(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
8725114237SnjlTotal  (Previously 195K)
8726102550Siwasaki
8727102550SiwasakiLinux:
8728102550Siwasaki
8729114237SnjlSupport for ACPI 2.0 64-bit integers has been added.   All ACPI
8730114237SnjlInteger objects are now 64 bits wide
8731102550Siwasaki
8732114237SnjlAll Acpi data types and structures are now in lower case.  Only
8733114237SnjlAcpi macros are upper case for differentiation.
8734102550Siwasaki
8735102550Siwasaki Documentation:
8736102550Siwasaki
8737102550SiwasakiChanges to the external interfaces as described above.
8738102550Siwasaki
8739102550Siwasaki ----------------------------------------
8740102550SiwasakiSummary of changes for this label: 08_31_01
8741102550Siwasaki
8742102550Siwasaki ACPI CA Core Subsystem:
8743102550Siwasaki
8744114237SnjlA bug with interpreter implementation of the ASL Divide operator
8745114237Snjlwas found and fixed.  The implicit function return value (not the
8746114237Snjlexplicit store operands) was returning the remainder instead of
8747114237Snjlthe quotient.  This was a longstanding bug and it fixes several
8748114237Snjlknown outstanding issues on various platforms.
8749102550Siwasaki
8750104470SiwasakiThe ACPI_DEBUG_PRINT and function trace entry/exit macros have
8751193267Sjkimbeen further optimized for size.  There are 700 invocations of the
8752126372SnjlDEBUG_PRINT macro alone, so each optimization reduces the size of
8753126372Snjlthe debug version of the subsystem significantly.
8754102550Siwasaki
8755114237SnjlA stack trace mechanism has been implemented.  The maximum stack
8756193267Sjkimusage is about 2K on 32-bit platforms.  The debugger command "stat
8757126372Snjlstack" will display the current maximum stack usage.
8758102550Siwasaki
8759114237SnjlAll public symbols and global variables within the subsystem are
8760114237Snjlnow prefixed with the string "Acpi".  This keeps all of the
8761114237Snjlsymbols grouped together in a kernel map, and avoids conflicts
8762114237Snjlwith other kernel subsystems.
8763102550Siwasaki
8764114237SnjlMost of the internal fixed lookup tables have been moved into the
8765114237Snjlcode segment via the const operator.
8766102550Siwasaki
8767104470SiwasakiSeveral enhancements have been made to the interpreter to both
8768104470Siwasakireduce the code size and improve performance.
8769102550Siwasaki
8770114237SnjlCurrent core subsystem library code sizes are shown below.  These
8771114237Snjlare the code and data sizes for the acpica.lib produced by the
8772193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include
8773126372Snjlany ACPI driver or OSPM code.  The debug version of the code
8774126372Snjlincludes the full debug trace mechanism which contains over 700
8775126372Snjlinvocations of the DEBUG_PRINT macro, 500 function entry macro
8776126372Snjlinvocations, and over 900 function exit macro invocations --
8777126372Snjlleading to a much larger code and data size.  Note that these
8778114237Snjlvalues will vary depending on the efficiency of the compiler and
8779114237Snjlthe compiler options used during generation.
8780102550Siwasaki
8781102550Siwasaki        Non-Debug Version:  64K Code,   5K Data,   69K Total
8782102550SiwasakiDebug Version:     137K Code,  58K Data,  195K Total
8783102550Siwasaki
8784102550Siwasaki Linux:
8785102550Siwasaki
8786104470SiwasakiImplemented wbinvd() macro, pending a kernel-wide definition.
8787102550Siwasaki
8788102550SiwasakiFixed /proc/acpi/event to handle poll() and short reads.
8789102550Siwasaki
8790102550Siwasaki ASL Compiler, version X2026:
8791102550Siwasaki
8792104470SiwasakiFixed a problem introduced in the previous label where the AML
8793167802Sjkim
8794104470Siwasakicode emitted for package objects produced packages with zero
8795104470Siwasakilength.
8796102550Siwasaki
8797102550Siwasaki ----------------------------------------
8798102550SiwasakiSummary of changes for this label: 08_16_01
8799102550Siwasaki
8800102550SiwasakiACPI CA Core Subsystem:
8801102550Siwasaki
8802114237SnjlThe following ACPI 2.0 ASL operators have been implemented in the
8803114237SnjlAML interpreter (These are already supported by the Intel ASL
8804193267Sjkimcompiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
8805126372SnjlToBuffer.  Support for 64-bit AML constants is implemented in the
8806126372SnjlAML parser, debugger, and disassembler.
8807102550Siwasaki
8808114237SnjlThe internal memory tracking mechanism (leak detection code) has
8809114237Snjlbeen upgraded to reduce the memory overhead (a separate tracking
8810114237Snjlblock is no longer allocated for each memory allocation), and now
8811114237Snjlsupports all of the internal object caches.
8812102550Siwasaki
8813114237SnjlThe data structures and code for the internal object caches have
8814114237Snjlbeen coelesced and optimized so that there is a single cache and
8815114237Snjlmemory list data structure and a single group of functions that
8816114237Snjlimplement generic cache management.  This has reduced the code
8817114237Snjlsize in both the debug and release versions of the subsystem.
8818102550Siwasaki
8819193267SjkimThe DEBUG_PRINT macro(s) have been optimized for size and replaced
8820126372Snjlby ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
8821126372Snjldifferent, because it generates a single call to an internal
8822126372Snjlfunction.  This results in a savings of about 90 bytes per
8823193267Sjkiminvocation, resulting in an overall code and data savings of about
8824126372Snjl16% in the debug version of the subsystem.
8825102550Siwasaki
8826102550Siwasaki Linux:
8827102550Siwasaki
8828114237SnjlFixed C3 disk corruption problems and re-enabled C3 on supporting
8829114237Snjlmachines.
8830102550Siwasaki
8831102550SiwasakiIntegrated low-level sleep code by Patrick Mochel.
8832102550Siwasaki
8833102550SiwasakiFurther tweaked source code Linuxization.
8834102550Siwasaki
8835102550SiwasakiOther minor fixes.
8836102550Siwasaki
8837102550Siwasaki ASL Compiler:
8838102550Siwasaki
8839114237SnjlSupport for ACPI 2.0 variable length packages is fixed/completed.
8840102550Siwasaki
8841114237SnjlFixed a problem where the optional length parameter for the ACPI
8842114237Snjl2.0 ToString operator.
8843102550Siwasaki
8844114237SnjlFixed multiple extraneous error messages when a syntax error is
8845114237Snjldetected within the declaration line of a control method.
8846102550Siwasaki
8847102550Siwasaki ----------------------------------------
8848102550SiwasakiSummary of changes for this label: 07_17_01
8849102550Siwasaki
8850102550SiwasakiACPI CA Core Subsystem:
8851102550Siwasaki
8852104470SiwasakiAdded a new interface named AcpiGetFirmwareTable to obtain any
8853193267SjkimACPI table via the ACPI signature.  The interface can be called at
8854126372Snjlany time during kernel initialization, even before the kernel
8855193267Sjkimvirtual memory manager is initialized and paging is enabled.  This
8856126372Snjlallows kernel subsystems to obtain ACPI tables very early, even
8857126372Snjlbefore the ACPI CA subsystem is initialized.
8858102550Siwasaki
8859104470SiwasakiFixed a problem where Fields defined with the AnyAcc attribute
8860104470Siwasakicould be resolved to the incorrect address under the following
8861114237Snjlconditions: 1) the field width is larger than 8 bits and 2) the
8862114237Snjlparent operation region is not defined on a DWORD boundary.
8863102550Siwasaki
8864114237SnjlFixed a problem where the interpreter is not being locked during
8865114237Snjlnamespace initialization (during execution of the _INI control
8866114237Snjlmethods), causing an error when an attempt is made to release it
8867114237Snjllater.
8868102550Siwasaki
8869104470SiwasakiACPI 2.0 support in the AML Interpreter has begun and will be
8870114237Snjlongoing throughout the rest of this year.  In this label, The Mod
8871114237Snjloperator is implemented.
8872102550Siwasaki
8873102550SiwasakiAdded a new data type to contain full PCI addresses named
8874193267SjkimACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
8875126372Snjland Function values.
8876102550Siwasaki
8877102550Siwasaki Linux:
8878102550Siwasaki
8879102550SiwasakiEnhanced the Linux version of the source code to change most
8880102550Siwasakicapitalized ACPI type names to lowercase. For example, all
8881114237Snjlinstances of ACPI_STATUS are changed to acpi_status.  This will
8882114237Snjlresult in a large diff, but the change is strictly cosmetic and
8883114237Snjlaligns the CA code closer to the Linux coding standard.
8884102550Siwasaki
8885102550SiwasakiOSL Interfaces:
8886102550Siwasaki
8887193267SjkimThe interfaces to the PCI configuration space have been changed to
8888193267Sjkimadd the PCI Segment number and to split the single 32-bit combined
8889126372SnjlDeviceFunction field into two 16-bit fields.  This was
8890114237Snjlaccomplished by moving the four values that define an address in
8891114237SnjlPCI configuration space (segment, bus, device, and function) to
8892114237Snjlthe new ACPI_PCI_ID structure.
8893102550Siwasaki
8894104470SiwasakiThe changes to the PCI configuration space interfaces led to a
8895104470Siwasakireexamination of the complete set of address space access
8896114237Snjlinterfaces for PCI, I/O, and Memory.  The previously existing 18
8897114237Snjlinterfaces have proven difficult to maintain (any small change
8898193267Sjkimmust be propagated across at least 6 interfaces) and do not easily
8899193267Sjkimallow for future expansion to 64 bits if necessary.  Also, on some
8900126372Snjlsystems, it would not be appropriate to demultiplex the access
8901126372Snjlwidth (8, 16, 32,or 64) before calling the OSL if the
8902114237Snjlcorresponding native OS interfaces contain a similar access width
8903114237Snjlparameter.  For these reasons, the 18 address space interfaces
8904114237Snjlhave been replaced by these 6 new ones:
8905102550Siwasaki
8906102550SiwasakiAcpiOsReadPciConfiguration
8907102550SiwasakiAcpiOsWritePciConfiguration
8908102550SiwasakiAcpiOsReadMemory
8909102550SiwasakiAcpiOsWriteMemory
8910102550SiwasakiAcpiOsReadPort
8911102550SiwasakiAcpiOsWritePort
8912102550Siwasaki
8913114237SnjlAdded a new interface named AcpiOsGetRootPointer to allow the OSL
8914114237Snjlto perform the platform and/or OS-specific actions necessary to
8915114237Snjlobtain the ACPI RSDP table pointer.  On IA-32 platforms, this
8916114237Snjlinterface will simply call down to the CA core to perform the low-
8917114237Snjlmemory search for the table.  On IA-64, the RSDP is obtained from
8918114237SnjlEFI.  Migrating this interface to the OSL allows the CA core to
8919167802Sjkim
8920114237Snjlremain OS and platform independent.
8921102550Siwasaki
8922104470SiwasakiAdded a new interface named AcpiOsSignal to provide a generic
8923114237Snjl"function code and pointer" interface for various miscellaneous
8924114237Snjlsignals and notifications that must be made to the host OS.   The
8925114237Snjlfirst such signals are intended to support the ASL Fatal and
8926114237SnjlBreakpoint operators.  In the latter case, the AcpiOsBreakpoint
8927114237Snjlinterface has been obsoleted.
8928102550Siwasaki
8929102550SiwasakiThe definition of the AcpiFormatException interface has been
8930114237Snjlchanged to simplify its use.  The caller no longer must supply a
8931114237Snjlbuffer to the call; A pointer to a const string is now returned
8932114237Snjldirectly.  This allows the call to be easily used in printf
8933114237Snjlstatements, etc. since the caller does not have to manage a local
8934114237Snjlbuffer.
8935102550Siwasaki
8936114237Snjl
8937102550Siwasaki ASL Compiler, Version X2025:
8938102550Siwasaki
8939114237SnjlThe ACPI 2.0 Switch/Case/Default operators have been implemented
8940114237Snjland are fully functional.  They will work with all ACPI 1.0
8941193267Sjkiminterpreters, since the operators are simply translated to If/Else
8942126372Snjlpairs.
8943102550Siwasaki
8944104470SiwasakiThe ACPI 2.0 ElseIf operator is implemented and will also work
8945104470Siwasakiwith 1.0 interpreters, for the same reason.
8946102550Siwasaki
8947114237SnjlImplemented support for ACPI 2.0 variable-length packages.  These
8948114237Snjlpackages have a separate opcode, and their size is determined by
8949114237Snjlthe interpreter at run-time.
8950102550Siwasaki
8951193267SjkimDocumentation The ACPI CA Programmer Reference has been updated to
8952126372Snjlreflect the new interfaces and changes to existing interfaces.
8953102550Siwasaki
8954102550Siwasaki ------------------------------------------
8955102550SiwasakiSummary of changes for this label: 06_15_01
8956102550Siwasaki
8957102550Siwasaki ACPI CA Core Subsystem:
8958102550Siwasaki
8959102550SiwasakiFixed a problem where a DWORD-accessed field within a Buffer
8960114237Snjlobject would get its byte address inadvertently rounded down to
8961114237Snjlthe nearest DWORD.  Buffers are always Byte-accessible.
8962102550Siwasaki
8963102550Siwasaki ASL Compiler, version X2024:
8964102550Siwasaki
8965114237SnjlFixed a problem where the Switch() operator would either fault or
8966114237Snjlhang the compiler.  Note however, that the AML code for this ACPI
8967114237Snjl2.0 operator is not yet implemented.
8968102550Siwasaki
8969114237SnjlCompiler uses the new AcpiOsGetTimer interface to obtain compile
8970114237Snjltimings.
8971102550Siwasaki
8972114237SnjlImplementation of the CreateField operator automatically converts
8973114237Snjla reference to a named field within a resource descriptor from a
8974114237Snjlbyte offset to a bit offset if required.
8975102550Siwasaki
8976102550SiwasakiAdded some missing named fields from the resource descriptor
8977193267Sjkimsupport. These are the names that are automatically created by the
8978126372Snjlcompiler to reference fields within a descriptor.  They are only
8979126372Snjlvalid at compile time and are not passed through to the AML
8980114237Snjlinterpreter.
8981102550Siwasaki
8982104470SiwasakiResource descriptor named fields are now typed as Integers and
8983104470Siwasakisubject to compile-time typechecking when used in expressions.
8984102550Siwasaki
8985102550Siwasaki ------------------------------------------
8986102550SiwasakiSummary of changes for this label: 05_18_01
8987102550Siwasaki
8988102550Siwasaki ACPI CA Core Subsystem:
8989102550Siwasaki
8990114237SnjlFixed a couple of problems in the Field support code where bits
8991193267Sjkimfrom adjacent fields could be returned along with the proper field
8992126372Snjlbits. Restructured the field support code to improve performance,
8993126372Snjlreadability and maintainability.
8994102550Siwasaki
8995114237SnjlNew DEBUG_PRINTP macro automatically inserts the procedure name
8996114237Snjlinto the output, saving hundreds of copies of procedure name
8997114237Snjlstrings within the source, shrinking the memory footprint of the
8998114237Snjldebug version of the core subsystem.
8999102550Siwasaki
9000102550Siwasaki Source Code Structure:
9001102550Siwasaki
9002104470SiwasakiThe source code directory tree was restructured to reflect the
9003114237Snjlcurrent organization of the component architecture.  Some files
9004114237Snjland directories have been moved and/or renamed.
9005102550Siwasaki
9006102550Siwasaki Linux:
9007102550Siwasaki
9008102550SiwasakiFixed leaking kacpidpc processes.
9009102550Siwasaki
9010102550SiwasakiFixed queueing event data even when /proc/acpi/event is not
9011102550Siwasakiopened.
9012102550Siwasaki
9013102550Siwasaki ASL Compiler, version X2020:
9014102550Siwasaki
9015114237SnjlMemory allocation performance enhancement - over 24X compile time
9016114237Snjlimprovement on large ASL files.  Parse nodes and namestring
9017114237Snjlbuffers are now allocated from a large internal compiler buffer.
9018102550Siwasaki
9019102550SiwasakiThe temporary .SRC file is deleted unless the "-s" option is
9020102550Siwasakispecified
9021102550Siwasaki
9022193267SjkimThe "-d" debug output option now sends all output to the .DBG file
9023126372Snjlinstead of the console.
9024102550Siwasaki
9025102550Siwasaki"External" second parameter is now optional
9026102550Siwasaki
9027102550Siwasaki"ElseIf" syntax now properly allows the predicate
9028102550Siwasaki
9029102550SiwasakiLast operand to "Load" now recognized as a Target operand
9030102550Siwasaki
9031102550SiwasakiDebug object can now be used anywhere as a normal object.
9032102550Siwasaki
9033102550SiwasakiResourceTemplate now returns an object of type BUFFER
9034102550Siwasaki
9035102550SiwasakiEISAID now returns an object of type INTEGER
9036102550Siwasaki
9037102550Siwasaki"Index" now works with a STRING operand
9038102550Siwasaki
9039102550Siwasaki"LoadTable" now accepts optional parameters
9040102550Siwasaki
9041102550Siwasaki"ToString" length parameter is now optional
9042102550Siwasaki
9043102550Siwasaki"Interrupt (ResourceType," parse error fixed.
9044102550Siwasaki
9045104470Siwasaki"Register" with a user-defined region space parse error fixed
9046102550Siwasaki
9047114237SnjlEscaped backslash at the end of a string ("\\") scan/parse error
9048114237Snjlfixed
9049102550Siwasaki
9050102550Siwasaki"Revision" is now an object of type INTEGER.
9051102550Siwasaki
9052102550Siwasaki
9053102550Siwasaki
9054102550Siwasaki------------------------------------------
9055102550SiwasakiSummary of changes for this label: 05_02_01
9056102550Siwasaki
9057102550SiwasakiLinux:
9058102550Siwasaki
9059102550Siwasaki/proc/acpi/event now blocks properly.
9060102550Siwasaki
9061102550SiwasakiRemoved /proc/sys/acpi. You can still dump your DSDT from
9062102550Siwasaki/proc/acpi/dsdt.
9063102550Siwasaki
9064102550Siwasaki ACPI CA Core Subsystem:
9065102550Siwasaki
9066193267SjkimFixed a problem introduced in the previous label where some of the
9067126372Snjl"small" resource descriptor types were not recognized.
9068102550Siwasaki
9069193267SjkimImproved error messages for the case where an ASL Field is outside
9070126372Snjlthe range of the parent operation region.
9071102550Siwasaki
9072102550Siwasaki ASL Compiler, version X2018:
9073102550Siwasaki
9074167802Sjkim
9075193267SjkimAdded error detection for ASL Fields that extend beyond the length
9076126372Snjlof the parent operation region (only if the length of the region
9077126372Snjlis known at compile time.)  This includes fields that have a
9078126372Snjlminimum access width that is smaller than the parent region, and
9079126372Snjlindividual field units that are partially or entirely beyond the
9080126372Snjlextent of the parent.
9081102550Siwasaki
9082102550Siwasaki
9083102550Siwasaki
9084102550Siwasaki------------------------------------------
9085102550SiwasakiSummary of changes for this label: 04_27_01
9086102550Siwasaki
9087102550Siwasaki ACPI CA Core Subsystem:
9088102550Siwasaki
9089193267SjkimFixed a problem where the namespace mutex could be released at the
9090126372Snjlwrong time during execution of AcpiRemoveAddressSpaceHandler.
9091102550Siwasaki
9092104470SiwasakiAdded optional thread ID output for debug traces, to simplify
9093114237Snjldebugging of multiple threads.  Added context switch notification
9094114237Snjlwhen the debug code realizes that a different thread is now
9095114237Snjlexecuting ACPI code.
9096102550Siwasaki
9097114237SnjlSome additional external data types have been prefixed with the
9098114237Snjlstring "ACPI_" for consistency.  This may effect existing code.
9099193267SjkimThe data types affected are the external callback typedefs - e.g.,
9100167802Sjkim
9101126372SnjlWALK_CALLBACK becomes ACPI_WALK_CALLBACK.
9102102550Siwasaki
9103102550Siwasaki Linux:
9104102550Siwasaki
9105102550SiwasakiFixed an issue with the OSL semaphore implementation where a
9106102550Siwasakithread was waking up with an error from receiving a SIGCHLD
9107102550Siwasakisignal.
9108102550Siwasaki
9109114237SnjlLinux version of ACPI CA now uses the system C library for string
9110114237Snjlmanipulation routines instead of a local implementation.
9111102550Siwasaki
9112102550SiwasakiCleaned up comments and removed TBDs.
9113102550Siwasaki
9114102550Siwasaki ASL Compiler, version X2017:
9115102550Siwasaki
9116102550SiwasakiEnhanced error detection and reporting for all file I/O
9117102550Siwasakioperations.
9118102550Siwasaki
9119102550Siwasaki Documentation:
9120102550Siwasaki
9121102550SiwasakiProgrammer Reference updated to version 1.06.
9122102550Siwasaki
9123102550Siwasaki
9124102550Siwasaki
9125102550Siwasaki------------------------------------------
9126102550SiwasakiSummary of changes for this label: 04_13_01
9127102550Siwasaki
9128102550Siwasaki ACPI CA Core Subsystem:
9129102550Siwasaki
9130102550SiwasakiRestructured support for BufferFields and RegionFields.
9131104470SiwasakiBankFields support is now fully operational.  All known 32-bit
9132114237Snjllimitations on field sizes have been removed.  Both BufferFields
9133114237Snjland (Operation) RegionFields are now supported by the same field
9134114237Snjlmanagement code.
9135102550Siwasaki
9136114237SnjlResource support now supports QWORD address and IO resources. The
9137114237Snjl16/32/64 bit address structures and the Extended IRQ structure
9138114237Snjlhave been changed to properly handle Source Resource strings.
9139102550Siwasaki
9140114237SnjlA ThreadId of -1 is now used to indicate a "mutex not acquired"
9141193267Sjkimcondition internally and must never be returned by AcpiOsThreadId.
9142126372SnjlThis reserved value was changed from 0 since Unix systems allow a
9143126372Snjlthread ID of 0.
9144102550Siwasaki
9145102550SiwasakiLinux:
9146102550Siwasaki
9147102550SiwasakiDriver code reorganized to enhance portability
9148102550Siwasaki
9149102550SiwasakiAdded a kernel configuration option to control ACPI_DEBUG
9150102550Siwasaki
9151102550SiwasakiFixed the EC driver to honor _GLK.
9152102550Siwasaki
9153102550SiwasakiASL Compiler, version X2016:
9154102550Siwasaki
9155114237SnjlFixed support for the "FixedHw" keyword.  Previously, the FixedHw
9156114237Snjladdress space was set to 0, not 0x7f as it should be.
9157102550Siwasaki
9158102550Siwasaki ------------------------------------------
9159102550SiwasakiSummary of changes for this label: 03_13_01
9160102550Siwasaki
9161102550Siwasaki ACPI CA Core Subsystem:
9162102550Siwasaki
9163104470SiwasakiDuring ACPI initialization, the _SB_._INI method is now run if
9164104470Siwasakipresent.
9165102550Siwasaki
9166193267SjkimNotify handler fix - notifies are deferred until the parent method
9167126372Snjlcompletes execution.  This fixes the "mutex already acquired"
9168126372Snjlissue seen occasionally.
9169102550Siwasaki
9170104470SiwasakiPart of the "implicit conversion" rules in ACPI 2.0 have been
9171114237Snjlfound to cause compatibility problems with existing ASL/AML.  The
9172114237Snjlconvert "result-to-target-type" implementation has been removed
9173114237Snjlfor stores to method Args and Locals.  Source operand conversion
9174114237Snjlis still fully implemented.  Possible changes to ACPI 2.0
9175114237Snjlspecification pending.
9176102550Siwasaki
9177104470SiwasakiFix to AcpiRsCalculatePciRoutingTableLength to return correct
9178104470Siwasakilength.
9179102550Siwasaki
9180102550SiwasakiFix for compiler warnings for 64-bit compiles.
9181102550Siwasaki
9182102550Siwasaki Linux:
9183102550Siwasaki
9184102550Siwasaki/proc output aligned for easier parsing.
9185102550Siwasaki
9186102550SiwasakiRelease-version compile problem fixed.
9187102550Siwasaki
9188104470SiwasakiNew kernel configuration options documented in Configure.help.
9189102550Siwasaki
9190102550SiwasakiIBM 600E - Fixed Sleep button may generate "Invalid <NULL>
9191102550Siwasakicontext" message.
9192102550Siwasaki
9193102550Siwasaki OSPM:
9194102550Siwasaki
9195102550SiwasakiPower resource driver integrated with bus manager.
9196102550Siwasaki
9197102550SiwasakiFixed kernel fault during active cooling for thermal zones.
9198102550Siwasaki
9199102550SiwasakiSource Code:
9200102550Siwasaki
9201102550SiwasakiThe source code tree has been restructured.
9202102550Siwasaki
9203102550Siwasaki
9204102550Siwasaki
9205102550Siwasaki------------------------------------------
9206102550SiwasakiSummary of changes for this label: 03_02_01
9207102550Siwasaki
9208102550Siwasaki Linux OS Services Layer (OSL):
9209102550Siwasaki
9210102550SiwasakiMajor revision of all Linux-specific code.
9211102550Siwasaki
9212102550SiwasakiModularized all ACPI-specific drivers.
9213102550Siwasaki
9214102550SiwasakiAdded new thermal zone and power resource drivers.
9215102550Siwasaki
9216114237SnjlRevamped /proc interface (new functionality is under /proc/acpi).
9217102550Siwasaki
9218102550SiwasakiNew kernel configuration options.
9219102550Siwasaki
9220102550Siwasaki Linux known issues:
9221102550Siwasaki
9222114237SnjlNew kernel configuration options not documented in Configure.help
9223114237Snjlyet.
9224102550Siwasaki
9225114237Snjl
9226102550SiwasakiModule dependencies not currently implemented. If used, they
9227102550Siwasakishould be loaded in this order: busmgr, power, ec, system,
9228102550Siwasakiprocessor, battery, ac_adapter, button, thermal.
9229102550Siwasaki
9230102550SiwasakiModules will not load if CONFIG_MODVERSION is set.
9231102550Siwasaki
9232102550SiwasakiIBM 600E - entering S5 may reboot instead of shutting down.
9233102550Siwasaki
9234104470SiwasakiIBM 600E - Sleep button may generate "Invalid <NULL> context"
9235104470Siwasakimessage.
9236102550Siwasaki
9237104470SiwasakiSome systems may fail with "execution mutex already acquired"
9238104470Siwasakimessage.
9239102550Siwasaki
9240102550Siwasaki ACPI CA Core Subsystem:
9241102550Siwasaki
9242114237SnjlAdded a new OSL Interface, AcpiOsGetThreadId.  This was required
9243193267Sjkimfor the  deadlock detection code. Defined to return a non-zero, 32-
9244126372Snjlbit thread ID for the currently executing thread.  May be a non-
9245126372Snjlzero constant integer on single-thread systems.
9246102550Siwasaki
9247193267SjkimImplemented deadlock detection for internal subsystem mutexes.  We
9248126372Snjlmay add conditional compilation for this code (debug only) later.
9249102550Siwasaki
9250104470SiwasakiASL/AML Mutex object semantics are now fully supported.  This
9251114237Snjlincludes multiple acquires/releases by owner and support for the
9252167802Sjkim
9253114237SnjlMutex SyncLevel parameter.
9254102550Siwasaki
9255102550SiwasakiA new "Force Release" mechanism automatically frees all ASL
9256104470SiwasakiMutexes that have been acquired but not released when a thread
9257114237Snjlexits the interpreter.  This forces conformance to the ACPI spec
9258114237Snjl("All mutexes must be released when an invocation exits") and
9259114237Snjlprevents deadlocked ASL threads.  This mechanism can be expanded
9260114237Snjl(later) to monitor other resource acquisitions if OEM ASL code
9261114237Snjlcontinues to misbehave (which it will).
9262102550Siwasaki
9263104470SiwasakiSeveral new ACPI exception codes have been added for the Mutex
9264104470Siwasakisupport.
9265102550Siwasaki
9266104470SiwasakiRecursive method calls are now allowed and supported (the ACPI
9267114237Snjlspec does in fact allow recursive method calls.)  The number of
9268114237Snjlrecursive calls is subject to the restrictions imposed by the
9269114237SnjlSERIALIZED method keyword and SyncLevel (ACPI 2.0) method
9270104470Siwasakiparameter.
9271102550Siwasaki
9272102550SiwasakiImplemented support for the SyncLevel parameter for control
9273102550Siwasakimethods (ACPI 2.0 feature)
9274102550Siwasaki
9275114237SnjlFixed a deadlock problem when multiple threads attempted to use
9276114237Snjlthe interpreter.
9277102550Siwasaki
9278102550SiwasakiFixed a problem where the string length of a String package
9279102550Siwasakielement was not always set in a package returned from
9280102550SiwasakiAcpiEvaluateObject.
9281102550Siwasaki
9282114237SnjlFixed a problem where the length of a String package element was
9283114237Snjlnot always included in the length of the overall package returned
9284114237Snjlfrom AcpiEvaluateObject.
9285102550Siwasaki
9286102550SiwasakiAdded external interfaces (Acpi*) to the ACPI debug memory
9287102550Siwasakimanager.  This manager keeps a list of all outstanding
9288193267Sjkimallocations, and can therefore detect memory leaks and attempts to
9289126372Snjlfree memory blocks more than once. Useful for code such as the
9290114237Snjlpower manager, etc.  May not be appropriate for device drivers.
9291114237SnjlPerformance with the debug code enabled is slow.
9292102550Siwasaki
9293102550SiwasakiThe ACPI Global Lock is now an optional hardware element.
9294102550Siwasaki
9295102550Siwasaki ASL Compiler Version X2015:
9296102550Siwasaki
9297102550SiwasakiIntegrated changes to allow the compiler to be generated on
9298102550Siwasakimultiple platforms.
9299102550Siwasaki
9300102550SiwasakiLinux makefile added to generate the compiler on Linux
9301102550Siwasaki
9302102550Siwasaki Source Code:
9303102550Siwasaki
9304102550SiwasakiAll platform-specific headers have been moved to their own
9305102550Siwasakisubdirectory, Include/Platform.
9306102550Siwasaki
9307102550SiwasakiNew source file added, Interpreter/ammutex.c
9308102550Siwasaki
9309102550SiwasakiNew header file, Include/acstruct.h
9310102550Siwasaki
9311102550Siwasaki Documentation:
9312102550Siwasaki
9313114237SnjlThe programmer reference has been updated for the following new
9314114237Snjlinterfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
9315102550Siwasaki
9316102550Siwasaki ------------------------------------------
9317102550SiwasakiSummary of changes for this label: 02_08_01
9318102550Siwasaki
9319102550SiwasakiCore ACPI CA Subsystem: Fixed a problem where an error was
9320193267Sjkimincorrectly returned if the return resource buffer was larger than
9321126372Snjlthe actual data (in the resource interfaces).
9322102550Siwasaki
9323114237SnjlReferences to named objects within packages are resolved to the
9324167802Sjkim
9325114237Snjlfull pathname string before packages are returned directly (via
9326114237Snjlthe AcpiEvaluateObject interface) or indirectly via the resource
9327114237Snjlinterfaces.
9328102550Siwasaki
9329102550SiwasakiLinux OS Services Layer (OSL):
9330102550Siwasaki
9331102550SiwasakiImproved /proc battery interface.
9332102550Siwasaki
9333102550Siwasaki
9334104470SiwasakiAdded C-state debugging output and other miscellaneous fixes.
9335102550Siwasaki
9336102550SiwasakiASL Compiler Version X2014:
9337102550Siwasaki
9338114237SnjlAll defined method arguments can now be used as local variables,
9339114237Snjlincluding the ones that are not actually passed in as parameters.
9340114237SnjlThe compiler tracks initialization of the arguments and issues an
9341114237Snjlexception if they are used without prior assignment (just like
9342114237Snjllocals).
9343102550Siwasaki
9344193267SjkimThe -o option now specifies a filename prefix that is used for all
9345126372Snjloutput files, including the AML output file.  Otherwise, the
9346114237Snjldefault behavior is as follows:  1) the AML goes to the file
9347114237Snjlspecified in the DSDT.  2) all other output files use the input
9348114237Snjlsource filename as the base.
9349102550Siwasaki
9350102550Siwasaki ------------------------------------------
9351102550SiwasakiSummary of changes for this label: 01_25_01
9352102550Siwasaki
9353114237SnjlCore ACPI CA Subsystem: Restructured the implementation of object
9354114237Snjlstore support within the  interpreter.  This includes support for
9355114237Snjlthe Store operator as well  as any ASL operators that include a
9356114237Snjltarget operand.
9357102550Siwasaki
9358102550SiwasakiPartially implemented support for Implicit Result-to-Target
9359114237Snjlconversion. This is when a result object is converted on the fly
9360114237Snjlto the type of  an existing target object.  Completion of this
9361114237Snjlsupport is pending  further analysis of the ACPI specification
9362114237Snjlconcerning this matter.
9363102550Siwasaki
9364114237SnjlCPU-specific code has been removed from the subsystem (hardware
9365114237Snjldirectory).
9366102550Siwasaki
9367102550SiwasakiNew Power Management Timer functions added
9368102550Siwasaki
9369114237SnjlLinux OS Services Layer (OSL): Moved system state transition code
9370114237Snjlto the core, fixed it, and modified  Linux OSL accordingly.
9371102550Siwasaki
9372102550SiwasakiFixed C2 and C3 latency calculations.
9373102550Siwasaki
9374102550Siwasaki
9375114237SnjlWe no longer use the compilation date for the version message on
9376193267Sjkiminitialization, but retrieve the version from AcpiGetSystemInfo().
9377102550Siwasaki
9378102550SiwasakiIncorporated for fix Sony VAIO machines.
9379102550Siwasaki
9380104470SiwasakiDocumentation:  The Programmer Reference has been updated and
9381104470Siwasakireformatted.
9382102550Siwasaki
9383102550Siwasaki
9384102550SiwasakiASL Compiler:  Version X2013: Fixed a problem where the line
9385102550Siwasakinumbering and error reporting could get out  of sync in the
9386102550Siwasakipresence of multiple include files.
9387102550Siwasaki
9388102550Siwasaki ------------------------------------------
9389102550SiwasakiSummary of changes for this label: 01_15_01
9390102550Siwasaki
9391102550SiwasakiCore ACPI CA Subsystem:
9392102550Siwasaki
9393114237SnjlImplemented support for type conversions in the execution of the
9394114237SnjlASL  Concatenate operator (The second operand is converted to
9395114237Snjlmatch the type  of the first operand before concatenation.)
9396102550Siwasaki
9397102550SiwasakiSupport for implicit source operand conversion is partially
9398114237Snjlimplemented.   The ASL source operand types Integer, Buffer, and
9399114237SnjlString are freely  interchangeable for most ASL operators and are
9400114237Snjlconverted by the interpreter  on the fly as required.  Implicit
9401114237SnjlTarget operand conversion (where the  result is converted to the
9402114237Snjltarget type before storing) is not yet implemented.
9403102550Siwasaki
9404102550SiwasakiSupport for 32-bit and 64-bit BCD integers is implemented.
9405102550Siwasaki
9406193267SjkimProblem fixed where a field read on an aligned field could cause a
9407126372Snjlread  past the end of the field.
9408102550Siwasaki
9409114237SnjlNew exception, AE_AML_NO_RETURN_VALUE, is returned when a method
9410114237Snjldoes not return a value, but the caller expects one.  (The ASL
9411114237Snjlcompiler flags this as a warning.)
9412102550Siwasaki
9413102550SiwasakiASL Compiler:
9414102550Siwasaki
9415102550SiwasakiVersion X2011:
9416102550Siwasaki1. Static typechecking of all operands is implemented. This
9417193267Sjkimprevents the use of invalid objects (such as using a Package where
9418126372Snjlan Integer is required) at compile time instead of at interpreter
9419126372Snjlrun-time.
9420114237Snjl2. The ASL source line is printed with ALL errors and warnings.
9421102550Siwasaki3. Bug fix for source EOF without final linefeed.
9422193267Sjkim4. Debug option is split into a parse trace and a namespace trace.
9423102550Siwasaki5. Namespace output option (-n) includes initial values for
9424102550Siwasakiintegers and strings.
9425102550Siwasaki6. Parse-only option added for quick syntax checking.
9426102550Siwasaki7. Compiler checks for duplicate ACPI name declarations
9427102550Siwasaki
9428102550SiwasakiVersion X2012:
9429102550Siwasaki1. Relaxed typechecking to allow interchangeability between
9430114237Snjlstrings, integers, and buffers.  These types are now converted by
9431114237Snjlthe interpreter at runtime.
9432114237Snjl2. Compiler reports time taken by each internal subsystem in the
9433114237Snjldebug         output file.
9434102550Siwasaki
9435102550Siwasaki
9436102550Siwasaki ------------------------------------------
9437102550SiwasakiSummary of changes for this label: 12_14_00
9438102550Siwasaki
9439102550SiwasakiASL Compiler:
9440102550Siwasaki
9441104470SiwasakiThis is the first official release of the compiler. Since the
9442104470Siwasakicompiler requires elements of the Core Subsystem, this label
9443104470Siwasakisynchronizes everything.
9444102550Siwasaki
9445102550Siwasaki------------------------------------------
9446102550SiwasakiSummary of changes for this label: 12_08_00
9447102550Siwasaki
9448102550Siwasaki
9449114237SnjlFixed a problem where named references within the ASL definition
9450114237Snjlof both OperationRegions and CreateXXXFields did not work
9451114237Snjlproperly.  The symptom was an AE_AML_OPERAND_TYPE during
9452114237Snjlinitialization of the region/field. This is similar (but not
9453114237Snjlrelated internally) to the problem that was fixed in the last
9454114237Snjllabel.
9455114237Snjl
9456102550SiwasakiImplemented both 32-bit and 64-bit support for the BCD ASL
9457102550Siwasakifunctions ToBCD and FromBCD.
9458102550Siwasaki
9459102550SiwasakiUpdated all legal headers to include "2000" in the copyright
9460102550Siwasakiyears.
9461102550Siwasaki
9462102550Siwasaki ------------------------------------------
9463102550SiwasakiSummary of changes for this label: 12_01_00
9464102550Siwasaki
9465193267SjkimFixed a problem where method invocations within the ASL definition
9466126372Snjlof both OperationRegions and CreateXXXFields did not work
9467126372Snjlproperly.  The symptom was an AE_AML_OPERAND_TYPE during
9468114237Snjlinitialization of the region/field:
9469102550Siwasaki
9470114237Snjl  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
9471114237Snjl[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
9472114237Snjl(0x3005)
9473102550Siwasaki
9474102550SiwasakiFixed a problem where operators with more than one nested
9475104470Siwasakisubexpression would fail.  The symptoms were varied, by mostly
9476114237SnjlAE_AML_OPERAND_TYPE errors.  This was actually a rather serious
9477114237Snjlproblem that has gone unnoticed until now.
9478102550Siwasaki
9479102550Siwasaki  Subtract (Add (1,2), Multiply (3,4))
9480102550Siwasaki
9481114237SnjlFixed a problem where AcpiGetHandle didn't quite get fixed in the
9482114237Snjlprevious build (The prefix part of a relative path was handled
9483114237Snjlincorrectly).
9484102550Siwasaki
9485114237SnjlFixed a problem where Operation Region initialization failed if
9486114237Snjlthe operation region name was a "namepath" instead of a simple
9487114237Snjl"nameseg". Symptom was an AE_NO_OPERAND error.
9488102550Siwasaki
9489114237SnjlFixed a problem where an assignment to a local variable via the
9490114237Snjlindirect RefOf mechanism only worked for the first such
9491102550Siwasakiassignment.  Subsequent assignments were ignored.
9492102550Siwasaki
9493102550Siwasaki ------------------------------------------
9494102550SiwasakiSummary of changes for this label: 11_15_00
9495102550Siwasaki
9496193267SjkimACPI 2.0 table support with backwards support for ACPI 1.0 and the
9497193267Sjkim0.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
9498126372Snjlthe AML  interpreter does NOT have support for the new 2.0 ASL
9499126372Snjlgrammar terms at this time.
9500102550Siwasaki
9501193267SjkimAll ACPI hardware access is via the GAS structures in the ACPI 2.0
9502126372SnjlFADT.
9503102550Siwasaki
9504193267SjkimAll physical memory addresses across all platforms are now 64 bits
9505126372Snjlwide. Logical address width remains dependent on the platform
9506126372Snjl(i.e., "void *").
9507102550Siwasaki
9508114237SnjlAcpiOsMapMemory interface changed to a 64-bit physical address.
9509102550Siwasaki
9510114237SnjlThe AML interpreter integer size is now 64 bits, as per the ACPI
9511114237Snjl2.0 specification.
9512102550Siwasaki
9513104470SiwasakiFor backwards compatibility with ACPI 1.0, ACPI tables with a
9514104470Siwasakirevision number less than 2 use 32-bit integers only.
9515102550Siwasaki
9516114237SnjlFixed a problem where the evaluation of OpRegion operands did not
9517114237Snjlalways resolve them to numbers properly.
9518102550Siwasaki
9519102550Siwasaki------------------------------------------
9520102550SiwasakiSummary of changes for this label: 10_20_00
9521102550Siwasaki
9522114237SnjlFix for CBN_._STA issue.  This fix will allow correct access to
9523114237SnjlCBN_ OpRegions when the _STA returns 0x8.
9524102550Siwasaki
9525104470SiwasakiSupport to convert ACPI constants (Ones, Zeros, One) to actual
9526104470Siwasakivalues before a package object is returned
9527102550Siwasaki
9528104470SiwasakiFix for method call as predicate to if/while construct causing
9529104470Siwasakiincorrect if/while behavior
9530102550Siwasaki
9531114237SnjlFix for Else block package lengths sometimes calculated wrong (if
9532114237Snjlblock > 63 bytes)
9533102550Siwasaki
9534102550SiwasakiFix for Processor object length field, was always zero
9535102550Siwasaki
9536102550SiwasakiTable load abort if FACP sanity check fails
9537102550Siwasaki
9538102550SiwasakiFix for problem with Scope(name) if name already exists
9539102550Siwasaki
9540102550SiwasakiWarning emitted if a named object referenced cannot be found
9541102550Siwasaki(resolved) during method execution.
9542102550Siwasaki
9543102550Siwasaki
9544102550Siwasaki
9545102550Siwasaki
9546102550Siwasaki
9547102550Siwasaki------------------------------------------
9548102550SiwasakiSummary of changes for this label: 9_29_00
9549102550Siwasaki
9550114237SnjlNew table initialization interfaces: AcpiInitializeSubsystem no
9551114237Snjllonger has any parameters AcpiFindRootPointer - Find the RSDP (if
9552114237Snjlnecessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
9553114237Snjl>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
9554114237SnjlAcpiLoadTables
9555102550Siwasaki
9556193267SjkimNote: These interface changes require changes to all existing OSDs
9557102550Siwasaki
9558114237SnjlThe PCI_Config default address space handler is always installed
9559114237Snjlat the root namespace object.
9560102550Siwasaki
9561102550Siwasaki-------------------------------------------
9562102550SiwasakiSummary of changes for this label: 09_15_00
9563102550Siwasaki
9564102550SiwasakiThe new initialization architecture is implemented.  New
9565114237Snjlinterfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
9566114237SnjlAcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
9567167802Sjkim
9568114237Snjl(Namespace is automatically loaded when a table is loaded)
9569102550Siwasaki
9570193267SjkimThe ACPI_OPERAND_OBJECT has been optimized to shrink its size from
9571126372Snjl52 bytes to 32 bytes.  There is usually one of these for every
9572126372Snjlnamespace object, so the memory savings is significant.
9573102550Siwasaki
9574114237SnjlImplemented just-in-time evaluation of the CreateField operators.
9575102550Siwasaki
9576102550SiwasakiBug fixes for IA-64 support have been integrated.
9577102550Siwasaki
9578102550SiwasakiAdditional code review comments have been implemented
9579102550Siwasaki
9580193267SjkimThe so-called "third pass parse" has been replaced by a final walk
9581193267Sjkimthrough the namespace to initialize all operation regions (address
9582126372Snjlspaces) and fields that have not yet been initialized during the
9583126372Snjlexecution of the various _INI and REG methods.
9584102550Siwasaki
9585102550SiwasakiNew file - namespace/nsinit.c
9586102550Siwasaki
9587102550Siwasaki-------------------------------------------
9588102550SiwasakiSummary of changes for this label: 09_01_00
9589102550Siwasaki
9590193267SjkimNamespace manager data structures have been reworked to change the
9591126372Snjlprimary  object from a table to a single object.  This has
9592193267Sjkimresulted in dynamic memory  savings of 3X within the namespace and
9593126372Snjl2X overall in the ACPI CA subsystem.
9594102550Siwasaki
9595102550SiwasakiFixed problem where the call to AcpiEvFindPciRootBuses was
9596102550Siwasakiinadvertently left  commented out.
9597102550Siwasaki
9598114237SnjlReduced the warning count when generating the source with the GCC
9599114237Snjlcompiler.
9600102550Siwasaki
9601102550SiwasakiRevision numbers added to each module header showing the
9602104470SiwasakiSourceSafe version of the file.  Please refer to this version
9603114237Snjlnumber when giving us feedback or comments on individual modules.
9604102550Siwasaki
9605114237SnjlThe main object types within the subsystem have been renamed to
9606114237Snjlclarify their  purpose:
9607102550Siwasaki
9608102550SiwasakiACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
9609102550SiwasakiACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
9610102550SiwasakiACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
9611102550Siwasaki
9612114237SnjlNOTE: no changes to the initialization sequence are included in
9613114237Snjlthis label.
9614102550Siwasaki
9615102550Siwasaki-------------------------------------------
9616102550SiwasakiSummary of changes for this label: 08_23_00
9617102550Siwasaki
9618102550SiwasakiFixed problem where TerminateControlMethod was being called
9619102550Siwasakimultiple times per  method
9620102550Siwasaki
9621193267SjkimFixed debugger problem where single stepping caused a semaphore to
9622126372Snjlbe  oversignalled
9623102550Siwasaki
9624104470SiwasakiImproved performance through additional parse object caching -
9625104470Siwasakiadded  ACPI_EXTENDED_OP type
9626102550Siwasaki
9627102550Siwasaki-------------------------------------------
9628102550SiwasakiSummary of changes for this label: 08_10_00
9629102550Siwasaki
9630102550SiwasakiParser/Interpreter integration:  Eliminated the creation of
9631102550Siwasakicomplete parse trees  for ACPI tables and control methods.
9632114237SnjlInstead, parse subtrees are created and  then deleted as soon as
9633193267Sjkimthey are processed (Either entered into the namespace or  executed
9634126372Snjlby the interpreter).  This reduces the use of dynamic kernel
9635126372Snjlmemory  significantly. (about 10X)
9636102550Siwasaki
9637114237SnjlException codes broken into classes and renumbered.  Be sure to
9638114237Snjlrecompile all  code that includes acexcep.h.  Hopefully we won't
9639114237Snjlhave to renumber the codes  again now that they are split into
9640114237Snjlclasses (environment, programmer, AML code,  ACPI table, and
9641114237Snjlinternal).
9642102550Siwasaki
9643104470SiwasakiFixed some additional alignment issues in the Resource Manager
9644104470Siwasakisubcomponent
9645102550Siwasaki
9646114237SnjlImplemented semaphore tracking in the AcpiExec utility, and fixed
9647114237Snjlseveral places  where mutexes/semaphores were being unlocked
9648114237Snjlwithout a corresponding lock  operation.  There are no known
9649114237Snjlsemaphore or mutex "leaks" at this time.
9650102550Siwasaki
9651114237SnjlFixed the case where an ASL Return operator is used to return an
9652114237Snjlunnamed  package.
9653102550Siwasaki
9654102550Siwasaki-------------------------------------------
9655102550SiwasakiSummary of changes for this label: 07_28_00
9656102550Siwasaki
9657102550SiwasakiFixed a problem with the way addresses were calculated in
9658114237SnjlAcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
9659114237Snjlmanifested itself when a Field was  created with WordAccess or
9660193267SjkimDwordAccess, but the field unit defined within the  Field was less
9661167802Sjkim
9662126372Snjlthan a Word or Dword.
9663102550Siwasaki
9664102550SiwasakiFixed a problem in AmlDumpOperands() module's loop to pull
9665104470Siwasakioperands off of the  operand stack to display information. The
9666114237Snjlproblem manifested itself as a TLB  error on 64-bit systems when
9667114237Snjlaccessing an operand stack with two or more  operands.
9668102550Siwasaki
9669114237SnjlFixed a problem with the PCI configuration space handlers where
9670114237Snjlcontext was  getting confused between accesses. This required a
9671114237Snjlchange to the generic address  space handler and address space
9672193267Sjkimsetup definitions. Handlers now get both a  global handler context
9673126372Snjl(this is the one passed in by the user when executing
9674114237SnjlAcpiInstallAddressSpaceHandler() and a specific region context
9675114237Snjlthat is unique to  each region (For example, the _ADR, _SEG and
9676114237Snjl_BBN values associated with a  specific region). The generic
9677114237Snjlfunction definitions have changed to the  following:
9678102550Siwasaki
9679114237Snjltypedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
9680114237SnjlUINT32 Address, UINT32 BitWidth, UINT32 *Value, void
9681104470Siwasaki*HandlerContext, // This used to be void *Context void
9682102550Siwasaki*RegionContext); // This is an additional parameter
9683102550Siwasaki
9684102550Siwasakitypedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
9685102550SiwasakiRegionHandle, UINT32 Function, void *HandlerContext,  void
9686102550Siwasaki**RegionContext); // This used to be **ReturnContext
9687102550Siwasaki
9688102550Siwasaki-------------------------------------------
9689102550SiwasakiSummary of changes for this label: 07_21_00
9690102550Siwasaki
9691102550SiwasakiMajor file consolidation and rename.  All files within the
9692193267Sjkiminterpreter have been  renamed as well as most header files.  This
9693126372Snjlwas done to prevent collisions with  existing files in the host
9694126372SnjlOSs -- filenames such as "config.h" and "global.h"  seem to be
9695126372Snjlquite common.  The VC project files have been updated.  All
9696114237Snjlmakefiles  will require modification.
9697102550Siwasaki
9698114237SnjlThe parser/interpreter integration continues in Phase 5 with the
9699114237Snjlimplementation  of a complete 2-pass parse (the AML is parsed
9700114237Snjltwice) for each table;  This  avoids the construction of a huge
9701114237Snjlparse tree and therefore reduces the amount of  dynamic memory
9702114237Snjlrequired by the subsystem.  Greater use of the parse object cache
9703114237Snjlmeans that performance is unaffected.
9704102550Siwasaki
9705102550SiwasakiMany comments from the two code reviews have been rolled in.
9706102550Siwasaki
9707102550SiwasakiThe 64-bit alignment support is complete.
9708102550Siwasaki
9709102550Siwasaki-------------------------------------------
9710102550SiwasakiSummary of changes for this label: 06_30_00
9711102550Siwasaki
9712114237SnjlWith a nod and a tip of the hat to the technology of yesteryear,
9713114237Snjlwe've added  support in the source code for 80 column output
9714114237Snjldevices.  The code is now mostly  constrained to 80 columns or
9715114237Snjlless to support environments and editors that 1)  cannot display
9716114237Snjlor print more than 80 characters on a single line, and 2) cannot
9717114237Snjldisable line wrapping.
9718102550Siwasaki
9719104470SiwasakiA major restructuring of the namespace data structure has been
9720104470Siwasakicompleted.  The  result is 1) cleaner and more
9721114237Snjlunderstandable/maintainable code, and 2) a  significant reduction
9722114237Snjlin the dynamic memory requirement for each named ACPI  object
9723114237Snjl(almost half).
9724102550Siwasaki
9725102550Siwasaki-------------------------------------------
9726102550SiwasakiSummary of changes for this label: 06_23_00
9727102550Siwasaki
9728114237SnjlLinux support has been added.  In order to obtain approval to get
9729114237Snjlthe ACPI CA  subsystem into the Linux kernel, we've had to make
9730114237Snjlquite a few changes to the  base subsystem that will affect all
9731114237Snjlusers (all the changes are generic and OS- independent).  The
9732114237Snjleffects of these global changes have been somewhat far  reaching.
9733114237SnjlFiles have been merged and/or renamed and interfaces have been
9734114237Snjlrenamed.   The major changes are described below.
9735102550Siwasaki
9736102550SiwasakiOsd* interfaces renamed to AcpiOs* to eliminate namespace
9737102550Siwasakipollution/confusion  within our target kernels.  All OSD
9738114237Snjlinterfaces must be modified to match the new  naming convention.
9739102550Siwasaki
9740193267SjkimFiles merged across the subsystem.  A number of the smaller source
9741126372Snjland header  files have been merged to reduce the file count and
9742126372Snjlincrease the density of the  existing files.  There are too many
9743126372Snjlto list here.  In general, makefiles that  call out individual
9744126372Snjlfiles will require rebuilding.
9745102550Siwasaki
9746104470SiwasakiInterpreter files renamed.  All interpreter files now have the
9747104470Siwasakiprefix am*  instead of ie* and is*.
9748102550Siwasaki
9749104470SiwasakiHeader files renamed:  The acapi.h file is now acpixf.h.  The
9750114237Snjlacpiosd.h file is  now acpiosxf.h.  We are removing references to
9751114237Snjlthe acronym "API" since it is  somewhat windowsy. The new name is
9752114237Snjl"external interface" or xface or xf in the  filenames.j
9753102550Siwasaki
9754102550Siwasaki
9755114237SnjlAll manifest constants have been forced to upper case (some were
9756193267Sjkimmixed case.)   Also, the string "ACPI_" has been prepended to many
9757126372Snjl(not all) of the constants,  typedefs, and structs.
9758102550Siwasaki
9759102550SiwasakiThe globals "DebugLevel" and "DebugLayer" have been renamed
9760102550Siwasaki"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
9761102550Siwasaki
9762102550SiwasakiAll other globals within the subsystem are now prefixed with
9763102550Siwasaki"AcpiGbl_" Internal procedures within the subsystem are now
9764114237Snjlprefixed with "Acpi" (with only  a few exceptions).  The original
9765193267Sjkimtwo-letter abbreviation for the subcomponent  remains after "Acpi"
9766126372Snjl- for example, CmCallocate became AcpiCmCallocate.
9767102550Siwasaki
9768102550SiwasakiAdded a source code translation/conversion utility.  Used to
9769114237Snjlgenerate the Linux  source code, it can be modified to generate
9770114237Snjlother types of source as well. Can  also be used to cleanup
9771114237Snjlexisting source by removing extraneous spaces and blank  lines.
9772114237SnjlFound in tools/acpisrc/*
9773102550Siwasaki
9774102550SiwasakiOsdUnMapMemory was renamed to OsdUnmapMemory and then
9775102550SiwasakiAcpiOsUnmapMemory.  (UnMap  became Unmap).
9776102550Siwasaki
9777114237SnjlA "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
9778114237SnjlWhen set to  one, this indicates that the caller wants to use the
9779167802Sjkim
9780114237Snjlsemaphore as a mutex, not a  counting semaphore.  ACPI CA uses
9781114237Snjlboth types.  However, implementers of this  call may want to use
9782114237Snjldifferent OS primitives depending on the type of semaphore
9783114237Snjlrequested.  For example, some operating systems provide separate
9784167802Sjkim
9785193267Sjkim"mutex" and  "semaphore" interfaces - where the mutex interface is
9786126372Snjlmuch faster because it  doesn't have all the overhead of a full
9787126372Snjlsemaphore implementation.
9788102550Siwasaki
9789104470SiwasakiFixed a deadlock problem where a method that accesses the PCI
9790114237Snjladdress space can  block forever if it is the first access to the
9791114237Snjlspace.
9792102550Siwasaki
9793102550Siwasaki-------------------------------------------
9794102550SiwasakiSummary of changes for this label: 06_02_00
9795102550Siwasaki
9796102550SiwasakiSupport for environments that cannot handle unaligned data
9797114237Snjlaccesses (e.g.  firmware and OS environments devoid of alignment
9798193267Sjkimhandler technology namely  SAL/EFI and the IA-64 Linux kernel) has
9799126372Snjlbeen added (via configurable macros) in  these three areas: -
9800114237SnjlTransfer of data from the raw AML byte stream is done via byte
9801193267Sjkimmoves instead of    word/dword/qword moves. - External objects are
9802126372Snjlaligned within the user buffer, including package   elements (sub-
9803193267Sjkimobjects). - Conversion of name strings to UINT32 Acpi Names is now
9804126372Snjldone byte-wise.
9805102550Siwasaki
9806102550SiwasakiThe Store operator was modified to mimic Microsoft's
9807102550Siwasakiimplementation when storing  to a Buffer Field.
9808102550Siwasaki
9809102550SiwasakiAdded a check of the BM_STS bit before entering C3.
9810102550Siwasaki
9811114237SnjlThe methods subdirectory has been obsoleted and removed.  A new
9812114237Snjlfile, cmeval.c  subsumes the functionality.
9813102550Siwasaki
9814102550SiwasakiA 16-bit (DOS) version of AcpiExec has been developed.  The
9815102550Siwasakimakefile is under  the acpiexec directory.
9816