CVS commit: [netbsd-11] src/sys

"Martin Husemann" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	martin
Date:		Wed Jun  3 18:17:03 UTC 2026

Modified Files:
	src/sys/arch/aarch64/include [netbsd-11]: pmap_machdep.h
	src/sys/arch/m68k/include [netbsd-11]: pte_coldfire.h
	src/sys/arch/mips/include [netbsd-11]: pte.h
	src/sys/arch/powerpc/include/booke [netbsd-11]: pte.h
	src/sys/arch/riscv/include [netbsd-11]: pte.h vmparam.h
	src/sys/arch/riscv/riscv [netbsd-11]: pmap_machdep.c trap.c
	src/sys/uvm/pmap [netbsd-11]: pmap.c pmap_segtab.c

Log Message:
Pull up following revision(s) (requested by skrll in ticket #293):

	sys/arch/riscv/include/pte.h: revision 1.18
	sys/arch/riscv/include/pte.h: revision 1.19
	sys/arch/aarch64/include/pmap_machdep.h: revision 1.15
	sys/arch/aarch64/include/pmap_machdep.h: revision 1.16
	sys/arch/riscv/riscv/trap.c: revision 1.32
	sys/arch/riscv/include/vmparam.h: revision 1.17
	sys/arch/riscv/include/vmparam.h: revision 1.18
	sys/uvm/pmap/pmap.c: revision 1.92
	sys/uvm/pmap/pmap.c: revision 1.93
	sys/arch/powerpc/include/booke/pte.h: revision 1.13
	sys/arch/m68k/include/pte_coldfire.h: revision 1.4
	sys/arch/powerpc/include/booke/pte.h: revision 1.14
	sys/uvm/pmap/pmap.c: revision 1.95
	sys/arch/riscv/include/pte.h: revision 1.20
	sys/arch/riscv/riscv/pmap_machdep.c: revision 1.27
	sys/arch/riscv/include/pte.h: revision 1.21
	sys/arch/riscv/riscv/pmap_machdep.c: revision 1.28
	sys/uvm/pmap/pmap_segtab.c: revision 1.36
	sys/arch/mips/include/pte.h: revision 1.28
	sys/arch/mips/include/pte.h: revision 1.29

fix indentation

Empty lines

G/C stray comment

Remove some empty lines.

KNF comments

Rename pte_prot_nowrite to pte_clear_modify

risc-v: fix ref/mod emulation PTE handling.

The previous code has zero chance of working and now that pmap_test_mod_ref
exists it can prove this code is correct.

Annotate page table/directory entry pointer deference with
atomic_load_relaxed to ensure memory operations aren't fused
or torn.

mi pmap: support code for HW updated referenced and modified PTE bits

Previously the MI PMAP would rely on mod/ref emulation to update
mdpg_attrs if a page was modified or referenced. Now support checking
each mapping's HW modified PTE bits (and updating mdpg_attrs).


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.2.1 src/sys/arch/aarch64/include/pmap_machdep.h
cvs rdiff -u -r1.2 -r1.2.72.1 src/sys/arch/m68k/include/pte_coldfire.h
cvs rdiff -u -r1.27 -r1.27.28.1 src/sys/arch/mips/include/pte.h
cvs rdiff -u -r1.11 -r1.11.28.1 src/sys/arch/powerpc/include/booke/pte.h
cvs rdiff -u -r1.14.2.2 -r1.14.2.3 src/sys/arch/riscv/include/pte.h
cvs rdiff -u -r1.14.8.1 -r1.14.8.2 src/sys/arch/riscv/include/vmparam.h
cvs rdiff -u -r1.21.2.2 -r1.21.2.3 src/sys/arch/riscv/riscv/pmap_machdep.c
cvs rdiff -u -r1.30.2.1 -r1.30.2.2 src/sys/arch/riscv/riscv/trap.c
cvs rdiff -u -r1.80.4.1 -r1.80.4.2 src/sys/uvm/pmap/pmap.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/uvm/pmap/pmap_segtab.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.