Files
mbedtls/include/mbedtls
Manuel Pégourié-Gonnard 72a8c9e7dc Force some compilers to respect volatile reads
Inspection of the generated assembly showed that before this commit, armcc 5
was optimizing away the successive reads to the volatile local variable that's
used for double-checks. Inspection also reveals that inserting a call to an
external function is enough to prevent it from doing that.

The tested versions of ARM-GCC, Clang and Armcc 6 (aka armclang) all keep the
double read, with our without a call to an external function in the middle.

The inserted function can also be changed to insert a random delay if
desired in the future, as it is appropriately places between the reads.
2019-11-21 15:14:59 +01:00
..
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-07-01 10:22:53 +03:00
2019-09-06 07:58:36 +03:00
2018-12-16 12:02:50 +02:00
2019-10-24 12:19:50 +03:00
2019-09-09 09:45:57 +01:00
2019-02-21 16:58:20 +01:00
2019-09-09 09:45:57 +01:00
2018-12-16 12:02:50 +02:00
2019-04-24 10:51:54 +02:00
2018-12-16 12:02:50 +02:00
2018-12-28 11:11:10 +08:00
2019-09-06 07:58:36 +03:00
2019-09-06 13:27:00 +01:00
2019-06-18 11:05:44 +01:00