diff options
Diffstat (limited to 'sys/powerpc/powerpc/pmap.c')
-rw-r--r-- | sys/powerpc/powerpc/pmap.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/powerpc/powerpc/pmap.c b/sys/powerpc/powerpc/pmap.c index 817f7f1..187e4b3 100644 --- a/sys/powerpc/powerpc/pmap.c +++ b/sys/powerpc/powerpc/pmap.c @@ -909,6 +909,17 @@ pmap_zero_page_area(vm_page_t m, int off, int size) TODO; } +void +pmap_zero_page_idle(vm_page_t m) +{ + + /* XXX this is called outside of Giant, is pmap_zero_page safe? */ + /* XXX maybe have a dedicated mapping for this to avoid the problem? */ + mtx_lock(&Giant); + pmap_zero_page(m); + mtx_unlock(&Giant); +} + /* * Map the given physical page at the specified virtual address in the * target pmap with the protection requested. If specified the page |