kernel: Remove the B_KERNEL_AREA protection flag.

It is now no longer used.
This commit is contained in:
Augustin Cavalier
2018-11-17 16:46:49 -05:00
parent 04f1a9beae
commit 9cc0f06a01
3 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -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 \
@@ -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];
+1 -1
View File
@@ -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);
}