From 41dbd5191c9909a27364773e0c3b59148cf17d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 11 Oct 2004 12:02:20 +0000 Subject: [PATCH] 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 --- src/kernel/core/vm/vm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel/core/vm/vm.c b/src/kernel/core/vm/vm.c index 170d23f396..f21d7fd2a4 100755 --- a/src/kernel/core/vm/vm.c +++ b/src/kernel/core/vm/vm.c @@ -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