equal
deleted
inserted
replaced
1429 { |
1429 { |
1430 struct segmap_crargs a; |
1430 struct segmap_crargs a; |
1431 extern void hat_kern_setup(void); |
1431 extern void hat_kern_setup(void); |
1432 pgcnt_t pages_left; |
1432 pgcnt_t pages_left; |
1433 |
1433 |
|
1434 extern int exec_lpg_disable, use_brk_lpg, use_stk_lpg, use_zmap_lpg; |
|
1435 extern pgcnt_t auto_lpg_min_physmem; |
|
1436 |
1434 PRM_POINT("startup_vm() starting..."); |
1437 PRM_POINT("startup_vm() starting..."); |
1435 |
1438 |
1436 /* |
1439 /* |
1437 * The next two loops are done in distinct steps in order |
1440 * The next two loops are done in distinct steps in order |
1438 * to be sure that any page that is doubly mapped (both above |
1441 * to be sure that any page that is doubly mapped (both above |
1713 } |
1716 } |
1714 } |
1717 } |
1715 |
1718 |
1716 cmn_err(CE_CONT, "?mem = %luK (0x%lx)\n", |
1719 cmn_err(CE_CONT, "?mem = %luK (0x%lx)\n", |
1717 physinstalled << (MMU_PAGESHIFT - 10), ptob(physinstalled)); |
1720 physinstalled << (MMU_PAGESHIFT - 10), ptob(physinstalled)); |
|
1721 |
|
1722 /* For small memory systems disable automatic large pages. */ |
|
1723 if (physmem < auto_lpg_min_physmem) { |
|
1724 exec_lpg_disable = 1; |
|
1725 use_brk_lpg = 0; |
|
1726 use_stk_lpg = 0; |
|
1727 use_zmap_lpg = 0; |
|
1728 } |
1718 |
1729 |
1719 PRM_POINT("Calling hat_init_finish()..."); |
1730 PRM_POINT("Calling hat_init_finish()..."); |
1720 hat_init_finish(); |
1731 hat_init_finish(); |
1721 PRM_POINT("hat_init_finish() done"); |
1732 PRM_POINT("hat_init_finish() done"); |
1722 |
1733 |