From: Mark Wooding Date: Sat, 6 May 2023 23:58:39 +0000 (+0100) Subject: base/dispatch.c: Check atomic copy of the probes flags, not the original. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/7c545e7b9a411536114d43c7d5ed8c95a2ebd56a base/dispatch.c: Check atomic copy of the probes flags, not the original. Rather defeats the point otherwise. --- diff --git a/base/dispatch.c b/base/dispatch.c index 309be5c3..4ce60159 100644 --- a/base/dispatch.c +++ b/base/dispatch.c @@ -413,7 +413,7 @@ static unsigned get_hwcaps(void) unsigned hw; DISPATCH_LOAD(hwcaps, hw); - if (!(hwcaps & HF_PROBED)) { probe_hwcaps(); DISPATCH_LOAD(hwcaps, hw); } + if (!(hw & HF_PROBED)) { probe_hwcaps(); DISPATCH_LOAD(hwcaps, hw); } return (hw); }