aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/vm.h
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2021-04-10 07:59:29 +0000
committerAndrew Turner <andrew@FreeBSD.org>2021-06-13 15:49:36 +0000
commitade8b810b02fd6f7ab9e68afa18e3d34c7a1c1a8 (patch)
treecf2edbd1c354dc963c02a720aa3609356c52a2aa /sys/amd64/include/vm.h
parent2a8921c5d187a2c3f1b709cc77c839568ede0b8d (diff)
Create VM_MEMATTR_DEVICE on all architectures
This is intended to be used with memory mapped IO, e.g. from bus_space_map with no flags, or pmap_mapdev. Use this new memory type in the map request configured by resource_init_map_request, and in pciconf. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D29692 (cherry picked from commit 5d2d599d3f3494d813e51e1bcd1c9693eb9c098b)
Diffstat (limited to 'sys/amd64/include/vm.h')
-rw-r--r--sys/amd64/include/vm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/vm.h b/sys/amd64/include/vm.h
index 2e9c30da9936..fef7a53ca317 100644
--- a/sys/amd64/include/vm.h
+++ b/sys/amd64/include/vm.h
@@ -43,5 +43,6 @@
#define VM_MEMATTR_WEAK_UNCACHEABLE ((vm_memattr_t)PAT_UNCACHED)
#define VM_MEMATTR_DEFAULT VM_MEMATTR_WRITE_BACK
+#define VM_MEMATTR_DEVICE VM_MEMATTR_UNCACHEABLE
#endif /* !_MACHINE_VM_H_ */