freebsd-dev/sys/arm
Mark Johnston b957b18594 Always use 64-bit physical addresses for dump_avail[] in minidumps
As of r365978, minidumps include a copy of dump_avail[].  This is an
array of vm_paddr_t ranges.  libkvm walks the array assuming that
sizeof(vm_paddr_t) is equal to the platform "word size", but that's not
correct on some platforms.  For instance, i386 uses a 64-bit vm_paddr_t.

Fix the problem by always dumping 64-bit addresses.  On platforms where
vm_paddr_t is 32 bits wide, namely arm and mips (sometimes), translate
dump_avail[] to an array of uint64_t ranges.  With this change, libkvm
no longer needs to maintain a notion of the target word size, so get rid
of it.

This is a no-op on platforms where sizeof(vm_paddr_t) == 8.

Reviewed by:	alc, kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D27082
2020-12-03 17:12:31 +00:00
..
allwinner arm: allwinner: aw_mmc: Add a sysctl for debuging 2020-11-30 14:48:50 +00:00
altera/socfpga arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
annapurna/alpine Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
arm Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
broadcom/bcm2835 bcm2838_pci.c: Respect DMA limits of controller. 2020-09-12 23:49:43 +00:00
cloudabi32 Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
conf Remove unused options. 2020-11-29 17:42:32 +00:00
freescale Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
include Store MPIDR register in pcpu. 2020-11-29 18:59:01 +00:00
linux Regen after r366145. 2020-09-25 10:05:38 +00:00
mv Remove remaining fragments of code for older already ceased ARM versions. 2020-11-29 15:24:00 +00:00
nvidia arm: tegra: Remove unused variable 2020-11-26 17:19:30 +00:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
samsung/exynos arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
ti arm: ti: Remove unused function ti_first_gpio_bank 2020-11-26 17:18:54 +00:00
versatile Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00