freebsd-nq/sys/riscv/riscv
John Baldwin 6f888020df Set PTE_A and PTE_D for user mappings in pmap_enter().
This assumes that an access according to the prot in 'flags' triggered
a fault and is going to be retried after the fault returns, so the two
flags are set preemptively to avoid refaulting on the retry.

While here, only bother setting PTE_D for kernel mappings in pmap_enter
for writable mappings.

Reviewed by:	markj
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D17782
2018-11-01 22:17:51 +00:00
..
autoconf.c
bus_machdep.c
bus_space_asm.S
busdma_machdep.c Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
clock.c
copyinout.S Permit supervisor to access user VA space for certain functions only. 2018-09-05 11:34:58 +00:00
copystr.c
cpufunc_asm.S Various fixes for TLB management on RISC-V. 2018-10-15 18:56:54 +00:00
db_disasm.c Rewrite RISC-V disassembler: 2018-08-14 16:03:03 +00:00
db_interface.c Various fixes for TLB management on RISC-V. 2018-10-15 18:56:54 +00:00
db_trace.c
dump_machdep.c
elf_machdep.c Use elf_relocaddr() to find the address for R_RISCV_RELATIVE 2018-09-12 08:12:34 +00:00
exception.S Permit supervisor to access user VA space for certain functions only. 2018-09-05 11:34:58 +00:00
genassym.c
identcpu.c
in_cksum.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
intr_machdep.c SBI calls expect a pointer to a u_long rather than a pointer. 2018-11-01 22:15:25 +00:00
locore.S Support RISC-V implementations that do not manage the A and D bits 2018-10-18 15:25:07 +00:00
machdep.c Don't allow debuggers to modify SSTATUS, only to read it. 2018-11-01 22:13:22 +00:00
mem.c
minidump_machdep.c Follow r317061 "Remove struct vmmeter from struct pcpu" 2017-04-19 17:06:32 +00:00
mp_machdep.c SBI calls expect a pointer to a u_long rather than a pointer. 2018-11-01 22:15:25 +00:00
nexus.c o Add driver for PLIC (Platform-Level Interrupt Controller) device. 2018-06-12 17:45:15 +00:00
ofw_machdep.c
plic.c Initialize interrupt priority to 0 on all sources. 2018-10-12 15:51:41 +00:00
pmap.c Set PTE_A and PTE_D for user mappings in pmap_enter(). 2018-11-01 22:17:51 +00:00
riscv_console.c Support for v1.10 (latest) of RISC-V privilege specification. 2017-08-10 14:18:09 +00:00
soc.c Embed a simplebus_softc in struct soc_softc. 2018-07-24 21:02:11 +00:00
stack_machdep.c
support.S Permit supervisor to access user VA space for certain functions only. 2018-09-05 11:34:58 +00:00
swtch.S Various fixes for floating point on RISC-V. 2018-09-19 23:45:18 +00:00
sys_machdep.c
timer.c o Add driver for PLIC (Platform-Level Interrupt Controller) device. 2018-06-12 17:45:15 +00:00
trap.c Support RISC-V implementations that do not manage the A and D bits 2018-10-18 15:25:07 +00:00
uio_machdep.c
uma_machdep.c Implement uma_small_alloc(), uma_small_free(). 2018-08-08 16:08:38 +00:00
unwind.c
vm_machdep.c Permit supervisor to access user VA space for certain functions only. 2018-09-05 11:34:58 +00:00