File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -44,5 +44,6 @@ typedef union {
4444 */ 
4545#define  PTRS_PER_PTE 	512
4646
47+ #define  MAX_POSSIBLE_PHYSMEM_BITS 	36
4748
4849#endif  /* _ASM_X86_PGTABLE_3LEVEL_DEFS_H */ 
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ typedef struct { pteval_t pte; } pte_t;
4040#define  P4D_SIZE 	(_AC(1, UL) << P4D_SHIFT)
4141#define  P4D_MASK 	(~(P4D_SIZE - 1))
4242
43+ #define  MAX_POSSIBLE_PHYSMEM_BITS 	52
44+ 
4345#else  /* CONFIG_X86_5LEVEL */ 
4446
4547/* 
Original file line number Diff line number Diff line change 8484 * This is made more complicated by various memory models and PAE. 
8585 */ 
8686
87- #ifndef  MAX_PHYSMEM_BITS 
88- #ifdef  CONFIG_HIGHMEM64G 
89- #define  MAX_PHYSMEM_BITS  36 
90- #else   /* !CONFIG_HIGHMEM64G */ 
87+ #ifndef  MAX_POSSIBLE_PHYSMEM_BITS 
88+ #ifdef  MAX_PHYSMEM_BITS 
89+ #define  MAX_POSSIBLE_PHYSMEM_BITS  MAX_PHYSMEM_BITS 
90+ #else 
9191/* 
9292 * If this definition of MAX_PHYSMEM_BITS is used, OBJ_INDEX_BITS will just 
9393 * be PAGE_SHIFT 
9494 */ 
95- #define  MAX_PHYSMEM_BITS  BITS_PER_LONG
95+ #define  MAX_POSSIBLE_PHYSMEM_BITS  BITS_PER_LONG
9696#endif 
9797#endif 
98- #define  _PFN_BITS 		(MAX_PHYSMEM_BITS - PAGE_SHIFT)
98+ 
99+ #define  _PFN_BITS 		(MAX_POSSIBLE_PHYSMEM_BITS - PAGE_SHIFT)
99100
100101/* 
101102 * Memory for allocating for handle keeps object position by 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments