commit | 71fd58ccac040a2e81b05c2ed665b37bb190bdc0 | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Wed Feb 03 15:06:33 2021 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Feb 04 13:10:25 2021 -0500 |
tree | 9b2621464d0b6b4df6e28e299f1d42b19fbb1786 | |
parent | bd1d0b22b5590a57a05e51260284597464abe5ce [diff] |
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: Andy Ross <andrew.j.ross@intel.com>