Use __DEVOLATILE to cast conspeed.

This commit is contained in:
Warner Losh 2005-12-07 07:23:53 +00:00
parent ed698028bd
commit 5d4d5ea6e1

View File

@ -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))