commit | ba7695b39bb82d5ceba093b0c18dd38cc9af61c3 | [log] [tgz] |
---|---|---|
author | Sandrine Bailleux <sandrine.bailleux@arm.com> | Thu Dec 20 14:57:16 2018 +0100 |
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | Thu Dec 20 16:29:31 2018 +0100 |
tree | bd7dd5eb9dc1a690a2c8fb8531197bc354e60d30 | |
parent | d01a4c64411249d6011f1690f1cea15f106198e4 [diff] |
Fix waitus() waitus() was missing an instruction barrier before reading the system counter value. As a result, the CPU could speculatively read it and we would potentially base our delay loop on stale values. waitus() now uses the syscounter_read() helper function introduced in the previous patch, which has the required ISB. Change-Id: Ic37254485a9cdc4d4d2c86d245aa3273454e82ff Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>