Print this page
4444 remove unused cpuid-related globals

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/cpuid.c
          +++ new/usr/src/uts/i86pc/os/cpuid.c
↓ open down ↓ 112 lines elided ↑ open up ↑
 113  113   * NOTE: The accessor functions (cpuid_get*) are aware of, and ASSERT upon,
 114  114   * the pass numbers.  Accordingly, changes to the pass code may require changes
 115  115   * to the accessor code.
 116  116   */
 117  117  
 118  118  uint_t x86_vendor = X86_VENDOR_IntelClone;
 119  119  uint_t x86_type = X86_TYPE_OTHER;
 120  120  uint_t x86_clflush_size = 0;
 121  121  
 122  122  uint_t pentiumpro_bug4046376;
 123      -uint_t pentiumpro_bug4064495;
 124  123  
 125  124  uchar_t x86_featureset[BT_SIZEOFMAP(NUM_X86_FEATURES)];
 126  125  
 127  126  static char *x86_feature_names[NUM_X86_FEATURES] = {
 128  127          "lgpg",
 129  128          "tsc",
 130  129          "msr",
 131  130          "mtrr",
 132  131          "pge",
 133  132          "de",
↓ open down ↓ 73 lines elided ↑ open up ↑
 207  206          uint_t i;
 208  207  
 209  208          for (i = 0; i < NUM_X86_FEATURES; i++) {
 210  209                  if (is_x86_feature(featureset, i)) {
 211  210                          cmn_err(CE_CONT, "?x86_feature: %s\n",
 212  211                              x86_feature_names[i]);
 213  212                  }
 214  213          }
 215  214  }
 216  215  
 217      -uint_t enable486;
 218      -
 219  216  static size_t xsave_state_size = 0;
 220  217  uint64_t xsave_bv_all = (XFEATURE_LEGACY_FP | XFEATURE_SSE);
 221  218  boolean_t xsave_force_disable = B_FALSE;
 222  219  
 223  220  /*
 224  221   * This is set to platform type we are running on.
 225  222   */
 226  223  static int platform_type = -1;
 227  224  
 228  225  #if !defined(__xpv)
↓ open down ↓ 797 lines elided ↑ open up ↑
1026 1023  
1027 1024          cpi->cpi_pabits = cpi->cpi_vabits = 32;
1028 1025  
1029 1026          switch (cpi->cpi_vendor) {
1030 1027          case X86_VENDOR_Intel:
1031 1028                  if (cpi->cpi_family == 5)
1032 1029                          x86_type = X86_TYPE_P5;
1033 1030                  else if (IS_LEGACY_P6(cpi)) {
1034 1031                          x86_type = X86_TYPE_P6;
1035 1032                          pentiumpro_bug4046376 = 1;
1036      -                        pentiumpro_bug4064495 = 1;
1037 1033                          /*
1038 1034                           * Clear the SEP bit when it was set erroneously
1039 1035                           */
1040 1036                          if (cpi->cpi_model < 3 && cpi->cpi_step < 3)
1041 1037                                  cp->cp_edx &= ~CPUID_INTC_EDX_SEP;
1042 1038                  } else if (IS_NEW_F6(cpi) || cpi->cpi_family == 0xf) {
1043 1039                          x86_type = X86_TYPE_P4;
1044 1040                          /*
1045 1041                           * We don't currently depend on any of the %ecx
1046 1042                           * features until Prescott, so we'll only check
↓ open down ↓ 3718 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX