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