Simplify vmapbuf by moving the vm_map_pmap computation off loop (inspired by similar code in the sparc port). Compile the diagnostic code in vmapbuf and vunmapbuf only if DIAGNOSTIC is defined.
Simplify vmapbuf by moving the vm_map_pmap computation off loop (inspired
by similar code in the sparc port).
Compile the diagnostic code in vmapbuf and vunmapbuf only if DIAGNOSTIC
is defined.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars