Print this page
4664 CPU->cpu_pri_data hasn't been used for years

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mlsetup.c
          +++ new/usr/src/uts/i86pc/os/mlsetup.c
↓ open down ↓ 69 lines elided ↑ open up ↑
  70   70   * some globals for patching the result of cpuid
  71   71   * to solve problems w/ creative cpu vendors
  72   72   */
  73   73  
  74   74  extern uint32_t cpuid_feature_ecx_include;
  75   75  extern uint32_t cpuid_feature_ecx_exclude;
  76   76  extern uint32_t cpuid_feature_edx_include;
  77   77  extern uint32_t cpuid_feature_edx_exclude;
  78   78  
  79   79  /*
  80      - * Dummy spl priority masks
  81      - */
  82      -static unsigned char dummy_cpu_pri[MAXIPL + 1] = {
  83      -        0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf,
  84      -        0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf
  85      -};
  86      -
  87      -/*
  88   80   * Set console mode
  89   81   */
  90   82  static void
  91   83  set_console_mode(uint8_t val)
  92   84  {
  93   85          struct bop_regs rp = {0};
  94   86  
  95   87          rp.eax.byte.ah = 0x0;
  96   88          rp.eax.byte.al = val;
  97   89          rp.ebx.word.bx = 0x0;
↓ open down ↓ 24 lines elided ↑ open up ↑
 122  114          cpu[0]->cpu_self = cpu[0];
 123  115  
 124  116  #if defined(__xpv)
 125  117          /*
 126  118           * Point at the hypervisor's virtual cpu structure
 127  119           */
 128  120          cpu[0]->cpu_m.mcpu_vcpu_info = &HYPERVISOR_shared_info->vcpu_info[0];
 129  121  #endif
 130  122  
 131  123          /*
 132      -         * Set up dummy cpu_pri_data values till psm spl code is
 133      -         * installed.  This allows splx() to work on amd64.
 134      -         */
 135      -
 136      -        cpu[0]->cpu_pri_data = dummy_cpu_pri;
 137      -
 138      -        /*
 139  124           * check if we've got special bits to clear or set
 140  125           * when checking cpu features
 141  126           */
 142  127  
 143  128          if (bootprop_getval("cpuid_feature_ecx_include", &prop_value) != 0)
 144  129                  cpuid_feature_ecx_include = 0;
 145  130          else
 146  131                  cpuid_feature_ecx_include = (uint32_t)prop_value;
 147  132  
 148  133          if (bootprop_getval("cpuid_feature_ecx_exclude", &prop_value) != 0)
↓ open down ↓ 343 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX