freebsd-dev/sys/riscv/include
Mitchell Horne 818390ce0c arm64: fix early devmap assertion
The purpose of this KASSERT is to ensure that we do not run out of space
in the early devmap. However, the devmap grew beyond its initial size of
2MB in r336519, and this assertion did not grow with it.

A devmap mapping of a 1080p framebuffer requires 1920x1080 bytes, or
1.977 MB, so it is just barely able to fit without triggering the
assertion, provided no other devices are mapped before it. With the
addition of `options GDB` in GENERIC by bbfa199cbc, the uart is now
mapped for the purposes of a debug port, before mapping the framebuffer.
The presence of both these conditions pushes the selected virtual
address just below the threshold, triggering the assertion.

To fix this, use the correct size of the devmap, defined by
PMAP_MAPDEV_EARLY_SIZE. Since this code is shared with RISC-V, define
it for that platform as well (although it is a different size).

PR:		25241
Reported by:	gbe
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2021-01-13 17:27:44 -04:00
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h
asm.h Add .cfi_{start,end}proc for RISC-V assembly functions 2020-11-26 17:37:22 +00:00
atomic.h riscv: clean up empty lines in .c and .h files 2020-09-01 21:21:03 +00:00
bus_dma_impl.h
bus_dma.h
bus.h Add missing assignment forgotten in r365899 2020-09-20 15:11:52 +00:00
clock.h
counter.h riscv: small counter(9) improvements 2020-12-11 20:01:45 +00:00
cpu.h
cpufunc.h
db_machdep.h riscv: improve exception code naming 2020-10-24 20:57:13 +00:00
dump.h
efi.h
elf.h
encoding.h
endian.h
exec.h
float.h
floatingpoint.h
fpe.h
frame.h
ieeefp.h libc: Provide sub fp(s|g)etmask() implementations for RISC-V 2020-08-03 12:48:51 +00:00
in_cksum.h
intr.h
kdb.h
machdep.h Handle load from loader(8) 2020-06-24 15:20:00 +00:00
md_var.h Move vm_page_dump bitset array definition to MI code 2020-09-21 22:20:37 +00:00
memdev.h riscv: Add memmmap so we can mmap /dev/mem 2020-10-01 15:04:55 +00:00
metadata.h RISC-V boot1.efi and loader.efi support 2020-07-06 18:19:42 +00:00
minidump.h Sparsify the vm_page_dump bitmap 2020-09-21 22:21:59 +00:00
ofw_machdep.h
param.h riscv: Define __PCI_REROUTE_INTERRUPT 2020-09-30 02:21:38 +00:00
pcb.h
pcpu_aux.h Correct padding length for RISC-V PCPU data. 2020-08-12 18:45:36 +00:00
pcpu.h Correct padding length for RISC-V PCPU data. 2020-08-12 18:45:36 +00:00
pmap.h
pmc_mdep.h
proc.h Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
procctl.h
profile.h riscv: fix uintfptr_t 2020-08-05 22:09:40 +00:00
psl.h
pte.h riscv pmap: zero reserved pte bits in ppn 2020-07-01 19:15:43 +00:00
ptrace.h
reg.h
reloc.h
resource.h
riscvreg.h riscv: improve exception code naming 2020-10-24 20:57:13 +00:00
runq.h
sbi.h riscv: report additional known SBI implementations 2020-12-18 20:10:30 +00:00
setjmp.h
sf_buf.h
sigframe.h
signal.h
smp.h
stack.h Stack unwinding robustness fixes for RISC-V. 2020-12-08 17:57:18 +00:00
stdarg.h
sysarch.h
trap.h
ucontext.h
vdso.h
vm.h
vmparam.h arm64: fix early devmap assertion 2021-01-13 17:27:44 -04:00