Changeset 91d6d28 in mainline
- Timestamp:
- 2006-11-20T19:19:54Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5926ad9
- Parents:
- aa802679
- Location:
- kernel/arch/sparc64/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/as.c
raa802679 r91d6d28 63 63 #ifdef CONFIG_TSB 64 64 int order = fnzb32(((ITSB_ENTRY_COUNT+DTSB_ENTRY_COUNT)*sizeof(tsb_entry_t))>>FRAME_WIDTH); 65 uintptr_t tsb = (uintptr_t) frame_alloc(order, flags );65 uintptr_t tsb = (uintptr_t) frame_alloc(order, flags | FRAME_KA); 66 66 67 67 if (!tsb) … … 79 79 #ifdef CONFIG_TSB 80 80 count_t cnt = ((ITSB_ENTRY_COUNT+DTSB_ENTRY_COUNT)*sizeof(tsb_entry_t))>>FRAME_WIDTH; 81 frame_free( (uintptr_t) as->arch.itsb);81 frame_free(KA2PA((uintptr_t) as->arch.itsb)); 82 82 return cnt; 83 83 #else -
kernel/arch/sparc64/src/proc/thread.c
raa802679 r91d6d28 55 55 * belonging to a killed thread. 56 56 */ 57 frame_free( ALIGN_DOWN((uintptr_t) t->arch.uspace_window_buffer, PAGE_SIZE));57 frame_free(KA2PA(ALIGN_DOWN((uintptr_t) t->arch.uspace_window_buffer, PAGE_SIZE))); 58 58 } 59 59 } … … 66 66 * returned from the slab allocator doesn't have any. 67 67 */ 68 t->arch.uspace_window_buffer = frame_alloc(ONE_FRAME, 0);68 t->arch.uspace_window_buffer = frame_alloc(ONE_FRAME, FRAME_KA); 69 69 } else { 70 70 uintptr_t uw_buf = (uintptr_t) t->arch.uspace_window_buffer;
Note:
See TracChangeset
for help on using the changeset viewer.