Set the caching mode for the usermode mapping of the HPET registers

page to uncached.

Reviewed by:	rpaulo
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2014-10-25 21:01:50 +00:00
parent 1bc9ea1caa
commit 3f6732e8e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273647

View File

@ -356,6 +356,7 @@ hpet_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr,
if (!sc->mmap_allow_write && (nprot & PROT_WRITE))
return (EPERM);
*paddr = rman_get_start(sc->mem_res) + offset;
*memattr = VM_MEMATTR_UNCACHEABLE;
return (0);
}