X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/316670eb35587141e969394ae8537d66b9211e80..3903760236c30e3b5ace7a4eefac3a269d68957c:/osfmk/i386/machine_routines.h?ds=sidebyside diff --git a/osfmk/i386/machine_routines.h b/osfmk/i386/machine_routines.h index 65e28b742..a1e9c39f8 100644 --- a/osfmk/i386/machine_routines.h +++ b/osfmk/i386/machine_routines.h @@ -78,9 +78,11 @@ void ml_install_interrupt_handler( IOInterruptHandler handler, void *refCon); -void ml_get_timebase(unsigned long long *timestamp); +void ml_entropy_collect(void); + +uint64_t ml_get_timebase(); void ml_init_lock_timeout(void); -void ml_init_delay_spin_threshold(void); +void ml_init_delay_spin_threshold(int); boolean_t ml_delay_should_spin(uint64_t interval); @@ -103,6 +105,9 @@ vm_offset_t ml_vtophys( vm_size_t ml_nofault_copy( vm_offset_t virtsrc, vm_offset_t virtdst, vm_size_t size); +boolean_t ml_validate_nofault( + vm_offset_t virtsrc, vm_size_t size); + /* Machine topology info */ uint64_t ml_cpu_cache_size(unsigned int level); uint64_t ml_cpu_cache_sharing(unsigned int level); @@ -117,6 +122,14 @@ extern void ml_cpu_down(void); void bzero_phys_nc( addr64_t phys_address, uint32_t length); +extern uint32_t interrupt_timer_coalescing_enabled; +extern uint32_t idle_entry_timer_processing_hdeadline_threshold; + +#if TCOAL_INSTRUMENT +#define TCOAL_DEBUG KERNEL_DEBUG_CONSTANT +#else +#define TCOAL_DEBUG(x, a, b, c, d, e) do { } while(0) +#endif /* TCOAL_INSTRUMENT */ #if defined(PEXPERT_KERNEL_PRIVATE) || defined(MACH_KERNEL_PRIVATE) /* IO memory map services */ @@ -132,6 +145,7 @@ void ml_get_bouncepool_info( vm_size_t *size); /* Indicates if spinlock, IPI and other timeouts should be suspended */ boolean_t machine_timeout_suspended(void); +void plctrace_disable(void); #endif /* PEXPERT_KERNEL_PRIVATE || MACH_KERNEL_PRIVATE */ /* Warm up a CPU to receive an interrupt */ @@ -299,10 +313,6 @@ void bzero_phys( /* Bytes available on current stack */ vm_offset_t ml_stack_remaining(void); -#if CONFIG_COUNTERS -void ml_get_csw_threads(thread_t * /*old*/, thread_t * /*new*/); -#endif /* CONFIG_COUNTERS */ - __END_DECLS #ifdef XNU_KERNEL_PRIVATE @@ -312,6 +322,20 @@ boolean_t ml_fpu_avx_enabled(void); void interrupt_latency_tracker_setup(void); void interrupt_reset_latency_stats(void); void interrupt_populate_latency_stats(char *, unsigned); +void ml_get_power_state(boolean_t *, boolean_t *); + +void timer_queue_expire_local(void*); +void timer_queue_expire_rescan(void*); +void ml_timer_evaluate(void); +boolean_t ml_timer_forced_evaluation(void); + +uint64_t ml_energy_stat(thread_t); +void ml_gpu_stat_update(uint64_t); +uint64_t ml_gpu_stat(thread_t); +boolean_t ml_recent_wake(void); + +extern uint64_t reportphyreaddelayabs; +extern uint32_t reportphyreadosbt; #endif /* XNU_KERNEL_PRIVATE */ #endif /* _I386_MACHINE_ROUTINES_H_ */