freebsd-dev/sys/mips
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
..
adm5120 Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
alchemy Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
atheros arge: correct bzero sizeof (pointed-to object, not pointer) 2017-08-30 17:38:55 +00:00
beri Switch BERI Programmable Interrupt Controller to INTRNG. 2017-04-18 17:20:03 +00:00
broadcom bhnd: Add support for supplying bus I/O callbacks when initializing an EROM 2017-09-27 19:48:34 +00:00
cavium octeon_ebt3000_cf: eliminate 'format string is not a string literal' warning 2017-08-30 22:54:11 +00:00
conf Enable dtrace support for mips64 and the ERL kernel config 2017-09-06 03:19:52 +00:00
gxemul Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
idt Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
include Add MIPS32/64 Rev2 CP0 intctl register definitions. 2017-09-15 19:56:21 +00:00
ingenic Add and use a MMC_DECLARE_BRIDGE macro for declaring mmc(4) bridges 2017-03-07 22:42:44 +00:00
malta Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
mediatek [mediatek] [gpio] add PPS / interrupt support. 2017-05-06 06:22:14 +00:00
mips Move kernel dump offset tracking into MI code. 2017-10-18 15:38:05 +00:00
nlm Fix build: include machine/bus.h before uart.h 2017-03-02 17:09:14 +00:00
rmi Deorbit catman. The tradeoff of disk for performance has long since tipped 2017-09-13 16:35:16 +00:00
rt305x Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00
sibyte Convert PCIe Hot Plug to using pci_request_feature 2017-02-25 06:11:59 +00:00