History log of /haiku/src/system/kernel/util/Bitmap.cpp
Revision Date Author Comments
# 0235c047 24-Jul-2023 X512 <danger_mail@list.ru>

util/Bitmap: add more utility methods

Change-Id: I021c2fafa01266e8a38c1cb2fd748fd89a4b75bd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6742
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# bdcc293f 30-May-2023 Trung Nguyen <trungnt282910@gmail.com>

kernel/vm: handle page protections in cut_area

- Resize the `page_protections` array in `cut_area` and also shift
the bits if necessary.
- Set the correct protection array as well as the real page
protections for the second area produced by `cut_area`.

Change-Id: I62293480487e869420ebe5a3bc729cec2a14c687
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6395
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# cb1df90e 31-May-2023 Augustin Cavalier <waddlesplash@gmail.com>

Revert "kernel/vm: handle page protections in cut_area"

This reverts commit de07bc3fa58600e923d75cb732c60dacf160c098.

That's what I get for fixing bugs on test branches.


# de07bc3f 30-May-2023 Trung Nguyen <trungnt282910@gmail.com>

kernel/vm: handle page protections in cut_area

- Resize the `page_protections` array in `cut_area` and also shift
the bits if necessary.
- Set the correct protection array as well as the real page
protections for the second area produced by `cut_area`.

Change-Id: I62293480487e828970ebe5a3bc729cec2a14c687


# 88275138 24-Mar-2022 Augustin Cavalier <waddlesplash@gmail.com>

kernel/util: Implement more features in the Bitmap class.

* Resize(): adds more space to the end of the bitmap.
* Shift(): moves all bits in the map up or down.
* Use size_t instead of int for indexes.

Also add unit tests for the new functions (they seem to be passing.)

Reference material for shift implementation:
https://github.com/ecsv/linux-like-bitops/blob/2c56d43c1ebc9fc0dddc0149a374d096198372a9/bitops.h#L977

Change-Id: Ia85768aaeed7bd3ffef3a9f575f05331e048fe50
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5146
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 761714b3 01-Mar-2021 Murai Takashi <tmurai01@gmail.com>

kernel/util: Fix Null pointer passed as 1st argument to memset()

Pointed out by Clang Static Analyzer.

Change-Id: I8ee4c5d6adac129fc7f3d4117081e0ac26dd2ea0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3759
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 5c7f09c4 05-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Bitmap: Silence warning


# 149c82a8 02-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Add bitmap implementation


# 5c7f09c4d77dd52f0432c084fa3ce13001f8f1cd 05-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Bitmap: Silence warning


# 149c82a8ec8b1faed2ae722852042ba9d603b552 02-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Add bitmap implementation