Grzegorz Bernacki b8b08befd0 Switch to AP[2:1] access permissions model. Store "referenced"
bit in PTE.

Enable Access Flag in CPU control. With AF enabled each valid mapping
needs to have referenced bit in PTE set in order to be able to cache
it in the TLB.

AP[0] bit is to be used as reference flag.
All access permissions are encoded by AP[2:1] wherein AP[1] is in fact
"user enable" and AP[2](APX) is "write disable".

All mappings are always set to be valid. Reference emulation is performed
by setting/clearing reference flag in PTE.

md.pvh_attrs are no longer necessary however pv_flags are still being used
for now.

Marking vm_page as "dirty" or "referenced" is being performed on:
- page or flag fault servicing in pmap_fault_fixup(), basing on the fault
  type
- vm_fault servicing in pmap_enter() according to the desired protections
  and faulty access type
Redundant page marking has been removed as on ARM we know exactly when the
particular page is referenced or is going to be written.

Submitted by:	Zbigniew Bodek <zbb@semihalf.com>
Sponsored by:	The FreeBSD Foundation, Semihalf
2013-05-23 12:07:41 +00:00
..
2012-08-15 03:03:03 +00:00
2012-06-14 14:38:55 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-08-15 03:03:03 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-08-15 03:03:03 +00:00
2012-08-15 03:03:03 +00:00
2013-04-08 19:19:10 +00:00
2013-01-17 09:52:35 +00:00
2012-06-13 05:02:51 +00:00
2012-08-15 03:03:03 +00:00
2012-06-13 05:02:51 +00:00
2013-03-11 10:56:46 +00:00
2012-08-15 03:03:03 +00:00
2012-06-13 05:02:51 +00:00
2012-12-19 00:24:31 +00:00