Use __DEVOLATILE to cast conspeed.
This commit is contained in:
parent
ed698028bd
commit
5d4d5ea6e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153195
@ -370,7 +370,7 @@ sysctl_machdep_comdefaultrate(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
SYSCTL_PROC(_machdep, OID_AUTO, conspeed, CTLTYPE_INT | CTLFLAG_RW,
|
||||
0, 0, sysctl_machdep_comdefaultrate, "I", "");
|
||||
/* TUNABLE_INT("machdep.conspeed", &comdefaultrate); */
|
||||
TUNABLE_INT("machdep.conspeed", __DEVOLATILE(int *, &comdefaultrate));
|
||||
|
||||
#define SET_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) | (bit))
|
||||
#define CLR_FLAG(dev, bit) device_set_flags(dev, device_get_flags(dev) & ~(bit))
|
||||
|
Loading…
Reference in New Issue
Block a user