rtfb/riscv-hobby-os

Do not assume hart IDs to be sequential

Opened this issue · 0 comments

rtfb commented

The code here expects that mhartids are sequential numbers, which is not guaranteed to be true. The spec for mhartid points out that while one of harts must have ID=0, other harts do not have to be numbered sequentially.

CC @rejunity