From 3d3b036f9541230485c7edd1fafaec6e4345641a Mon Sep 17 00:00:00 2001 From: mdf Date: Fri, 13 May 2011 19:35:01 +0000 Subject: Move the ZERO_REGION_SIZE to a machine-dependent file, as on many architectures (i386, for example) the virtual memory space may be constrained enough that 2MB is a large chunk. Use 64K for arches other than amd64 and ia64, with special handling for sparc64 due to differing hardware. Also commit the comment changes to kmem_init_zero_region() that I missed due to not saving the file. (Darn the unfamiliar development environment). Arch maintainers, please feel free to adjust ZERO_REGION_SIZE as you see fit. Requested by: alc MFC after: 1 week MFC with: r221853 --- sys/dev/null/null.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/null/null.c') diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c index 04619b2..b053d5d 100644 --- a/sys/dev/null/null.c +++ b/sys/dev/null/null.c @@ -39,7 +39,9 @@ __FBSDID("$FreeBSD$"); #include #include #include + #include +#include /* For use with destroy_dev(9). */ static struct cdev *null_dev; -- cgit v1.1