From c63a5e764773fa9dbb545968475d109e50a13e14 Mon Sep 17 00:00:00 2001 From: cperciva Date: Wed, 8 Dec 2010 19:52:04 +0000 Subject: 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. --- sys/amd64/amd64/busdma_machdep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/amd64') diff --git a/sys/amd64/amd64/busdma_machdep.c b/sys/amd64/amd64/busdma_machdep.c index 0b805b1..d18f5bf 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. * -- cgit v1.1