+unsigned int LockTimeOut = 1250000000;
+unsigned int MutexSpin = 0;
+
+decl_mutex_data(static,mcpus_lock);
+unsigned int mcpus_lock_initialized = 0;
+unsigned int mcpus_state = 0;
+
+uint32_t warFlags = 0;
+#define warDisMBpoff 0x80000000
+#define MAX_CPUS_SET 0x01
+#define MAX_CPUS_WAIT 0x02
+
+decl_simple_lock_data(, spsLock);
+unsigned int spsLockInit = 0;
+
+extern unsigned int hwllckPatch_isync;
+extern unsigned int hwulckPatch_isync;
+extern unsigned int hwulckbPatch_isync;
+extern unsigned int hwlmlckPatch_isync;
+extern unsigned int hwltlckPatch_isync;
+extern unsigned int hwcsatomicPatch_isync;
+extern unsigned int mlckePatch_isync;
+extern unsigned int mlckPatch_isync;
+extern unsigned int mltelckPatch_isync;
+extern unsigned int mltlckPatch_isync;
+extern unsigned int mulckePatch_isync;
+extern unsigned int mulckPatch_isync;
+extern unsigned int slckPatch_isync;
+extern unsigned int stlckPatch_isync;
+extern unsigned int sulckPatch_isync;
+extern unsigned int rwlePatch_isync;
+extern unsigned int rwlsPatch_isync;
+extern unsigned int rwlsePatch_isync;
+extern unsigned int rwlesPatch_isync;
+extern unsigned int rwtlePatch_isync;
+extern unsigned int rwtlsPatch_isync;
+extern unsigned int rwldPatch_isync;
+extern unsigned int hwulckPatch_eieio;
+extern unsigned int mulckPatch_eieio;
+extern unsigned int mulckePatch_eieio;
+extern unsigned int sulckPatch_eieio;
+extern unsigned int rwlesPatch_eieio;
+extern unsigned int rwldPatch_eieio;
+
+struct patch_up {
+ unsigned int *addr;
+ unsigned int data;
+};
+
+typedef struct patch_up patch_up_t;
+
+patch_up_t patch_up_table[] = {
+ {&hwllckPatch_isync, 0x60000000},
+ {&hwulckPatch_isync, 0x60000000},
+ {&hwulckbPatch_isync, 0x60000000},
+ {&hwlmlckPatch_isync, 0x60000000},
+ {&hwltlckPatch_isync, 0x60000000},
+ {&hwcsatomicPatch_isync, 0x60000000},
+ {&mlckePatch_isync, 0x60000000},
+ {&mlckPatch_isync, 0x60000000},
+ {&mltelckPatch_isync, 0x60000000},
+ {&mltlckPatch_isync, 0x60000000},
+ {&mulckePatch_isync, 0x60000000},
+ {&mulckPatch_isync, 0x60000000},
+ {&slckPatch_isync, 0x60000000},
+ {&stlckPatch_isync, 0x60000000},
+ {&sulckPatch_isync, 0x60000000},
+ {&rwlePatch_isync, 0x60000000},
+ {&rwlsPatch_isync, 0x60000000},
+ {&rwlsePatch_isync, 0x60000000},
+ {&rwlesPatch_isync, 0x60000000},
+ {&rwtlePatch_isync, 0x60000000},
+ {&rwtlsPatch_isync, 0x60000000},
+ {&rwldPatch_isync, 0x60000000},
+ {&hwulckPatch_eieio, 0x60000000},
+ {&hwulckPatch_eieio, 0x60000000},
+ {&mulckPatch_eieio, 0x60000000},
+ {&mulckePatch_eieio, 0x60000000},
+ {&sulckPatch_eieio, 0x60000000},
+ {&rwlesPatch_eieio, 0x60000000},
+ {&rwldPatch_eieio, 0x60000000},
+ {NULL, 0x00000000}
+};
+
+extern int forcenap;
+extern boolean_t pmap_initialized;