mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
1bc9ea1caa
commit
3f6732e8e0
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue