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/io/apix/apix.c
          +++ new/usr/src/uts/i86pc/io/apix/apix.c
↓ open down ↓ 339 lines elided ↑ open up ↑
 340  340  
 341  341          ASSERT(cpu < apic_nproc && vec < APIX_NVECTOR);
 342  342          if (cpu >= apic_nproc)
 343  343                  return (NULL);
 344  344  
 345  345          apix_vector = apixs[cpu]->x_vectbl[vec];
 346  346  
 347  347          return ((uintptr_t)(apix_vector->v_autovect));
 348  348  }
 349  349  
 350      -#if defined(__amd64)
 351      -static unsigned char dummy_cpu_pri[MAXIPL + 1] = {
 352      -        0, 0, 0, 0, 0, 0, 0, 0,
 353      -        0, 0, 0, 0, 0, 0, 0, 0, 0
 354      -};
 355      -#endif
 356      -
 357  350  static void
 358  351  apix_init()
 359  352  {
 360  353          extern void (*do_interrupt_common)(struct regs *, trap_trace_rec_t *);
 361  354  
 362  355          APIC_VERBOSE(INIT, (CE_CONT, "apix: psm_softinit\n"));
 363  356  
 364  357          do_interrupt_common = apix_do_interrupt;
 365  358          addintr = apix_add_avintr;
 366  359          remintr = apix_rem_avintr;
 367  360          get_pending_spl = apix_get_pending_spl;
 368  361          get_intr_handler = apix_get_intr_handler;
 369  362          psm_get_localapicid = apic_get_localapicid;
 370  363          psm_get_ioapicid = apic_get_ioapicid;
 371  364  
 372  365          apix_softinit();
 373      -#if defined(__amd64)
 374      -        CPU->cpu_pri_data = dummy_cpu_pri;
 375      -#else
      366 +
      367 +#if !defined(__amd64)
 376  368          if (cpuid_have_cr8access(CPU))
 377  369                  apic_have_32bit_cr8 = 1;
 378      -#endif  /* __amd64 */
      370 +#endif
 379  371  
 380  372          /*
 381  373           * Initialize IRM pool parameters
 382  374           */
 383  375          if (irm_enable) {
 384  376                  int     i;
 385  377                  int     lowest_irq;
 386  378                  int     highest_irq;
 387  379  
 388  380                  /* number of CPUs present */
↓ open down ↓ 2176 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX