commit | f99fb607fb2bc0d4ce6b9adb764c65e37f40a92b | [log] [tgz] |
---|---|---|
author | Atish Patra <atish.patra@wdc.com> | Tue Oct 02 12:15:05 2018 -0700 |
committer | Palmer Dabbelt <palmer@sifive.com> | Mon Oct 22 17:03:37 2018 -0700 |
tree | 082100e81815f6c2fa5d152821d24351aa16a871 | |
parent | 6825c7a80f1863b975a00042abe140ea24813af2 [diff] |
RISC-V: Use Linux logical CPU number instead of hartid Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical CPU to hartid mapping to pass correct hartid to respective functions. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>