https://github.com/mupq/pqm4
Revision f5198cb4cc94cc1620ddbaf2f66f99aab1ed742a authored by Ko- on 09 September 2019, 08:16:08 UTC, committed by Ko- on 10 September 2019, 08:42:46 UTC
hal_get_time() gave wrong values if the SysTick counter reached 0 between reading overflowcnt and calling systick_get_value(). This behavior is now addressed by retrying if that happens. Thanks to djb for pointing that out to us. The reset value is also increased to the maximum of 2^24-1, such that there is less overhead from the interrupt handler, and overflowcnt is marked volatile.
1 parent 60e418f
Tip revision: f5198cb4cc94cc1620ddbaf2f66f99aab1ed742a authored by Ko- on 09 September 2019, 08:16:08 UTC
Fix hal_get_time()
Fix hal_get_time()
Tip revision: f5198cb
File | Mode | Size |
---|---|---|
common | ||
crypto_kem | ||
crypto_sign | ||
hostside | ||
ldscripts | ||
libopencm3 @ 8b1ac58 | ||
mupq @ 152e4c8 | ||
.gitignore | -rw-r--r-- | 77 bytes |
.gitmodules | -rw-r--r-- | 168 bytes |
Makefile | -rw-r--r-- | 5.2 KB |
README.md | -rw-r--r-- | 19.6 KB |
benchmarks.csv | -rw-r--r-- | 37.4 KB |
benchmarks.md | -rw-r--r-- | 58.9 KB |
benchmarks.py | -rwxr-xr-x | 696 bytes |
build_everything.py | -rwxr-xr-x | 232 bytes |
convert_benchmarks.py | -rwxr-xr-x | 417 bytes |
interface.py | -rw-r--r-- | 2.8 KB |
requirements.txt | -rw-r--r-- | 14 bytes |
test.py | -rwxr-xr-x | 228 bytes |
testvectors.py | -rwxr-xr-x | 228 bytes |
Computing file changes ...