⬢ DragonFlyBSD Kernel Audit
DF-5442 / fix.diff
← back to finding ↓ download raw
--- a/sys/platform/pc64/x86_64/amd64_mem.c
+++ b/sys/platform/pc64/x86_64/amd64_mem.c
@@ -286,7 +286,7 @@
 	 * The "proper" solution involves a generalised locking gate
 	 * implementation, not ready yet.
 	 */
-	lwkt_send_ipiq_mask(smp_active_mask, (void *)amd64_mrstoreone, sc);
+	lwkt_cpusync_simple(smp_active_mask, amd64_mrstoreone, sc);
 }
 
 /*
@@ -723,7 +723,8 @@
 	 * The "proper" solution involves a generalised locking gate
 	 * implementation, not ready yet.
 	 */
-	lwkt_send_ipiq_mask(smp_active_mask, (void *)amd64_mrAPinit, sc);
+	lwkt_cpusync_simple(smp_active_mask,
+	    (cpusync_func_t)amd64_mrAPinit, sc);
 }
 
 static void