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

drivers/cavs_timer: Fix multiword race with timer counter



The count register is 64 bits, but we're a 32 bit CPU that can only
read four bytes at a time, so a bit of care is needed to prevent
racing against a wraparound of the low word.  Wrap the low read
between two reads of the high word and make sure it didn't change.

Fixes #31599

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