From ec195da48acab06f1f6fce059a18d83cc3539809 Mon Sep 17 00:00:00 2001 From: Colin Percival 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') 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. * -- cgit v1.2.3