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:
@@ -587,10 +587,6 @@ VMKernelAddressSpace::_AllocateRange(
|
|||||||
case B_ANY_ADDRESS:
|
case B_ANY_ADDRESS:
|
||||||
case B_ANY_KERNEL_ADDRESS:
|
case B_ANY_KERNEL_ADDRESS:
|
||||||
address = fBase;
|
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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ VMUserAddressSpace::InsertArea(VMArea* _area, size_t size,
|
|||||||
case B_ANY_KERNEL_ADDRESS:
|
case B_ANY_KERNEL_ADDRESS:
|
||||||
case B_ANY_KERNEL_BLOCK_ADDRESS:
|
case B_ANY_KERNEL_BLOCK_ADDRESS:
|
||||||
case B_RANDOMIZED_ANY_ADDRESS:
|
case B_RANDOMIZED_ANY_ADDRESS:
|
||||||
searchBase = fBase;
|
searchBase = std::max(fBase, USER_BASE_ANY);
|
||||||
searchEnd = fEndAddress;
|
searchEnd = fEndAddress;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -194,11 +194,6 @@ VMUserAddressSpace::InsertArea(VMArea* _area, size_t size,
|
|||||||
return B_BAD_VALUE;
|
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,
|
status = _InsertAreaSlot(searchBase, size, searchEnd,
|
||||||
addressRestrictions->address_specification,
|
addressRestrictions->address_specification,
|
||||||
addressRestrictions->alignment, area, allocationFlags);
|
addressRestrictions->alignment, area, allocationFlags);
|
||||||
|
|||||||
Reference in New Issue
Block a user