nuttx/arch/arm64
Jukka Laitinen b008653ac0 arch/arm64/src/imx9/imx9_lowputc.c: Fix an arithmetic sign error in divisor calculation
In the algorithm there is a subtraction (int - unsigned), which results (potentially overflowed)
unsigned.

Passing this to macro ABS and the assigning to int doesn't work ( unsigned is always >= 0 ).

Fix this by replacing (dangerous) ABS macro with stdlib's standard "int abs(int)"
and change the substraction to (int - int).

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2024-07-05 21:47:07 +08:00
..
include arm64: inline up_cpu_index 2024-06-28 21:29:33 +08:00
src arch/arm64/src/imx9/imx9_lowputc.c: Fix an arithmetic sign error in divisor calculation 2024-07-05 21:47:07 +08:00
CMakeLists.txt CMake:init arm64 CMake qemu-armv8a build 2023-12-27 07:27:17 -08:00
Kconfig arm64/qemu: The PSCI can be configured with CONFIG_ARM64_PSCI 2024-06-20 09:41:28 +08:00