Call pte_spill_v() from the real mode fault handler instead of rerolling
authormpi <mpi@openbsd.org>
Fri, 5 Jun 2015 09:53:40 +0000 (09:53 +0000)
committermpi <mpi@openbsd.org>
Fri, 5 Jun 2015 09:53:40 +0000 (09:53 +0000)
commit9cbb3419f64a015dea68d8172adef764b0928098
tree9487b32db19ea6e9b2350b5d611de0a2528153eb
parent9f1f6018b4dbf73c8d7869cf6186edb96ac9df72
Call pte_spill_v() from the real mode fault handler instead of rerolling
it.  This will reduce the number of places to audit for locking.

Note that for profiling purposes pte_spill_v() is now marked a __noprof
since per-CPU profiling buffers are not guaranteed to be 1:1 mapped and
cannot be accessed from the real mode fault handler.

ok kettenis@, deraadt@, dlg@
sys/arch/powerpc/powerpc/pmap.c