示例#1
0
void IOKitResetTime( void )
{
    clock_sec_t		secs;
	clock_usec_t	microsecs;

    clock_initialize_calendar();

    clock_get_calendar_microtime(&secs, &microsecs);
    gIOLastWakeTime.tv_sec  = secs;
    gIOLastWakeTime.tv_usec = microsecs;

    IOService::updateConsoleUsers(NULL, kIOMessageSystemHasPoweredOn);
}
示例#2
0
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();
}
示例#3
0
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();
}