* Merged vm_virtual_map with vm_address_space - there was no reason to have
them apart (this even saves a pointer from vm_virtual_map to its address space) * aspace -> address_space * vm_create_address_space() did not check if creating the semaphore succeeded * Removed team::kaspace - was not really needed (introduced a new vm_kernel_address_space() function that doesn't grab a reference to the address space) * Removed vm_address_space::name - it was just a copy of the team name, anyway, and there is always only one address space per team * Removed aspace_id - the address space is now using the team_id * Some cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15609 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -918,7 +918,7 @@ thread_exit(void)
|
||||
cancel_timer(&thread->alarm);
|
||||
|
||||
// delete the user stack area first, we won't need it anymore
|
||||
if (team->aspace != NULL && thread->user_stack_area >= 0) {
|
||||
if (team->address_space != NULL && thread->user_stack_area >= 0) {
|
||||
area_id area = thread->user_stack_area;
|
||||
thread->user_stack_area = -1;
|
||||
delete_area_etc(team, area);
|
||||
@@ -977,7 +977,7 @@ thread_exit(void)
|
||||
}
|
||||
RELEASE_TEAM_LOCK();
|
||||
// swap address spaces, to make sure we're running on the kernel's pgdir
|
||||
vm_aspace_swap(team_get_kernel_team()->kaspace);
|
||||
vm_swap_address_space(vm_kernel_address_space());
|
||||
restore_interrupts(state);
|
||||
|
||||
TRACE(("thread_exit: thread 0x%lx now a kernel thread!\n", thread->id));
|
||||
|
||||
Reference in New Issue
Block a user