{
UCHAR Val;
/* Only variable supported on x86 */if (_stricmp(Name, "LastKnownGood")) returnENOMEM;
/* Check if this is true or false */if (!_stricmp(Value, "TRUE"))
{
/* It's true, acquire CMOS lock (FIXME) *//* Read the current value and add the flag */
Val = HalpReadCmos(RTC_REGISTER_B) | 1;
}
elseif (!_stricmp(Value, "FALSE"))
{
/* It's false, acquire CMOS lock (FIXME) *//* Read the current value and mask out the flag */
Val = HalpReadCmos(RTC_REGISTER_B) & ~1;
}
else
{
/* Fail */returnENOMEM;
}
/* Write new value */HalpWriteCmos(RTC_REGISTER_B, Val);
/* Release the lock and return success */returnESUCCESS;
}
Generated on Sun May 27 2012 05:27:18 for ReactOS by
1.7.6.1
ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.