diff -ur linux-2.2.18-orig/include/linux/sched.h linux-2.2.18/include/linux/sched.h
--- linux-2.2.18-orig/include/linux/sched.h	Sun Dec 10 18:49:44 2000
+++ linux-2.2.18/include/linux/sched.h	Tue Jan 30 16:33:17 2001
@@ -166,8 +166,9 @@
 	NULL, 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
