Print this page
6345 remove xhat support

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/vm/mach_kpm.c
          +++ new/usr/src/uts/sun4u/vm/mach_kpm.c
↓ open down ↓ 1676 lines elided ↑ open up ↑
1677 1677  
1678 1678          /*
1679 1679           * Check if any mapping is in same as or if it is locked
1680 1680           * since in that case we need to uncache.
1681 1681           */
1682 1682          for (sfhmep = pp->p_mapping; sfhmep; sfhmep = tmphme) {
1683 1683                  tmphme = sfhmep->hme_next;
1684 1684                  if (IS_PAHME(sfhmep))
1685 1685                          continue;
1686 1686                  hmeblkp = sfmmu_hmetohblk(sfhmep);
1687      -                if (hmeblkp->hblk_xhat_bit)
1688      -                        continue;
1689 1687                  tmphat = hblktosfmmu(hmeblkp);
1690 1688                  sfmmu_copytte(&sfhmep->hme_tte, &tte);
1691 1689                  ASSERT(TTE_IS_VALID(&tte));
1692 1690                  if ((tmphat == ksfmmup) || hmeblkp->hblk_lckcnt) {
1693 1691                          /*
1694 1692                           * We have an uncache conflict
1695 1693                           */
1696 1694                          SFMMU_STAT(sf_uncache_conflict);
1697 1695                          sfmmu_page_cache_array(pp, HAT_TMPNC, CACHE_FLUSH, 1);
1698 1696                          return;
↓ open down ↓ 3 lines elided ↑ open up ↑
1702 1700          /*
1703 1701           * We have an unload conflict
1704 1702           */
1705 1703          SFMMU_STAT(sf_unload_conflict);
1706 1704  
1707 1705          for (sfhmep = pp->p_mapping; sfhmep; sfhmep = tmphme) {
1708 1706                  tmphme = sfhmep->hme_next;
1709 1707                  if (IS_PAHME(sfhmep))
1710 1708                          continue;
1711 1709                  hmeblkp = sfmmu_hmetohblk(sfhmep);
1712      -                if (hmeblkp->hblk_xhat_bit)
1713      -                        continue;
1714 1710                  (void) sfmmu_pageunload(pp, sfhmep, TTE8K);
1715 1711          }
1716 1712  
1717 1713          /*
1718 1714           * Unloads only does tlb flushes so we need to flush the
1719 1715           * dcache vcolor here.
1720 1716           */
1721 1717          sfmmu_cache_flush(pp->p_pagenum, PP_GET_VCOLOR(pp));
1722 1718          PP_SET_VCOLOR(pp, vcolor);
1723 1719  }
↓ open down ↓ 656 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX