* Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34094 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2008, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2002-2009, Axel Dörfler, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||||
@@ -183,7 +183,7 @@ vm_get_address_space(team_id id)
|
|||||||
vm_address_space*
|
vm_address_space*
|
||||||
vm_get_kernel_address_space(void)
|
vm_get_kernel_address_space(void)
|
||||||
{
|
{
|
||||||
/* we can treat this one a little differently since it can't be deleted */
|
// we can treat this one a little differently since it can't be deleted
|
||||||
atomic_add(&sKernelAddressSpace->ref_count, 1);
|
atomic_add(&sKernelAddressSpace->ref_count, 1);
|
||||||
return sKernelAddressSpace;
|
return sKernelAddressSpace;
|
||||||
}
|
}
|
||||||
@@ -299,7 +299,7 @@ vm_create_address_space(team_id id, addr_t base, addr_t size,
|
|||||||
// initialize the corresponding translation map
|
// initialize the corresponding translation map
|
||||||
status = arch_vm_translation_map_init_map(&addressSpace->translation_map,
|
status = arch_vm_translation_map_init_map(&addressSpace->translation_map,
|
||||||
kernel);
|
kernel);
|
||||||
if (status < B_OK) {
|
if (status != B_OK) {
|
||||||
free(addressSpace);
|
free(addressSpace);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@@ -349,7 +349,7 @@ vm_address_space_init_post_sem(void)
|
|||||||
{
|
{
|
||||||
status_t status = arch_vm_translation_map_init_kernel_map_post_sem(
|
status_t status = arch_vm_translation_map_init_kernel_map_post_sem(
|
||||||
&sKernelAddressSpace->translation_map);
|
&sKernelAddressSpace->translation_map);
|
||||||
if (status < B_OK)
|
if (status != B_OK)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user