|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v3 00/17] import bitmaps from FreeBSD
Changes since v1:
- resplit patches for more convinent review. I did it for myself just
to separate important changes from spaces noise. But small change
by small change it grew into v2.
- add prefix "uk_" to bitcount* functions
- use non-ordered versions of ukarch_(set|clr|test)_bit when ordered
version is not required
- use ukarch_test_and_(set|clr)_bit_sync functions for
test_and_(set|clear)_bit instead of reimplementing them
Changes since v2:
- massive function renaming - add uk_ prefix to all functions/macro
- remove ffz - it is not used anywhere sofar. Even if it is needed it
belongs to uk/arch/atomic.h with the prefixt ukarch_. Which is a
bit ugly, because it does not follow the convention used in this
series: linux api functions with the uk_ prefix.
Anyways, ukarch_ffs(~word) is not much longer then ukarch_ffz(word)
- add assertion for the undefined behaviour of ffs-functions if
argument is zero
Costin Lupu (8):
include/uk/arch: Add ukarch_ffs, ukarch_fls, ukarch_flsl functions for
x86_64
lib/nolibc: add sys/param.h header
include/uk: import bitcount.h
include/uk: import bitops.h and bitmap.h from FreeBSD
uk/include: bitmap, bitopts - fix spaces issues
uk/include: bitmap, bitops - fix return is not a function
uk/include: use ukarch_ffs func family in bitopts.h
include/uk: adapt bitops.h, bitmap.h for Unikraft
Yuri Volchkov (9):
include/uk/arch: assert for undefined behavior in ffs-functions
uk/include: bitopts.h - remove already existing functions
include/uk: add prefix to BITS_PER_LONG
include/uk: prefix functions in bitmap.h
uk/include: prefix functions in bitmap.h
uk/include: add prefix to BITMAP_(FIRST|LAST)_WORT_MASK
uk/include: add prefix to BITS_TO_LONG and BIT_WORD
uk/include: add prefix to hweight* functions
uk/include: rename linux_reg_op to __uk_bitops_reg_op
include/uk/arch/x86_64/atomic.h | 64 +++++-
include/uk/bitcount.h | 91 +++++++++
include/uk/bitmap.h | 292 +++++++++++++++++++++++++++
include/uk/bitops.h | 344 ++++++++++++++++++++++++++++++++
lib/nolibc/include/sys/param.h | 52 +++++
lib/nolibc/include/sys/select.h | 7 +-
6 files changed, 843 insertions(+), 7 deletions(-)
create mode 100644 include/uk/bitcount.h
create mode 100644 include/uk/bitmap.h
create mode 100644 include/uk/bitops.h
create mode 100644 lib/nolibc/include/sys/param.h
--
2.18.0
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |