#ifdef MACH_KERNEL_PRIVATE
-extern unsigned int LcksOpts;
-
#define enaLkDeb 0x00000001 /* Request debug in default attribute */
#define enaLkStat 0x00000002 /* Request statistic in default attribute */
#define disLkRWPrio 0x00000004 /* Disable RW lock priority promotion */
#define LCK_FRAMES_MAX 8
extern uint64_t MutexSpin;
+extern uint64_t low_MutexSpin;
+extern int64_t high_MutexSpin;
typedef struct {
unsigned int type;
#if __arm__
__asm__ volatile ("mrs %[state], cpsr" :[state] "=r" (state)); // Read cpsr
#else
- state = __builtin_arm_rsr64("DAIF"); // Read interrupt state
+ state = (long)__builtin_arm_rsr64("DAIF"); // Read interrupt state
#endif
return state;
}
#if __arm__
__asm__ volatile ("msr cpsr, %[state]" :: [state] "r" (state) : "cc", "memory"); // Restore CPSR
#elif __arm64__
- __builtin_arm_wsr64("DAIF", state); // Restore masks
+ __builtin_arm_wsr64("DAIF", (uint64_t)state); // Restore masks
#endif
}