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