Print this page
9600 LDT still not happy under KPTI

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mlsetup.c
          +++ new/usr/src/uts/i86pc/os/mlsetup.c
↓ open down ↓ 354 lines elided ↑ open up ↑
 355  355          CPU->cpu_dispthread = &t0;
 356  356          CPU->cpu_idle_thread = &t0;
 357  357          CPU->cpu_flags = CPU_READY | CPU_RUNNING | CPU_EXISTS | CPU_ENABLE;
 358  358          CPU->cpu_dispatch_pri = t0.t_pri;
 359  359  
 360  360          CPU->cpu_id = 0;
 361  361  
 362  362          CPU->cpu_pri = 12;              /* initial PIL for the boot CPU */
 363  363  
 364  364          /*
 365      -         * The kernel doesn't use LDTs unless a process explicitly requests one.
 366      -         */
 367      -        p0.p_ldt_desc = null_sdesc;
 368      -
 369      -        /*
 370  365           * Initialize thread/cpu microstate accounting
 371  366           */
 372  367          init_mstate(&t0, LMS_SYSTEM);
 373  368          init_cpu_mstate(CPU, CMS_SYSTEM);
 374  369  
 375  370          /*
 376  371           * Initialize lists of available and active CPUs.
 377  372           */
 378  373          cpu_list_init(CPU);
 379  374  
↓ open down ↓ 163 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX