if (!Length) return 0;
/* Acquire CMOS Lock */
- HalpAcquireSystemHardwareSpinLock();
+ HalpAcquireCmosSpinLock();
/* Check if this is simple CMOS */
if (BusNumber == 0)
if (!Length) return 0;
/* Acquire CMOS Lock */
- HalpAcquireSystemHardwareSpinLock();
+ HalpAcquireCmosSpinLock();
/* Check if this is simple CMOS */
if (BusNumber == 0)
if (_stricmp(Name, "LastKnownGood")) return ENOENT;
/* Acquire CMOS Lock */
- HalpAcquireSystemHardwareSpinLock();
+ HalpAcquireCmosSpinLock();
/* Query the current value */
Val = HalpReadCmos(RTC_REGISTER_B) & 0x01;
if (!_stricmp(Value, "TRUE"))
{
/* It's true, acquire CMOS lock */
- HalpAcquireSystemHardwareSpinLock();
+ HalpAcquireCmosSpinLock();
/* Read the current value and add the flag */
Val = HalpReadCmos(RTC_REGISTER_B) | 1;
else if (!_stricmp(Value, "FALSE"))
{
/* It's false, acquire CMOS lock */
- HalpAcquireSystemHardwareSpinLock();
+ HalpAcquireCmosSpinLock();
/* Read the current value and mask out the flag */
Val = HalpReadCmos(RTC_REGISTER_B) & ~1;
HalQueryRealTimeClock(OUT PTIME_FIELDS Time)
{
/* Acquire CMOS Lock */
- HalpAcquireSystemHardwareSpinLock();
+ HalpAcquireCmosSpinLock();
/* Loop while update is in progress */
while ((HalpReadCmos(RTC_REGISTER_A)) & RTC_REG_A_UIP);
HalSetRealTimeClock(IN PTIME_FIELDS Time)
{
/* Acquire CMOS Lock */
- HalpAcquireSystemHardwareSpinLock();
+ HalpAcquireCmosSpinLock();
/* Loop while update is in progress */
while ((HalpReadCmos(RTC_REGISTER_A)) & RTC_REG_A_UIP);