Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/vm/mach_vm_dep.c
          +++ new/usr/src/uts/sun4u/vm/mach_vm_dep.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       27 + */
  25   28  
  26   29  /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   30  /*      All Rights Reserved   */
  28   31  
  29   32  /*
  30   33   * Portions of this source code were derived from Berkeley 4.3 BSD
  31   34   * under license from the Regents of the University of California.
  32   35   */
  33   36  
  34   37  /*
↓ open down ↓ 13 lines elided ↑ open up ↑
  48   51  #include <vm/vm_dep.h>
  49   52  #include <sys/random.h>
  50   53  
  51   54  #if defined(__sparcv9) && defined(SF_ERRATA_57)
  52   55  caddr_t errata57_limit;
  53   56  #endif
  54   57  
  55   58  uint_t page_colors = 0;
  56   59  uint_t page_colors_mask = 0;
  57   60  uint_t page_coloring_shift = 0;
  58      -int consistent_coloring;
       61 +volatile int consistent_coloring;
  59   62  int update_proc_pgcolorbase_after_fork = 0;
  60   63  
  61   64  uint_t mmu_page_sizes = DEFAULT_MMU_PAGE_SIZES;
  62   65  uint_t max_mmu_page_sizes = MMU_PAGE_SIZES;
  63   66  uint_t mmu_hashcnt = DEFAULT_MAX_HASHCNT;
  64   67  uint_t max_mmu_hashcnt = MAX_HASHCNT;
  65   68  size_t mmu_ism_pagesize = DEFAULT_ISM_PAGESIZE;
  66   69  
  67   70  /*
  68   71   * The sun4u hardware mapping sizes which will always be supported are
↓ open down ↓ 314 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX