diff --git a/headers/private/system/vm_defs.h b/headers/private/system/vm_defs.h index c5f405014b..81230d5f4f 100644 --- a/headers/private/system/vm_defs.h +++ b/headers/private/system/vm_defs.h @@ -31,9 +31,7 @@ // flags region in the protection field. #define B_OVERCOMMITTING_AREA 0x1000 #define B_SHARED_AREA 0x2000 -#define B_KERNEL_AREA 0x4000 - // Usable from userland according to its protection flags, but the area - // itself is not deletable, resizable, etc from userland. +/* 0x4000 was B_KERNEL_AREA until hrev52545 */ #define B_USER_AREA_FLAGS (B_USER_PROTECTION | B_OVERCOMMITTING_AREA) #define B_KERNEL_AREA_FLAGS \ diff --git a/src/kits/debugger/user_interface/util/UiUtils.cpp b/src/kits/debugger/user_interface/util/UiUtils.cpp index 848981f3a8..5e65d72c8c 100644 --- a/src/kits/debugger/user_interface/util/UiUtils.cpp +++ b/src/kits/debugger/user_interface/util/UiUtils.cpp @@ -230,7 +230,6 @@ UiUtils::AreaProtectionFlagsToString(uint32 protection, BString& _output) ADD_AREA_FLAG_IF_PRESENT(B_OVERCOMMITTING_AREA, protection, _output, "o", ""); ADD_AREA_FLAG_IF_PRESENT(B_SHARED_AREA, protection, "S", _output, ""); - ADD_AREA_FLAG_IF_PRESENT(B_KERNEL_AREA, protection, "k", _output, ""); if (protection != 0) { char buffer[32]; diff --git a/src/system/kernel/commpage.cpp b/src/system/kernel/commpage.cpp index d895feb001..4aa05f6640 100644 --- a/src/system/kernel/commpage.cpp +++ b/src/system/kernel/commpage.cpp @@ -66,7 +66,7 @@ clone_commpage_area(team_id team, void** address) if (*address == NULL) *address = (void*)KERNEL_USER_DATA_BASE; return vm_clone_area(team, "commpage", address, - B_RANDOMIZED_BASE_ADDRESS, B_READ_AREA | B_EXECUTE_AREA | B_KERNEL_AREA, + B_RANDOMIZED_BASE_ADDRESS, B_READ_AREA | B_EXECUTE_AREA, REGION_PRIVATE_MAP, sCommPageArea, true); }