Skip to content
Commit 02a1e21c authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

x86_64: Missing a volatile on a struct used for spinning



Before we're initialized and can use proper synchronization, the CPU
initialization path spins on the thread entry function to be non-null.
But the data wasn't tagged volatile, and with gcc 8.2.1 (but not
6.2.0) the optimizer was hoisting the reads to SMP init would spin
forever.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent aed82881
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment