@@ -127,7 +127,7 @@ extern unsigned long PAGE_OFFSET;
* is used to size various tables used to manage kernel TLB misses and
* also the sparsemem code.
*/
-#define MAX_PHYS_ADDRESS_BITS 47
+#define MAX_PHYS_ADDRESS_BITS 49
/* This represents a subset of the physical address bits. It is used
* to determine how the powerof2 for sparc64_valid_addr_bitmap is changed.
@@ -1855,9 +1855,13 @@ static void __init setup_page_offset(void)
case SUN4V_CHIP_NIAGARA4:
case SUN4V_CHIP_NIAGARA5:
case SUN4V_CHIP_SPARC64X:
- default:
+ case SUN4V_CHIP_SPARC_M6:
max_phys_bits = 47;
break;
+ case SUN4V_CHIP_SPARC_M7:
+ default:
+ max_phys_bits = 49;
+ break;
}
}