freebsd-dev/sys/riscv
Mitchell Horne 8babb5582e riscv: fix VM_MAXUSER_ADDRESS checks in asm routines
There are two issues with the checks against VM_MAXUSER_ADDRESS. First,
the comparison should consider the values as unsigned, otherwise
addresses with the high bit set will fail to branch. Second, the value
of VM_MAXUSER_ADDRESS is, by convention, one larger than the maximum
mappable user address and invalid itself. Thus, use the bgeu instruction
for these comparisons.

Add a regression test case for copyin(9).

PR:		257193
Reported by:	Robert Morris <rtm@lcs.mit.edu>
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D31209
2021-10-07 18:12:30 -03:00
..
conf riscv: Add vt and kbdmux to GENERIC for video console support 2021-10-03 19:34:53 +01:00
include riscv: handle page faults in the unmappable region 2021-10-07 18:12:17 -03:00
riscv riscv: fix VM_MAXUSER_ADDRESS checks in asm routines 2021-10-07 18:12:30 -03:00
sifive sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-08-30 23:38:02 +01:00