freebsd-nq/sys/mips
John Baldwin f2f9011e6c Fix dump_avail[] for MALTA platforms to include the kernel.
dump_avail[] is supposed to be a superset of phys_avail[] that
describes all of the memory ranges that should be included in a full
dump.  minidumps don't consider pages described by dump_avail[] to be
valid and thus they are excluded via the is_dumpable() function.  Most
MIPS platforms (including MALTA) set dump_avail[] to be identical to
phys_avail[].  In particular, phys_avail[] doesn't include the kernel
itself, so pages for the kernel and it's global variables are not
considered dumpable and not included in the dump.  Fix this by setting
dump_avail[0] to the first memory address (0) rather than the end of
the kernel.

Several other MIPS platforms have the same bug, though I am only able
to test malta in qemu.  The correct fix is to set dump_avail[] to
describe RAM and in particular to not set dump_avail[0] to the end of
the kernel (kernel_kseg0_end).

Sponsored by:	DARPA / AFRL
2016-12-22 20:28:06 +00:00
..
adm5120 Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
alchemy Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
atheros ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
beri Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
broadcom bhnd(4): minor style(9) fixes 2016-12-19 20:07:58 +00:00
cavium Fix device delete child function. 2016-10-17 10:20:38 +00:00
conf Add jz4780 AIC (Audio Interface Controller) driver. 2016-12-20 18:27:53 +00:00
gxemul Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
idt Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
include Increase pcpu size to 512 so it become both denominator 2016-11-23 11:30:40 +00:00
ingenic o Unmute headphones on Imgtec CI20 board. 2016-12-20 18:47:02 +00:00
malta Fix dump_avail[] for MALTA platforms to include the kernel. 2016-12-22 20:28:06 +00:00
mediatek ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
mips Add 'const' to fn_name's return type to remove a cast. 2016-12-14 00:21:06 +00:00
nlm Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
rmi Fix device delete child function. 2016-10-17 10:20:38 +00:00
rt305x ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
sibyte Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00