diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-01 21:31:31 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-01 21:31:31 -0400 |
commit | a3a1cf9889bda1467f0326984af3560aa5c3ec01 (patch) | |
tree | 6acb2424073b5ccfe7af3c32d1f8bc8731af6ed3 /sys/include/vm/pmap.h | |
parent | 068224956eff541e1c9b54cd2042cc67fac1761f (diff) |
kernel/amd64: pmap: Add PTE dirty bit handling
Add support for managing the page table entry dirty bit. This will allow
vm(9) to know when to page-out data to backing store, among other
things.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/vm/pmap.h')
-rw-r--r-- | sys/include/vm/pmap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/include/vm/pmap.h b/sys/include/vm/pmap.h index 9eed184..e1f3f89 100644 --- a/sys/include/vm/pmap.h +++ b/sys/include/vm/pmap.h @@ -76,6 +76,17 @@ int pmap_map(struct vas vas, vaddr_t va, paddr_t pa, vm_prot_t prot); int pmap_unmap(struct vas vas, vaddr_t va); /* + * Returns true if the page is clean (modified), otherwise + * returns false. + */ +bool pmap_is_clean(struct vas vas, vaddr_t va); + +/* + * Marks a page as clean (unmodified) + */ +void pmap_mark_clean(struct vas vas, vaddr_t va); + +/* * Mark a virtual address with a specific * caching type. */ |