nuttx/arch/risc-v
Eero Nurkkala 6596f0e99a risc-v/mpfs: fix compile warning
After commit b7d2b38, the system suffers from -Warray-bounds warning with -Wall:

chip/mpfs_opensbi.c: In function 'mpfs_hart_to_scratch':
chip/mpfs_opensbi.c:251:26: warning: array subscript hartid is outside array bounds of 'sbi_scratch_holder_t[0]' {aka 'struct sbi_scratch_holder_s[]'} [-Warray-bounds]
  251 |   return (unsigned long)(&g_scratches[hartid].scratch);

Fix it by reverting back to what is was earlier. g_scratches shouldn't be in the bss
region that would be zeroed out.

Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2022-11-21 14:43:34 +01:00
..
include riscv: Dump trap val in exception handler 2022-08-30 14:55:33 +08:00
src risc-v/mpfs: fix compile warning 2022-11-21 14:43:34 +01:00
Kconfig arch: risc-v: Remove FPU support from qemu-rv 2022-09-20 11:40:40 +08:00