CVS commit: src/sys/arch/aarch64

"Nick Hudson" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	skrll
Date:		Tue May 12 13:07:53 UTC 2026

Modified Files:
	src/sys/arch/aarch64/aarch64: pmap_machdep.c
	src/sys/arch/aarch64/include: pmap_machdep.h

Log Message:
aarch64: fix mod/ref emulation in the MI pmap support code

Correct the initial PTE settings as per the table below

   ref |  mod |  AF |      AP |  OS_MODEMUL
  emul | emul |     |         |
  -----+------+-----+---------+------------
    no |  no  | set |   RO/RW |  not set
   yes |  no  | clr |   RO/RW |  not set
    no | yes  | set |      RO |  set
   yes | yes  | clr |      RO |  set

  [*] a write fault should be fixed up, and allowed.

and detect the modified emulation using OS_MODEMUL in pmap_fault fixup.

TODO:
- MI PMAP pmap_clear_reference needs to look more like pmap_clear_modify
  and actually change PTE entries.
- MI PMAP needs support for HW updated modified and referenced bits.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/aarch64/aarch64/pmap_machdep.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/aarch64/include/pmap_machdep.h

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.