}
}
+void
+fiq_context_bootstrap(boolean_t enable_fiq)
+{
+ fiq_context_init(enable_fiq);
+}
+
void
ml_parse_cpu_topology(void)
{
#endif
if (!is_boot_cpu)
- prng_cpu_init(this_cpu_datap->cpu_number);
+ early_random_cpu_init(this_cpu_datap->cpu_number);
return KERN_SUCCESS;
}
}
-
-/*
- * Routine: ml_at_interrupt_context
- * Function: Check if running at interrupt context
- */
-boolean_t
-ml_at_interrupt_context(void)
-{
- boolean_t at_interrupt_context = FALSE;
-
- disable_preemption();
- at_interrupt_context = (getCpuDatap()->cpu_int_state != NULL);
- enable_preemption();
-
- return at_interrupt_context;
-}
-
extern uint32_t cpu_idle_count;
void ml_get_power_state(boolean_t *icp, boolean_t *pidlep) {
return ((vm_address_t)(vaddr) - gVirtBase + gPhysBase);
}
+vm_offset_t
+ml_static_slide(
+ vm_offset_t vaddr)
+{
+ return VM_KERNEL_SLIDE(vaddr);
+}
+
+vm_offset_t
+ml_static_unslide(
+ vm_offset_t vaddr)
+{
+ return VM_KERNEL_UNSLIDE(vaddr);
+}
kern_return_t
ml_static_protect(
return (processor);
}
-vm_offset_t
-ml_stack_remaining(void)
-{
- uintptr_t local = (uintptr_t) &local;
- vm_offset_t intstack_top_ptr;
-
- intstack_top_ptr = getCpuDatap()->intstack_top;
- if ((local < intstack_top_ptr) && (local > intstack_top_ptr - INTSTACK_SIZE)) {
- return (local - (getCpuDatap()->intstack_top - INTSTACK_SIZE));
- } else {
- return (local - current_thread()->kernel_stack);
- }
-}
-
boolean_t machine_timeout_suspended(void) {
return FALSE;
}
boolean_t ml_thread_is64bit(thread_t thread)
{
- return (thread_is_64bit(thread));
+ return (thread_is_64bit_addr(thread));
}
void ml_timer_evaluate(void) {
}
}
#endif // __ARM_USER_PROTECT__
-
-void ml_task_set_rop_pid(__unused task_t task, __unused task_t parent_task, __unused boolean_t inherit)
-{
- return;
-}