sd-boot: add overflow check to TSC reads
authorLennart Poettering <lennart@poettering.net>
Tue, 8 Feb 2022 10:23:19 +0000 (11:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 8 Feb 2022 12:46:14 +0000 (13:46 +0100)
commit476c0e969a704387c24bd4f125e4c7c53013c876
tree36c8ce1183cbfc5518825770d62cd7cd90409845
parent1e66a233734a34a9eedf4b1c02cb7246f86bbd48
sd-boot: add overflow check to TSC reads

On some archs the counter is 32bit, and in case of virtualization it
might actually overflow, who knows.
src/boot/efi/ticks.c