svn commit: r216308 - in head/sys: amd64/amd64 i386/i386
Colin Percival
cperciva at FreeBSD.org
Wed Dec 8 20:20:11 UTC 2010
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
More information about the svn-src-all
mailing list