| author | Augustin Cavalier <waddlesplash@gmail.com> | 2022-03-29 17:33:18.0 -04:00:00 |
|---|---|---|
| committer | Alex von Gluck IV <kallisti5@unixzen.com> | 2022-03-30 0:37:17.0 +00:00:00 |
| commit | 0e96df526403ab1a0bf1b02134118dbdc7987e69 [patch] |
|
| tree | bce2d026d4f8648676153e6fe76d9598532f394e |
|
| parent | 6397752c67937415131ecef9da6b9b1f5fac52fd |
|
| download | 0e96df526403ab1a0bf1b02134118dbdc7987e69.tar.gz |
|
kernel/vm: Disable mlock implementation, it's broken.
Change-Id: If9e962685c3a363ef05ea3771ef6cafd87540e2c Reviewed-on: https://review.haiku-os.org/c/haiku/+/5165 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Diff
src/system/kernel/vm/vm.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index bb5fe67..40198b0 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -6954,6 +6954,11 @@ status_t _user_mlock(const void* address, size_t size) { #if 1 // This implementation is broken and cause panics. // Disable for now. return B_NOT_SUPPORTED; #else // Maybe there's nothing to do, in which case, do nothing if (size == 0) return B_OK; @@ -7073,11 +7078,15 @@ // Finally, store the new range in the locked list lockedPages->InsertBefore(currentRange, newRange); return B_OK; #endif } status_t _user_munlock(const void* address, size_t size) { #if 1 return B_NOT_SUPPORTED; #else // Maybe there's nothing to do, in which case, do nothing if (size == 0) return B_OK; @@ -7163,6 +7172,7 @@ } return B_OK; #endif }