xref: /titanic_51/usr/src/cmd/acpi/acpidump/Readme (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
1*385cc6b4SJerry Jelinek
2*385cc6b4SJerry Jelinek
3*385cc6b4SJerry JelinekThis file and its contents are supplied under the terms of the
4*385cc6b4SJerry JelinekCommon Development and Distribution License ("CDDL"), version 1.0.
5*385cc6b4SJerry JelinekYou may only use this file in accordance with the terms of version
6*385cc6b4SJerry Jelinek1.0 of the CDDL.
7*385cc6b4SJerry Jelinek
8*385cc6b4SJerry JelinekA full copy of the text of the CDDL should have accompanied this
9*385cc6b4SJerry Jelineksource.  A copy of the CDDL is also available via the Internet at
10*385cc6b4SJerry Jelinekhttp://www.illumos.org/license/CDDL.
11*385cc6b4SJerry Jelinek
12*385cc6b4SJerry JelinekCopyright 2016 Joyent, Inc.
13*385cc6b4SJerry Jelinek
14*385cc6b4SJerry Jelinek---
15*385cc6b4SJerry Jelinek
16*385cc6b4SJerry JelinekThere is a bug in the interaction of acpidump and acpixtract when the table
17*385cc6b4SJerry Jelineksize is greater than 1MB. The acpixtract code will stop parsing a table if
18*385cc6b4SJerry Jelinekthe first character on a line is not a space (' '). The acpidump code will
19*385cc6b4SJerry Jelinekoverflow the offset into the first character after 1MB. Until this is fixed
20*385cc6b4SJerry Jelinekupstream, the following patch can be used against new versions of the acpi
21*385cc6b4SJerry Jelineksource.
22*385cc6b4SJerry Jelinek
23*385cc6b4SJerry Jelinek
24*385cc6b4SJerry Jelinek--- a/usr/src/cmd/acpi/acpidump/utbuffer.c
25*385cc6b4SJerry Jelinek+++ b/usr/src/cmd/acpi/acpidump/utbuffer.c
26*385cc6b4SJerry Jelinek@@ -97,7 +97,7 @@ AcpiUtDumpBuffer (
27*385cc6b4SJerry Jelinek     {
28*385cc6b4SJerry Jelinek         /* Print current offset */
29*385cc6b4SJerry Jelinek
30*385cc6b4SJerry Jelinek-        AcpiOsPrintf ("%6.4X: ", (BaseOffset + i));
31*385cc6b4SJerry Jelinek+        AcpiOsPrintf ("%7.4X: ", (BaseOffset + i));
32*385cc6b4SJerry Jelinek
33*385cc6b4SJerry Jelinek         /* Print 16 hex chars */
34*385cc6b4SJerry Jelinek
35*385cc6b4SJerry Jelinek@@ -279,7 +279,7 @@ AcpiUtDumpBufferToFile (
36*385cc6b4SJerry Jelinek     {
37*385cc6b4SJerry Jelinek         /* Print current offset */
38*385cc6b4SJerry Jelinek
39*385cc6b4SJerry Jelinek-        AcpiUtFilePrintf (File, "%6.4X: ", (BaseOffset + i));
40*385cc6b4SJerry Jelinek+        AcpiUtFilePrintf (File, "%7.4X: ", (BaseOffset + i));
41*385cc6b4SJerry Jelinek
42*385cc6b4SJerry Jelinek         /* Print 16 hex chars */
43*385cc6b4SJerry Jelinek
44*385cc6b4SJerry Jelinek
45