diff -ur linux-orig/include/linux/sched.h linux/include/linux/sched.h
--- linux-orig/include/linux/sched.h	Tue Jan 30 16:53:30 2001
+++ linux/include/linux/sched.h	Tue Jan 30 17:46:27 2001
@@ -194,8 +194,9 @@
 	fd_array:	{ NULL, } 			\
 }
 
-/* Maximum number of active map areas.. This is a random (large) number */
-#define MAX_MAP_COUNT	(65536)
+/* Maximum number of active map areas. This is the number of pages that fit in
+ * the address space */
+#define MAX_MAP_COUNT	(ULONG_MAX >> PAGE_SHIFT)
 
 /* Number of map areas at which the AVL tree is activated. This is arbitrary. */
 #define AVL_MIN_MAP_COUNT	32
