Page Table A&D bits scheme

Theo Z theo.zanibellato at cortus.com
Fri Jan 5 00:27:40 PST 2024


According to Privileged: 4.3.1 (p81)

"Two schemes to manage the A and D bits are permitted:"

* When a virtual page is accessed and the A bit is clear, or is written 
and the D bit is clear, a
page-fault exception is raised.

* When a virtual page is accessed and the A bit is clear, or is written 
and the D bit is clear, the
implementation sets the corresponding bit(s) in the PTE

Which implementation does Linux is expected to work best with?

(Unix kernel xv6 works with 2nd scheme only)

Best regards,

Theo Z




More information about the linux-riscv mailing list