mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	x86: fix kernel_physical_mapping_init() for large x86 systems
Fix bug in kernel_physical_mapping_init() that causes kernel page table to be built incorrectly for systems with greater than 512GB of memory. Signed-off-by: Jack Steiner <steiner@sgi.com> Cc: linux-mm@kvack.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
		
							parent
							
								
									45158894d4
								
							
						
					
					
						commit
						e22146e610
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -644,7 +644,7 @@ static unsigned long __init kernel_physical_mapping_init(unsigned long start, | ||||||
| 		unsigned long pud_phys; | 		unsigned long pud_phys; | ||||||
| 		pud_t *pud; | 		pud_t *pud; | ||||||
| 
 | 
 | ||||||
| 		next = start + PGDIR_SIZE; | 		next = (start + PGDIR_SIZE) & PGDIR_MASK; | ||||||
| 		if (next > end) | 		if (next > end) | ||||||
| 			next = end; | 			next = end; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Jack Steiner
						Jack Steiner