void IOKitResetTime( void ) { clock_sec_t secs; clock_usec_t microsecs; clock_initialize_calendar(); clock_get_calendar_microtime(&secs, µsecs); gIOLastWakeTime.tv_sec = secs; gIOLastWakeTime.tv_usec = microsecs; IOService::updateConsoleUsers(NULL, kIOMessageSystemHasPoweredOn); }
void IOKitInitializeTime( void ) { mach_timespec_t t; t.tv_sec = 30; t.tv_nsec = 0; IOService::waitForService( IOService::resourceMatching("IORTC"), &t ); #if defined(__i386__) || defined(__x86_64__) IOService::waitForService( IOService::resourceMatching("IONVRAM"), &t ); #endif clock_initialize_calendar(); }
void IOKitResetTime( void ) { mach_timespec_t t; t.tv_sec = 30; t.tv_nsec = 0; IOService::waitForService( IOService::resourceMatching("IORTC"), &t ); #ifndef i386 IOService::waitForService( IOService::resourceMatching("IONVRAM"), &t ); #endif clock_initialize_calendar(); }