aboutsummaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_expected_trap.S
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2024-04-09 12:02:04 +0200
committerAnup Patel <anup@brainfault.org>2024-05-07 17:26:14 +0530
commit22ff75099c53a4bac72abc3fa10157aabeb3ce49 (patch)
treec49f995faa9de4e3505add53805d83abec1c63f3 /lib/sbi/sbi_expected_trap.S
parent7aa80ea4954ea369dba8f5864a1386342c44d806 (diff)
downloadopensbi-22ff75099c53a4bac72abc3fa10157aabeb3ce49.zip
opensbi-22ff75099c53a4bac72abc3fa10157aabeb3ce49.tar.gz
opensbi-22ff75099c53a4bac72abc3fa10157aabeb3ce49.tar.bz2
lib: sbi: sse: simplify 32bits overflow check
Rather than checking 32bits overflow with some absolute value, check the value to be different from the cast itself. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reported-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/sbi/sbi_expected_trap.S')
0 files changed, 0 insertions, 0 deletions