* Initialize a vm_page's machine-dependent fields. * * Variations: * 1. Pages for L2 page tables are always not managed. So, pv_list and * pt2_wirecount can share same physical space. However, proper * initialization on a page alloc for page tables and reinitialization * on the page free must be ensured. */
| 1614 | * on the page free must be ensured. |
| 1615 | */ |
| 1616 | void |
| 1617 | pmap_page_init(vm_page_t m) |
| 1618 | { |
| 1619 | |
| 1620 | TAILQ_INIT(&m->md.pv_list); |
| 1621 | pt2_wirecount_init(m); |
| 1622 | m->md.pat_mode = VM_MEMATTR_DEFAULT; |
| 1623 | } |
| 1624 | |
| 1625 | /* |
| 1626 | * Virtualization for faster way how to zero whole page. |
nothing calls this directly
no test coverage detected