diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-04 11:48:31 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-08 11:09:46 +0530 |
commit | a148996a7f9097a1f8e43cc62bd65972b008cad4 (patch) | |
tree | 4b0997037a50256b2c6bee2d693a4b17b3301cb0 /lib/sbi/objects.mk | |
parent | 00d332bbe726d85e4c2b81ab0a08182612f96c03 (diff) |
include: sbi_bitops: More useful bit operations
This patch extends our bit operation library with mechanism to:
1. Iteratively traverse bits
2. Set bit
3. Clear bit
4. Change bit
5. ... other helpful functions ...
Most the above is adopted from Xvisor sources.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/objects.mk')
-rw-r--r-- | lib/sbi/objects.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sbi/objects.mk b/lib/sbi/objects.mk index 39e9295..5c30d97 100644 --- a/lib/sbi/objects.mk +++ b/lib/sbi/objects.mk @@ -12,6 +12,7 @@ libsbi-objs-y += riscv_atomic.o libsbi-objs-y += riscv_hardfp.o libsbi-objs-y += riscv_locks.o +libsbi-objs-y += sbi_bitops.o libsbi-objs-y += sbi_console.o libsbi-objs-y += sbi_ecall.o libsbi-objs-y += sbi_ecall_base.o |