Commit 296e70d6 authored by Xiang W's avatar Xiang W Committed by Anup Patel
Browse files

lib: sbi: Extend sbi_hartmask to support both hartid and hartindex



Currently, the sbi_hartmask is indexed by hartid which puts a
limit on hartid to be less than SBI_HARTMASK_MAX_BITS.

We extend the sbi_hartmask implementation to use hartindex and
support updating sbi_hartmask using hartid. This removes the
limit on hartid and existing code works largely unmodified.

Signed-off-by: default avatarXiang W <wxjstz@126.com>
Signed-off-by: default avatarAnup Patel <apatel@ventanamicro.com>
parent e6125c3c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment