freebsd-nq/sys/riscv
Ruslan Bukin b51092c7ec Use SPP (Supervisor Previous Privilege) bit in the sstatus
register to determine if trap is from userspace.

Otherwise if we jump to kernel address from userspace, then
TRAPF_USERMODE failed to detect usermode and then do_ast
triggers a panic "ast in kernel mode".

Reviewed by:	markj@
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D16469
2018-07-27 16:13:06 +00:00
..
conf Make ZSTD a real option via ZSTDIO. 2018-07-05 17:07:23 +00:00
include Use SPP (Supervisor Previous Privilege) bit in the sstatus 2018-07-27 16:13:06 +00:00
riscv Implement pmap_mincore() for riscv. 2018-07-26 16:08:26 +00:00