HalpSetClockAfterSleep
NTSTATUS __stdcall HalpSetClockAfterSleep(INT64 a1, INT64 a2, INT64 a3){
unsigned __int8 v3;
unsigned __int8 v4;
NTSTATUS result;
HalpAcquireCmosSpinLock(a1, a2, a3);
v3 = byte_140C49D60;
__outbyte(0x70u, 0xAu);
__outbyte(0x71u, v3);
v4 = byte_140C49D61 & 0xDD | 2;
__outbyte(0x70u, 0xBu);
__outbyte(0x71u, v4);
__outbyte(0x70u, 0xCu);
__inbyte(0x71u);
__outbyte(0x70u, 0xDu);
__inbyte(0x71u);
result = _InterlockedExchange(&HalpSystemHardwareLock, -1);
if( (_BYTE)byte_140C49EE0 )
_enable();
return result;
}Referenced by:
HalpAcpiPostSleep
HalpDpPostReplace