Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/vm/vm_dep.h
          +++ new/usr/src/uts/sun4/vm/vm_dep.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  23   24   */
  24   25  
  25   26  /*
  26   27   * UNIX machine dependent virtual memory support.
  27   28   */
  28   29  
  29   30  #ifndef _VM_DEP_H
  30   31  #define _VM_DEP_H
  31   32  
  32   33  #ifdef  __cplusplus
↓ open down ↓ 534 lines elided ↑ open up ↑
 567  568   * the coding for some non-performance critical routines.
 568  569   */
 569  570  #define PC_BASE_ALIGN           ((pfn_t)1 << PAGE_BSZS_SHIFT(mmu_page_sizes-1))
 570  571  #define PC_BASE_ALIGN_MASK      (PC_BASE_ALIGN - 1)
 571  572  
 572  573  extern int ecache_alignsize;
 573  574  #define L2CACHE_ALIGN           ecache_alignsize
 574  575  #define L2CACHE_ALIGN_MAX       512
 575  576  
 576  577  extern int update_proc_pgcolorbase_after_fork;
 577      -extern int consistent_coloring;
      578 +extern volatile int consistent_coloring;
 578  579  extern uint_t vac_colors_mask;
 579  580  extern int vac_size;
 580  581  extern int vac_shift;
 581  582  
 582  583  /*
 583  584   * Kernel mem segment in 64-bit space
 584  585   */
 585  586  extern caddr_t kmem64_base, kmem64_end, kmem64_aligned_end;
 586  587  extern int kmem64_alignsize, kmem64_szc;
 587  588  extern uint64_t kmem64_pabase;
↓ open down ↓ 275 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX