Use __DEVOLATILE to cast conspeed.
This commit is contained in:
parent
ed698028bd
commit
5d4d5ea6e1
@ -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