smp: cast the read in quiesce_all_critical through void *

Fixes compilation on some 32-bit arm platforms.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
mjg 2019-11-30 19:33:02 +00:00
parent a598453702
commit c3fab6f99b

View File

@ -952,7 +952,7 @@ quiesce_all_critical(void)
break;
cpu_spinwait();
newtd = (struct thread *)
atomic_load_acq_ptr((u_long *)pcpu->pc_curthread);
atomic_load_acq_ptr((void *)pcpu->pc_curthread);
if (td != newtd)
break;
}