Print this page
11584 ::xcall would be useful
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/sys/machcpuvar.h
          +++ new/usr/src/uts/i86pc/sys/machcpuvar.h
↓ open down ↓ 144 lines elided ↑ open up ↑
 145  145  
 146  146  /*
 147  147   * This first value, MACHCPU_SIZE is the size of all the members in the cpu_t
 148  148   * AND struct machcpu, before we get to the mcpu_pad and the kpti area.
 149  149   * The KPTI is used to contain per-CPU data that is visible in both sets of
 150  150   * page-tables, and hence must be page-aligned and page-sized. See
 151  151   * hat_pcp_setup().
 152  152   *
 153  153   * There are CTASSERTs in os/intr.c that verify this all works out.
 154  154   */
 155      -#define MACHCPU_SIZE    (1568 + 688)
      155 +#define MACHCPU_SIZE    (1568 + 696)
 156  156  #define MACHCPU_PAD     (MMU_PAGESIZE - MACHCPU_SIZE)
 157  157  #define MACHCPU_PAD2    (MMU_PAGESIZE - 16 - 3 * sizeof (struct kpti_frame))
 158  158  
 159  159  struct  machcpu {
 160  160          /*
 161  161           * x_call fields - used for interprocessor cross calls
 162  162           */
 163  163          struct xc_msg   *xc_msgbox;
      164 +        struct xc_msg   *xc_curmsg;
 164  165          struct xc_msg   *xc_free;
 165  166          xc_data_t       xc_data;
 166  167          uint32_t        xc_wait_cnt;
 167  168          volatile uint32_t xc_work_cnt;
 168  169  
 169  170          int             mcpu_nodeid;            /* node-id */
 170  171          int             mcpu_pri;               /* CPU priority */
 171  172  
 172  173          struct hat      *mcpu_current_hat; /* cpu's current hat */
 173  174  
↓ open down ↓ 98 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX