memmmap() never set the memory attribute, so mmap() of /dev/mem mapped
everything with VM_MEMATTR_DEFAULT, which is normal cacheable memory.
Device registers must not be cached, map addresses outside the direct
map with VM_MEMATTR_DEVICE_NP instead.
memrw() passed a struct vm_page built on the stack to
uiomove_fromphys(), which panics in pmap_map_io_transient() for pages
outside the direct map so "dd if=/dev/mem" at a device address caused
a panic. Return EFAULT instead, device memory can be reached with
mmap().
Also do not return an error once some bytes have been transferred, as
memrw() does on powerpc and riscv, and uiomove_mem() on amd64.