kernel/vm: Remove VM86-related address space hacks.

VM86 was removed in 2012, so these are no longer needed.
The USER_BASE vs. USER_BASE_ANY distinction still seems like a
potentially useful one, though, so I've left all those changes in.
This commit is contained in:
Augustin Cavalier
2019-02-20 13:28:25 -05:00
parent b08b51b417
commit 836a9548e0
2 changed files with 1 additions and 10 deletions
@@ -587,10 +587,6 @@ VMKernelAddressSpace::_AllocateRange(
case B_ANY_ADDRESS:
case B_ANY_KERNEL_ADDRESS:
address = fBase;
// TODO: remove this again when vm86 mode is moved into the kernel
// completely (currently needs a userland address space!)
if (address == USER_BASE)
address = USER_BASE_ANY;
break;
default:
+1 -6
View File
@@ -186,7 +186,7 @@ VMUserAddressSpace::InsertArea(VMArea* _area, size_t size,
case B_ANY_KERNEL_ADDRESS:
case B_ANY_KERNEL_BLOCK_ADDRESS:
case B_RANDOMIZED_ANY_ADDRESS:
searchBase = fBase;
searchBase = std::max(fBase, USER_BASE_ANY);
searchEnd = fEndAddress;
break;
@@ -194,11 +194,6 @@ VMUserAddressSpace::InsertArea(VMArea* _area, size_t size,
return B_BAD_VALUE;
}
// TODO: remove this again when vm86 mode is moved into the kernel
// completely (currently needs a userland address space!)
if (addressRestrictions->address_specification != B_EXACT_ADDRESS)
searchBase = std::max(searchBase, (addr_t)USER_BASE_ANY);
status = _InsertAreaSlot(searchBase, size, searchEnd,
addressRestrictions->address_specification,
addressRestrictions->alignment, area, allocationFlags);