coreboot-kgpe-d16/util/nvramtool
Stefan Reinauer 9981cad801 nvramtool: use C99 PRIx64 / PRId64 for uint64_t variables
In printf/printk, using %lld or %ld for uint64_t will warn on either
64bit or 32bit machines.  However, C99 defines PRIx64 / PRId64 to
provide the right modifiers for printing uint64_t variables. Use them
instead.

Change-Id: I68df5d069a1e99d1a75885173ddfd7815197afea
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/1053
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
2012-05-25 08:01:37 +02:00
..
accessors nvramtool: Unify nvramtool and build_opt_tbl 2012-04-21 09:36:24 +02:00
cli nvramtool: Unify nvramtool and build_opt_tbl 2012-04-21 09:36:24 +02:00
COPYING
ChangeLog
DISCLAIMER
Makefile Fix build with CMOS support on various platforms 2012-05-08 00:40:01 +02:00
Makefile.inc Fix build with CMOS support on various platforms 2012-05-08 00:40:01 +02:00
README
cbfs.c nvramtool: 64bit safe CBFS handling 2012-04-03 18:33:47 +02:00
cbfs.h Add nvramtool -C option that takes a CBFS file as argument. 2011-01-21 07:24:08 +00:00
cmos_lowlevel.c Fix build with CMOS support on various platforms 2012-05-08 00:40:01 +02:00
cmos_lowlevel.h Move CMOS handling into separate files in accessors 2011-01-28 07:54:11 +00:00
cmos_ops.c nvramtool: Fix CMOS checksum to match coreboot (and /dev/nvram) 2011-10-22 10:33:26 +02:00
cmos_ops.h
common.c nvramtool: Unify nvramtool and build_opt_tbl 2012-04-21 09:36:24 +02:00
common.h Move CMOS handling into separate files in accessors 2011-01-28 07:54:11 +00:00
compute_ip_checksum.c
coreboot_tables.h Eliminate strict aliasing related warnings. 2011-01-18 12:12:47 +00:00
hexdump.c hexdump: fix compiler warning 2012-04-07 19:57:42 +02:00
hexdump.h Remove overengineering, part 1/many 2011-01-18 12:14:08 +00:00
input_file.c No need to add varargs magic to a simple regex wrapper. 2011-01-28 07:40:08 +00:00
input_file.h
ip_checksum.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
layout.c
layout.h nvramtool: Unify nvramtool and build_opt_tbl 2012-04-21 09:36:24 +02:00
lbtable.c nvramtool: use C99 PRIx64 / PRId64 for uint64_t variables 2012-05-25 08:01:37 +02:00
lbtable.h nvramtool: Move code so it has access to the right data structures 2011-03-10 07:52:02 +00:00
nvramtool.spec
reg_expr.c No need to add varargs magic to a simple regex wrapper. 2011-01-28 07:40:08 +00:00
reg_expr.h No need to add varargs magic to a simple regex wrapper. 2011-01-28 07:40:08 +00:00

README

Summary of Operation
--------------------
nvramtool is a utility for reading/writing coreboot parameters and
displaying information from the coreboot table.  It is intended for x86-based
systems (both 32-bit and 64-bit) that use coreboot.

The coreboot table resides in low physical memory, and may be accessed
through the /dev/mem interface.  It is created at boot time by coreboot, and
contains various system information such as the type of mainboard in use.  It
specifies locations in the CMOS (nonvolatile RAM) where the coreboot
parameters are stored.

For information about coreboot, see http://www.coreboot.org/.

Ideas for Future Improvements
-----------------------------
1.  Move the core functionality of this program into a shared library.
2.  Consider adding options for displaying other BIOS-provided information
    such as the MP table, ACPI table, PCI IRQ routing table, etc.