Commit Graph

32 Commits

Author SHA1 Message Date
joerg
dccf569e0e Use __dead. 2011-08-29 20:38:53 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
mrg
2c77b0841d avoid code that looks like this:
x = x = y;
since GCC 4.5 complains about it having sequence point issues.
2011-06-21 09:36:46 +00:00
dyoung
4b2c4b100e It's not necessary to #include both <machine/bus.h> and <sys/bus.h>,
because <sys/bus.h> will do: <sys/bus.h> #includes <machine/bus.h>.
2011-05-30 01:15:30 +00:00
wiz
3d273e44b9 Sort option descriptions. Merge single-letter options in SYNOPSIS. 2011-02-17 17:05:05 +00:00
jruoho
e96937f774 Provide a definition for the size of the RSDP in ACPI 1.0.
Appears to be missing in the new ACPICA.
2011-02-17 15:06:34 +00:00
jmcneill
0a87e1998a document -c and -s flags 2011-02-17 10:21:02 +00:00
jmcneill
d34a996f1f - when dumping table bytes, make sure to dump our header and not the next one
- also dump tables with bad checksums, unless the -s flag is specified
2011-02-17 10:18:05 +00:00
jmcneill
d91f7d5299 dump bytes for tables that acpidump doesn't decode, and print them
as characters instead of hex if '-c' flag is provided
2011-02-17 02:55:16 +00:00
jruoho
2f16bead08 Fix theoretical buffer overflow by using MAXPATHLEN for realpath(3). 2010-12-19 16:25:16 +00:00
abs
564d9d15f0 Put "MAN= acpidump.8" back outside the i386/amd64 block so its in the
MI manpages, and non i386/amd64 setlists are correct again
2009-12-27 21:42:22 +00:00
cegger
3b140d483b Import acpidump from FreeBSD per request from jmcneill@
Changes made in the port:
- adapt path to iasl from /usr/sbin/iasl to /usr/bin/iasl
- fix realpath() usage to accomplish NetBSD's behaviour
- use EXIT_FAILURE/EXIT_SUCCESS everywhere
- fix crash on corrupt DSDT file and print proper error message
- implemented additional ACPI table parsers for
  BERT, BOOT, CPEP, DBGP, EINJ, ERST, HEST, MSCT, SBST,
  SLIT, SPCR, TCPA, WAET, WDAT and WDRT
2009-12-22 08:44:03 +00:00
cegger
de1cae9a73 msg.txt 2009-12-22 08:44:02 +00:00
cegger
09f2089b95 Import acpidump from FreeBSD per request from jmcneill@
Changes made in the port:
- adapt path to iasl from /usr/sbin/iasl to /usr/bin/iasl
- fix realpath() usage to accomplish NetBSD's behaviour
- use EXIT_FAILURE/EXIT_SUCCESS everywhere
- fix crash on corrupt DSDT file and print proper error message
- implemented additional ACPI table parsers for
  BERT, BOOT, CPEP, DBGP, EINJ, ERST, HEST, MSCT, SBST,
  SLIT, SPCR, TCPA, WAET, WDAT and WDRT
2009-12-22 08:44:02 +00:00
joerg
13ed0794d0 Escape literal backslashes. 2009-11-02 00:35:32 +00:00
cegger
82c98410be fix acpidump segfault 2009-10-08 13:16:13 +00:00
lukem
d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
abs
515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
lukem
e7dd2c7514 fix -Wsign-compare issues 2009-01-18 09:46:59 +00:00
gmcgarry
73cbf887f2 Include aml/aml_region.h after aml/aml_common.h to avoid redefinition errors. 2008-08-29 00:50:01 +00:00
lukem
21130793da Convert a simple tbl(1) table (which wasn't being formatted)
into a .Bl -tag.
2008-02-26 04:50:02 +00:00
drochner
e6c8051893 -if an RSDT entry points to a table with invalid checksum, print
a warning and continue, rather than aborting -- some BIOSes disable
 tables this way (in my case the TCPA table if the TPM is disabled)
-no terminating newline in err(3) calls
2008-02-13 18:59:18 +00:00
joerg
5d2d87e3f2 Fix quoting of string literals, printing of names and add most ACPI 3.0
opcodes. This is good enough to create output that can be compiled with
acpi-iasl to the same binary as it would create from its down ASL dump
on my laptop, when I manually fix the use of reserved identifiers in the
DSDT.
2008-02-13 11:47:36 +00:00
dogcow
8f7115c4c1 make it compile for the !defined(DEBUG) case. 2008-02-03 09:25:49 +00:00
christos
f408a0fef8 comment out some asserts for now. 2008-02-03 03:40:52 +00:00
jmcneill
379c0e1a15 Workaround potential crash in acpidump, from Yorick Hardy. 2008-01-15 19:08:00 +00:00
wiz
d23d0c4a93 New sentence, new line.
Sort sections.
Fix a typo.
Comment out xref to acpiconf(8), which we don't have.
Use HTML macros.
2007-01-14 12:30:24 +00:00
wiz
266bca7bda Sort sections, sort SEE ALSO. Use Rs/Re for citation.
Remove URL that points to a 404. Use HTML macros.
Comment out xrefs to mem(4) and acpiconf(8) since we do not have them.
2007-01-14 12:25:42 +00:00
dogcow
7ac7d15dd5 Now compiles on amd64, mostly due to %llx -> %PRIx64, but also changing some
internal structures around. (yay for assuming that pointers can be held in
an int. bah.)

Not sure if it actually _works_ on amd64, but as the output on my i386
doesn't change pre/post-patching, that seems good enough for now.
2007-01-14 05:33:18 +00:00
christos
02dcb4ad58 only build on i386 and amd64. 2007-01-14 04:44:11 +00:00
christos
53e202c131 Add acpitools 2007-01-14 04:36:13 +00:00