summaryrefslogtreecommitdiff
path: root/sys/dev/proto/proto_core.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-02-03 17:35:11 +0000
committerWarner Losh <imp@FreeBSD.org>2020-02-03 17:35:11 +0000
commit58aa35d42975c298ca0adba705c042596303c9f5 (patch)
tree2558d2b720cda9c2799970cabc266e2ce4e3a8d3 /sys/dev/proto/proto_core.c
parenteb24e1491f9900e922c78e53af588f22a3e9535f (diff)
Notes
Diffstat (limited to 'sys/dev/proto/proto_core.c')
-rw-r--r--sys/dev/proto/proto_core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/proto/proto_core.c b/sys/dev/proto/proto_core.c
index 404ba498f09d..44199bdd7b8f 100644
--- a/sys/dev/proto/proto_core.c
+++ b/sys/dev/proto/proto_core.c
@@ -507,9 +507,7 @@ proto_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr,
if (offset >= r->r_size)
return (EINVAL);
*paddr = rman_get_start(r->r_d.res) + offset;
-#ifndef __sparc64__
*memattr = VM_MEMATTR_UNCACHEABLE;
-#endif
break;
case PROTO_RES_BUSDMA:
if (!proto_busdma_mmap_allowed(r->r_d.busdma, offset))