summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2010-06-29 21:25:16 +0000
committerthib <thib@openbsd.org>2010-06-29 21:25:16 +0000
commitff5dbddaee1afbe68aa1185d3cc3e49c950bd30f (patch)
tree9beb0eb2b6f60b595cbdae6d7e8dd3ae40a59c71 /sys
parentRework cypress cpu cache setup, and enable writeback mode. Adapted from (diff)
downloadwireguard-openbsd-ff5dbddaee1afbe68aa1185d3cc3e49c950bd30f.tar.xz
wireguard-openbsd-ff5dbddaee1afbe68aa1185d3cc3e49c950bd30f.zip
Add PADDR_IS_DMA_REACHABLE macro so art stops whining
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_page.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/uvm/uvm_page.h b/sys/uvm/uvm_page.h
index c8e2b04fd36..8dc67d3f933 100644
--- a/sys/uvm/uvm_page.h
+++ b/sys/uvm/uvm_page.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_page.h,v 1.43 2010/06/27 03:03:49 thib Exp $ */
+/* $OpenBSD: uvm_page.h,v 1.44 2010/06/29 21:25:16 thib Exp $ */
/* $NetBSD: uvm_page.h,v 1.19 2000/12/28 08:24:55 chs Exp $ */
/*
@@ -309,6 +309,9 @@ int vm_physseg_find(paddr_t, int *);
#define VM_PAGE_IS_FREE(entry) ((entry)->pg_flags & PQ_FREE)
+#define PADDR_IS_DMA_REACHABLE(paddr) \
+ (dma_constraint.ucr_low <= paddr && dma_constraint.ucr_high > paddr)
+
#endif /* _KERNEL */
#endif /* _UVM_UVM_PAGE_H_ */