This should fix PPC build after recent changes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15610 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-12-20 13:31:38 +00:00
parent 96e01a27bf
commit 4318316c65
2 changed files with 3 additions and 3 deletions

View File

@ -93,11 +93,11 @@ arch_thread_context_switch(struct thread *t_from, struct thread *t_to)
asm("mtear %0" :: "g"(t_to->kernel_stack_base + KERNEL_STACK_SIZE - 8));
// switch the asids if we need to
if (t_to->team->aspace != NULL) {
if (t_to->team->address_space != NULL) {
// the target thread has is user space
if (t_from->team != t_to->team) {
// switching to a new address space
ppc_translation_map_change_asid(&t_to->team->aspace->translation_map);
ppc_translation_map_change_asid(&t_to->team->address_space->translation_map);
}
}

View File

@ -491,7 +491,7 @@ arch_vm_translation_map_init_post_area(kernel_args *args)
// create a region to cover the iospace
void *temp = (void *)IOSPACE_BASE;
vm_create_null_area(vm_get_kernel_aspace_id(), "iospace", &temp,
vm_create_null_area(vm_kernel_address_space_id(), "iospace", &temp,
B_EXACT_ADDRESS, IOSPACE_SIZE);
return 0;