Fixed vm_copy_area() when B_CLONE_ADDRESS was specified (insert_area() does not

know about this specifier, it has to be replaced by B_EXACT_ADDRESS).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9281 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-10-11 12:02:20 +00:00
parent 53a74c2fa2
commit 41dbd5191c

View File

@ -1356,8 +1356,10 @@ vm_copy_area(aspace_id addressSpaceID, const char *name, void **_address, uint32
addressSpace = vm_get_aspace_by_id(addressSpaceID);
cacheRef = source->cache_ref;
if (addressSpec == B_CLONE_ADDRESS)
if (addressSpec == B_CLONE_ADDRESS) {
addressSpec = B_EXACT_ADDRESS;
*_address = (void *)source->base;
}
// First, create a cache on top of the source area