nuttx/arch/arm64/src
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
..
a64 arm64/qemu: The PSCI can be configured with CONFIG_ARM64_PSCI 2024-06-20 09:41:28 +08:00
cmake cmake:bugfix CMake compilation options settings should not use strings 2024-05-30 10:02:10 -03:00
common Revert "irq: remove restore_critical_section in irq" 2024-07-02 15:46:20 +08:00
fvp-v8r arm64: inline up_cpu_index 2024-06-28 21:29:33 +08:00
goldfish arm64: inline up_cpu_index 2024-06-28 21:29:33 +08:00
imx8 paging: Rename existing CONFIG_PAGING to CONFIG_LEGACY_PAGING 2024-03-05 09:45:49 +08:00
imx9 arch/arm64/src/imx9/imx9_lowputc.c: Fix an arithmetic sign error in divisor calculation 2024-07-05 21:47:07 +08:00
qemu arm64: inline up_cpu_index 2024-06-28 21:29:33 +08:00
rk3399 arm64/qemu: The PSCI can be configured with CONFIG_ARM64_PSCI 2024-06-20 09:41:28 +08:00
.gitignore
CMakeLists.txt CMake:init arm64 CMake qemu-armv8a build 2023-12-27 07:27:17 -08:00
Makefile kasan: Implementing global variable out of bounds detection 2024-04-07 23:31:13 +08:00
Toolchain.defs arch: Add --whole-archive linker option for some of architectures 2024-06-28 02:31:40 +08:00