Print this page
XXXX pat_sync is clever enough to check for X86FSET_PAT

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mp_startup.c
          +++ new/usr/src/uts/i86pc/os/mp_startup.c
↓ open down ↓ 1663 lines elided ↑ open up ↑
1664 1664           * it blocks, we need to be able to swtch() to and from, and
1665 1665           * since we get here by calling t_pc, we need to do that call
1666 1666           * before swtch() overwrites it.
1667 1667           */
1668 1668          (void) (*ap_mlsetup)();
1669 1669  
1670 1670  #ifndef __xpv
1671 1671          /*
1672 1672           * Program this cpu's PAT
1673 1673           */
1674      -        if (is_x86_feature(x86_featureset, X86FSET_PAT))
1675      -                pat_sync();
     1674 +        pat_sync();
1676 1675  #endif
1677 1676  
1678 1677          /*
1679 1678           * Set up TSC_AUX to contain the cpuid for this processor
1680 1679           * for the rdtscp instruction.
1681 1680           */
1682 1681          if (is_x86_feature(x86_featureset, X86FSET_TSCP))
1683 1682                  (void) wrmsr(MSR_AMD_TSCAUX, cp->cpu_id);
1684 1683  
1685 1684          /*
↓ open down ↓ 371 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX