Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1986 → Rev 1987

/trunk/kernel/arch/sparc64/src/proc/thread.c
54,7 → 54,7
* Mind the possible alignment of the userspace window buffer
* belonging to a killed thread.
*/
frame_free(ALIGN_DOWN((uintptr_t) t->arch.uspace_window_buffer, PAGE_SIZE));
frame_free(KA2PA(ALIGN_DOWN((uintptr_t) t->arch.uspace_window_buffer, PAGE_SIZE)));
}
}
 
65,7 → 65,7
* The thread needs userspace window buffer and the object
* returned from the slab allocator doesn't have any.
*/
t->arch.uspace_window_buffer = frame_alloc(ONE_FRAME, 0);
t->arch.uspace_window_buffer = frame_alloc(ONE_FRAME, FRAME_KA);
} else {
uintptr_t uw_buf = (uintptr_t) t->arch.uspace_window_buffer;
 
/trunk/kernel/arch/sparc64/src/mm/as.c
62,7 → 62,7
{
#ifdef CONFIG_TSB
int order = fnzb32(((ITSB_ENTRY_COUNT+DTSB_ENTRY_COUNT)*sizeof(tsb_entry_t))>>FRAME_WIDTH);
uintptr_t tsb = (uintptr_t) frame_alloc(order, flags);
uintptr_t tsb = (uintptr_t) frame_alloc(order, flags | FRAME_KA);
 
if (!tsb)
return -1;
78,7 → 78,7
{
#ifdef CONFIG_TSB
count_t cnt = ((ITSB_ENTRY_COUNT+DTSB_ENTRY_COUNT)*sizeof(tsb_entry_t))>>FRAME_WIDTH;
frame_free((uintptr_t) as->arch.itsb);
frame_free(KA2PA((uintptr_t) as->arch.itsb));
return cnt;
#else
return 0;