Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/krtld/kobj.c
          +++ new/usr/src/uts/common/krtld/kobj.c
↓ open down ↓ 18 lines elided ↑ open up ↑
  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   25  /*
  26   26   * Copyright 2011 Bayard G. Bell <buffer.g.overflow@gmail.com>.
  27   27   * All rights reserved. Use is subject to license terms.
  28   28   */
       29 +/*
       30 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       31 + */
  29   32  
  30   33  /*
  31   34   * Kernel's linker/loader
  32   35   */
  33   36  
  34   37  #include <sys/types.h>
  35   38  #include <sys/param.h>
  36   39  #include <sys/sysmacros.h>
  37   40  #include <sys/systm.h>
  38   41  #include <sys/user.h>
↓ open down ↓ 276 lines elided ↑ open up ↑
 315  318   */
 316  319  void (*kobj_bcopy)(const void *, void *, size_t);
 317  320  void (*kobj_bzero)(void *, size_t);
 318  321  size_t (*kobj_strlcat)(char *, const char *, size_t);
 319  322  
 320  323  static kobj_stat_t kobj_stat;
 321  324  
 322  325  #define MINALIGN        8       /* at least a double-word */
 323  326  
 324  327  int
 325      -get_weakish_int(int *ip)
      328 +get_weakish_int(volatile int *ip)
 326  329  {
 327  330          if (standalone)
 328  331                  return (0);
 329  332          return (ip == NULL ? 0 : *ip);
 330  333  }
 331  334  
 332  335  static void *
 333  336  get_weakish_pointer(void **ptrp)
 334  337  {
 335  338          if (standalone)
↓ open down ↓ 4333 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX