diff options
author | Atish Patra <[email protected]> | 2019-02-22 11:41:39 -0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2019-03-04 10:40:39 -0800 |
commit | 291debb38dbbce9d5e7c342c5d6dc616f1d9777e (patch) | |
tree | 7850ccf161b2297e325d93a5807f9543caadda64 /scripts/gdb/linux/rbtree.py | |
parent | dd641e2686734ff78a1dec592ee82054d06bd456 (diff) |
RISC-V: Compare cpuid with NR_CPUS before mapping.
We should never have a cpuid greater that NR_CPUS. Compare with NR_CPUS
before creating the mapping between logical and physical CPU ids. This
is also mandatory as NR_CPUS check is removed from
riscv_of_processor_hartid.
Signed-off-by: Atish Patra <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/rbtree.py')
0 files changed, 0 insertions, 0 deletions