aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2010-12-08 19:52:04 +0000
committerColin Percival <cperciva@FreeBSD.org>2010-12-08 19:52:04 +0000
commitec195da48acab06f1f6fce059a18d83cc3539809 (patch)
tree0e4bfef0508506511edb0087c5b3550c347a3d26 /sys
parent81261a5a6d6343a92894c5df0483a6221b972375 (diff)
downloadsrc-ec195da48acab06f1f6fce059a18d83cc3539809.tar.gz
src-ec195da48acab06f1f6fce059a18d83cc3539809.zip
MFi386 r1.94: If XEN, make pmap_kextract = pmap_kextract_ma. This is a
no-op currently, since FreeBSD/amd64 doesn't have (paravirtualized) Xen support, but if/when that support is ever added we'll want this, and until then it's harmless.
Notes
Notes: svn path=/head/; revision=216306
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/busdma_machdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/amd64/amd64/busdma_machdep.c b/sys/amd64/amd64/busdma_machdep.c
index 0b805b1a436d..d18f5bfd1b30 100644
--- a/sys/amd64/amd64/busdma_machdep.c
+++ b/sys/amd64/amd64/busdma_machdep.c
@@ -141,6 +141,11 @@ int run_filter(bus_dma_tag_t dmat, bus_addr_t paddr);
int _bus_dmamap_count_pages(bus_dma_tag_t dmat, bus_dmamap_t map, pmap_t pmap,
void *buf, bus_size_t buflen, int flags);
+#ifdef XEN
+#undef pmap_kextract
+#define pmap_kextract pmap_kextract_ma
+#endif
+
/*
* Return true if a match is made.
*