freebsd-dev/sys/sparc64
Mark Johnston 46fcd1af63 Move kernel dump offset tracking into MI code.
All of the kernel dump implementations keep track of the current offset
("dumplo") within the dump device. However, except for textdumps, they
all write the dump sequentially, so we can reduce code duplication by
having the MI code keep track of the current offset. The new
dump_append() API can be used to write at the current offset.

This is needed to implement support for kernel dump compression in the
MI kernel dump code.

Also simplify dump_encrypted_write() somewhat: use dump_write() instead
of duplicating its bounds checks, and get rid of the redundant offset
tracking.

Reviewed by:	cem
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D11722
2017-10-18 15:38:05 +00:00
..
central Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
conf Fix indentation for r323068 2017-09-19 20:40:05 +00:00
ebus Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
fhc Consistently use device_t 2016-08-09 19:32:06 +00:00
include Add AT_HWCAP and AT_EHDRFLAGS on all platforms. 2017-09-14 14:26:55 +00:00
isa Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
pci Fix a bug introduced as part of r287726; use the right device_t for 2017-04-29 00:53:17 +00:00
sbus Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sparc64 Move kernel dump offset tracking into MI code. 2017-10-18 15:38:05 +00:00