X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/21362eb3e66fd2c787aee132bce100a44d71a99c..d9a64523371fa019c4575bb400cbbc3a50ac9903:/osfmk/i386/machine_cpu.h diff --git a/osfmk/i386/machine_cpu.h b/osfmk/i386/machine_cpu.h index b25a41f11..c193948e1 100644 --- a/osfmk/i386/machine_cpu.h +++ b/osfmk/i386/machine_cpu.h @@ -38,9 +38,10 @@ __BEGIN_DECLS void cpu_machine_init( void); -struct i386_interrupt_state; -void cpu_signal_handler( - struct i386_interrupt_state *regs); +void handle_pending_TLB_flushes( + void); + +int cpu_signal_handler(x86_saved_state_t *regs); kern_return_t cpu_register( int *slot_nump); @@ -48,12 +49,12 @@ __END_DECLS static inline void cpu_halt(void) { - asm volatile( "cli; hlt" ); + asm volatile( "wbinvd; cli; hlt" ); } static inline void cpu_pause(void) { - asm volatile( "rep; nop" ); + __builtin_ia32_pause(); } #endif /* _I386_MACHINE_CPU_H_ */