queue_head_t * iocpu_get_platform_active_queue(void)
{
+ if (!iocpu_active_queue.next)
+ {
+ queue_init(&iocpu_quiesce_queue);
+ queue_init(&iocpu_active_queue);
+ iocpu_platform_cpu_action_init(&iocpu_quiesce_queue, &iocpu_active_queue);
+ }
return (&iocpu_active_queue);
}
extern "C" kern_return_t
IOCPURunPlatformQuiesceActions(void)
{
- return (iocpu_run_platform_actions(iocpu_get_platform_quiesce_queue(), 0, 0UL-1,
+ return (iocpu_run_platform_actions(iocpu_get_platform_quiesce_queue(), 0, 0U-1,
NULL, NULL, NULL));
}
extern "C" kern_return_t
IOCPURunPlatformActiveActions(void)
{
- return (iocpu_run_platform_actions(iocpu_get_platform_active_queue(), 0, 0UL-1,
+ return (iocpu_run_platform_actions(iocpu_get_platform_active_queue(), 0, 0U-1,
NULL, NULL, NULL));
}
iter->release();
}
- iocpu_run_platform_actions(&gIOSleepActionQueue, 0, 0UL-1,
+ iocpu_run_platform_actions(&gIOSleepActionQueue, 0, 0U-1,
NULL, NULL, NULL);
numCPUs = gIOCPUs->getCount();
if (bootCPU)
bootCPU->haltCPU();
- iocpu_run_platform_actions(&gIOWakeActionQueue, 0, 0UL-1,
+ iocpu_run_platform_actions(&gIOWakeActionQueue, 0, 0U-1,
NULL, NULL, NULL);
iocpu_platform_action_entry_t * entry;
}
if (!queue_empty(&gIOSleepActionQueue))
- IOPanic("gIOSleepActionQueue");
+ panic("gIOSleepActionQueue");
if (!queue_empty(&gIOWakeActionQueue))
- IOPanic("gIOWakeActionQueue");
+ panic("gIOWakeActionQueue");
// Wake the other CPUs.
for (cnt = 0; cnt < numCPUs; cnt++)
provider->setProperty("timebase-frequency", timebaseFrequency);
timebaseFrequency->release();
- super::setProperty("IOCPUID", (UInt32)this, 32);
+ super::setProperty("IOCPUID", (uintptr_t)this, sizeof(uintptr_t)*8);
setCPUNumber(0);
setCPUState(kIOCPUStateUnregistered);