diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2022-01-31 14:26:20 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-02-14 12:27:38 -0800 |
commit | 12f4a665cc3568328728e46c3162873b5b69cd27 (patch) | |
tree | a094e398faaf8bb171303d8753fed50744d1ef36 /Makefile | |
parent | 6df2a016c0c8a3d0933ef33dd192ea6606b115e3 (diff) |
RISC-V: Fix hartid mask handling for hartid 31 and up
Jessica reports that using "1 << hartid" causes undefined behavior for
hartid 31 and up.
Fix this by using the BIT() helper instead of an explicit shift.
Reported-by: Jessica Clarke <jrtc27@jrtc27.com>
Fixes: 26fb751ca37846c9 ("RISC-V: Do not use cpumask data structure for hartid bitmap")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions