Name Date Size #Lines LOC

..--

MakefileH A D27-Sep-2016928 4318

ReadmeH A D27-Sep-20161.3 KiB4529

acpidump.hH A D27-Sep-20164.7 KiB15773

apdump.cH A D27-Sep-201613.4 KiB498248

apfiles.cH A D27-Sep-20168 KiB292137

apmain.cH A D27-Sep-201611.4 KiB427223

osillumostbl.cH A D27-Sep-201625.4 KiB1,061601

osunixdir.cH A D27-Sep-20166.9 KiB222102

tbprint.cH A D27-Sep-20168.2 KiB273113

tbxfroot.cH A D27-Sep-20169.4 KiB324136

utbuffer.cH A D27-Sep-201610.5 KiB363179

Readme

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