Print this page
5461 #pragma align before the declaration

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/vm/vm_dep.h
          +++ new/usr/src/uts/i86pc/vm/vm_dep.h
↓ open down ↓ 451 lines elided ↑ open up ↑
 452  452          struct memseg   *vc_pnum_memseg;
 453  453          struct memseg   *vc_pnext_memseg;
 454  454          void            *vc_kmptr;
 455  455          size_t          vc_kmsize;
 456  456  } vm_cpu_data_t;
 457  457  
 458  458  /* allocation size to ensure vm_cpu_data_t resides in its own cache line */
 459  459  #define VM_CPU_DATA_PADSIZE                                             \
 460  460          (P2ROUNDUP(sizeof (vm_cpu_data_t), L2CACHE_ALIGN_MAX))
 461  461  
 462      -/* for boot cpu before kmem is initialized */
 463      -extern char     vm_cpu_data0[];
 464      -
 465  462  /*
 466  463   * When a bin is empty, and we can't satisfy a color request correctly,
 467  464   * we scan.  If we assume that the programs have reasonable spatial
 468  465   * behavior, then it will not be a good idea to use the adjacent color.
 469  466   * Using the adjacent color would result in virtually adjacent addresses
 470  467   * mapping into the same spot in the cache.  So, if we stumble across
 471  468   * an empty bin, skip a bunch before looking.  After the first skip,
 472  469   * then just look one bin at a time so we don't miss our cache on
 473  470   * every look. Be sure to check every bin.  Page_create() will panic
 474  471   * if we miss a page.
↓ open down ↓ 90 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX