summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_bitmap.h
AgeCommit message (Collapse)AuthorFilesLines
2024-02-20platform: generic: Add support for specify coldboot harts in DTCheng Yang1-0/+5
Added support for the generic platform to specify the set of coldboot hart in DT. If not specified in DT, all harts are allowed to coldboot as before. The functions related to sbi_hartmask are not available before coldboot, so I used bitmap, and added a new bitmap_test() function to test whether a certain bit of the bitmap is set. Signed-off-by: Cheng Yang <yangcheng.work@foxmail.com> Reviewed-by: Anup Patel <anup@brainfault.org>
2020-03-11lib: Simple bitmap libraryAnup Patel1-0/+128
We add simple bitmap library which will help us create and maintain bitmaps. It will also help us create a simple HART mask library. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>