OpenBSD CVS

CVS log for src/usr.sbin/acpidump/acpidump.c


[BACK] Up to [local] / src / usr.sbin / acpidump

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Sun Sep 11 10:40:35 2022 UTC (20 months, 3 weeks ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

When looking up a symble using kvm_nlist(3), we need to prepend an
underscore.  This fixes acpidump on arm64.  How this ever worked before
is unclear, but part of the puzzle is that we didn't properly check the
return value of the kvm_nlist(3) calls.  So fix that too.

ok deraadt@, mglocker@

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:20 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.23: +9 -9 lines
Diff to previous 1.23 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.23 / (download) - annotate - [select for diffs], Sat May 11 19:17:56 2019 UTC (5 years ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.22: +11 -9 lines
Diff to previous 1.22 (colored)

Make acpidump match the kernel's acpi_loadtables() behavior by
preferring XSDT over RSDT.

Thanks to kettenis@ who pointed out the mismatch.

ok guenther@ kettenis@

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 12 17:01:31 2019 UTC (5 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.21: +11 -4 lines
Diff to previous 1.21 (colored)

Add -q flag to suppress the message that ACPI information can't be found.

ok deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Aug 8 18:46:04 2018 UTC (5 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.20: +18 -11 lines
Diff to previous 1.20 (colored)

Unveil the special files needed for reading AML tables, and the
directory for placement.  We can only protect the directory case,
since the file_prefix+sig+id case is too large to enumerate.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 3 15:29:51 2018 UTC (5 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +19 -3 lines
Diff to previous 1.19 (colored)

We can only unveil if the prefix is a directory (the input paths, and the
output directory).  If prefix isn't a directory, that would require
enumerating all prefix<sig>.<id> filenames and unveiling all of them
which isn't reasonable... for the file case can we identify whether it
starts start with '/' or not, and unveil '/' or '.' for "w"?

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jun 30 19:45:41 2018 UTC (5 years, 11 months ago) by kettenis
Branch: MAIN
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (colored)

Use 64-bit DSDT pointer instead of the 32-bit one if it is zero.

ok deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 24 10:39:59 2018 UTC (5 years, 11 months ago) by kettenis
Branch: MAIN
Changes since 1.17: +143 -38 lines
Diff to previous 1.17 (colored)

Add support for parsing XSDT tables.  Add support for arm64.

ok deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Mon Sep 26 19:58:26 2016 UTC (7 years, 8 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.16: +12 -5 lines
Diff to previous 1.16 (colored)

If the argument of -o specifies a directory, dump the files without using a
prefix.

ok deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 12 04:02:57 2015 UTC (8 years, 7 months ago) by semarie
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

with the RPATH enforcement, acpidump(1) don't work anymore...

it needs rpath for reading /dev/mem (at least):
  kvm_openfiles(NULL, NULL, NULL, O_RDONLY, NULL)

ok doug@
fix the regression deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Oct 9 01:37:09 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Change all tame callers to namechange to pledge(2).

Revision 1.14 / (download) - annotate - [select for diffs], Sun Oct 4 08:31:01 2015 UTC (8 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

add "usage: " to usage(); from michael reed

Revision 1.13 / (download) - annotate - [select for diffs], Sat Oct 3 01:05:12 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +12 -4 lines
Diff to previous 1.12 (colored)

acpidump is used as root and opens /dev/mem readonly, to dig out
the AML tables.  (If this offends you, feel free to submit a diff
with a better extraction mechanism).
After hoisting the /dev/mem-opening code earlier, we can tame this
nasty program with "stdio wpath cpath".

Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 4 05:58:40 2015 UTC (8 years, 9 months ago) by jasper
Branch: MAIN
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

zap extra newline that snuck in

Revision 1.11 / (download) - annotate - [select for diffs], Thu Sep 3 11:30:13 2015 UTC (8 years, 9 months ago) by yasuoka
Branch: MAIN
Changes since 1.10: +49 -2 lines
Diff to previous 1.10 (colored)

Modify acpidump to work on systems booted from efi boot.  Use the ACPI
config address passed through the boot parameter.

ok mlarkin

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 8 10:28:02 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.9: +8 -3 lines
Diff to previous 1.9 (colored)

Stop using uvm_extern.h to fetch uvm_param.h; so define local versions
of trunc_page and such.  Horrid namespace violations, prepare for your
coming doom...
ok kettenis

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 3 01:47:06 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.8: +7 -8 lines
Diff to previous 1.8 (colored)

stop using sys/syslimits.h directly, and use limits.h
prodded by millert

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 12 19:44:26 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +22 -2 lines
Diff to previous 1.7 (colored)

prototype the mess of functions inside

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 8 14:40:19 2010 UTC (13 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

tweak previous; specifically, -o is no longer optional;
ok marco

Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 5 17:30:28 2010 UTC (13 years, 10 months ago) by marco
Branch: MAIN
Changes since 1.5: +467 -26 lines
Diff to previous 1.5 (colored)

kill kill kill the aml parser, kill kill kill it until it is dead

ok deraadt

Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 10 14:59:51 2008 UTC (15 years, 8 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Proper format string modifiers and missing includes to get correct prototypes
on 64-bit systems.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 19 18:34:31 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

missing break; spotted by robert, marco did not read the diff well enough or try it

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 17 18:58:24 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +8 -15 lines
Diff to previous 1.2 (colored)

fix getopt handling; ok marco

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 21 16:38:55 2005 UTC (18 years, 10 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

remove trailing newlines from err(3) calls; millert@ and matthieu@ ok.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 2 20:09:39 2005 UTC (19 years ago) by tholo
Branch: MAIN

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed.  This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.