|
@@ -84,18 +84,19 @@
|
|
|
* This is made more complicated by various memory models and PAE.
|
|
|
*/
|
|
|
|
|
|
-#ifndef MAX_PHYSMEM_BITS
|
|
|
-#ifdef CONFIG_HIGHMEM64G
|
|
|
-#define MAX_PHYSMEM_BITS 36
|
|
|
-#else /* !CONFIG_HIGHMEM64G */
|
|
|
+#ifndef MAX_POSSIBLE_PHYSMEM_BITS
|
|
|
+#ifdef MAX_PHYSMEM_BITS
|
|
|
+#define MAX_POSSIBLE_PHYSMEM_BITS MAX_PHYSMEM_BITS
|
|
|
+#else
|
|
|
/*
|
|
|
* If this definition of MAX_PHYSMEM_BITS is used, OBJ_INDEX_BITS will just
|
|
|
* be PAGE_SHIFT
|
|
|
*/
|
|
|
-#define MAX_PHYSMEM_BITS BITS_PER_LONG
|
|
|
+#define MAX_POSSIBLE_PHYSMEM_BITS BITS_PER_LONG
|
|
|
#endif
|
|
|
#endif
|
|
|
-#define _PFN_BITS (MAX_PHYSMEM_BITS - PAGE_SHIFT)
|
|
|
+
|
|
|
+#define _PFN_BITS (MAX_POSSIBLE_PHYSMEM_BITS - PAGE_SHIFT)
|
|
|
|
|
|
/*
|
|
|
* Memory for allocating for handle keeps object position by
|