summaryrefslogtreecommitdiff
path: root/payloads/Makefile.inc
diff options
context:
space:
mode:
authorYidi Lin <yidilin@chromium.org>2023-10-31 18:50:06 +0800
committerMartin L Roth <gaumless@gmail.com>2023-11-04 17:09:00 +0000
commit85d7809e0ca80b94fd23a753e0894b8843d38367 (patch)
treed3feaea2d547a513f8134e599145e36ce306f852 /payloads/Makefile.inc
parentda1a0e891be5f6aed7af703b117a2fe60049f3bc (diff)
arch/arm64/arch_timer: Fix possible overflow in multiplication
The value from raw_read_cntfrq_el0() could be large enough to cause overflow when multiplied by USECS_PER_SEC. To prevent this, both USECS_PER_SEC and tfreq can be reduced by dividing them by their GCD. BUG=b:307790895 TEST=emerge-geralt coreboot TEST=boot to kernel and check the timestamps from `cbmem` Change-Id: I366667de05392913150414f0fa9058725be71c52 Signed-off-by: Yidi Lin <yidilin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78800 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/Makefile.inc')
0 files changed, 0 insertions, 0 deletions