coreboot-kgpe-d16/payloads/libpayload/drivers/timer
Jacob Garber 3d25430b84 libpayload/drivers/timer: Use 64 bits to prevent overflow
Cast cpu_khz to a 64 bit integer to prevent possible
integer overflow (the multiplication is currently done
using 32 bit math). Similar to 61dac13 (libpayload:
timer: cast cpu_khz to make sure 64bit math is used).

Found-by: Coverity Scan, CID 1261177
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: Iadb0abb7c7cc078f31a6d88d971f5d1b8ac62a9e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32223
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2019-04-08 14:16:02 +00:00
..
Kconfig libpayload: Remove unused timer/serial drivers 2018-12-05 14:07:17 +00:00
arm64_arch_timer.c libpayload: Add Timer for sdm845 2018-05-01 23:35:25 +00:00
generic.c
img_pistachio.c libpayload/drivers/timer: Use 64 bits to prevent overflow 2019-04-08 14:16:02 +00:00
rdtsc.c libpayload: timer: cast cpu_khz to make sure 64bit math is used 2017-01-06 18:40:44 +01:00