Print this page
re #13613 rb4516 Tunables needs volatile keyword
*** 24,33 ****
--- 24,36 ----
*/
/*
* Copyright 2011 Bayard G. Bell <buffer.g.overflow@gmail.com>.
* All rights reserved. Use is subject to license terms.
*/
+ /*
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ */
/*
* Kernel's linker/loader
*/
*** 320,330 ****
static kobj_stat_t kobj_stat;
#define MINALIGN 8 /* at least a double-word */
int
! get_weakish_int(int *ip)
{
if (standalone)
return (0);
return (ip == NULL ? 0 : *ip);
}
--- 323,333 ----
static kobj_stat_t kobj_stat;
#define MINALIGN 8 /* at least a double-word */
int
! get_weakish_int(volatile int *ip)
{
if (standalone)
return (0);
return (ip == NULL ? 0 : *ip);
}