Date: Wed, 8 Dec 2010 20:20:10 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r216308 - in head/sys: amd64/amd64 i386/i386 Message-ID: <201012082020.oB8KKA7V013850@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cperciva Date: Wed Dec 8 20:20:10 2010 New Revision: 216308 URL: http://svn.freebsd.org/changeset/base/216308 Log: On amd64, we have (since r1.72, in December 2005) MAX_BPAGES=8192, while on i386 we have MAX_BPAGES=512. Implement this difference via '#ifdef __i386__'. With this commit, the i386 and amd64 busdma_machdep.c files become identical; they will soon be replaced by a single file under sys/x86. Modified: head/sys/amd64/amd64/busdma_machdep.c head/sys/i386/i386/busdma_machdep.c Modified: head/sys/amd64/amd64/busdma_machdep.c ============================================================================== --- head/sys/amd64/amd64/busdma_machdep.c Wed Dec 8 19:59:53 2010 (r216307) +++ head/sys/amd64/amd64/busdma_machdep.c Wed Dec 8 20:20:10 2010 (r216308) @@ -50,7 +50,11 @@ __FBSDID("$FreeBSD$"); #include <machine/md_var.h> #include <machine/specialreg.h> +#ifdef __i386__ +#define MAX_BPAGES 512 +#else #define MAX_BPAGES 8192 +#endif #define BUS_DMA_COULD_BOUNCE BUS_DMA_BUS3 #define BUS_DMA_MIN_ALLOC_COMP BUS_DMA_BUS4 Modified: head/sys/i386/i386/busdma_machdep.c ============================================================================== --- head/sys/i386/i386/busdma_machdep.c Wed Dec 8 19:59:53 2010 (r216307) +++ head/sys/i386/i386/busdma_machdep.c Wed Dec 8 20:20:10 2010 (r216308) @@ -50,7 +50,11 @@ __FBSDID("$FreeBSD$"); #include <machine/md_var.h> #include <machine/specialreg.h> +#ifdef __i386__ #define MAX_BPAGES 512 +#else +#define MAX_BPAGES 8192 +#endif #define BUS_DMA_COULD_BOUNCE BUS_DMA_BUS3 #define BUS_DMA_MIN_ALLOC_COMP BUS_DMA_BUS4
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012082020.oB8KKA7V013850>