Changeset 8b420fa in mainline for kernel/arch/sparc64/src/proc/thread.c
- Timestamp:
- 2016-06-08T21:41:43Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 741b2fb1
- Parents:
- 7510326
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/thread.c
r7510326 r8b420fa 39 39 #include <align.h> 40 40 41 slab_cache_t *uwb_cache = NULL; 42 41 43 void thr_constructor_arch(thread_t *t) 42 44 { … … 55 57 * belonging to a killed thread. 56 58 */ 57 free((uint8_t *) ALIGN_DOWN(uw_buf, UWB_ALIGNMENT)); 59 slab_free(uwb_cache, (uint8_t *) ALIGN_DOWN(uw_buf, 60 UWB_ALIGNMENT)); 58 61 } 59 62 } … … 67 70 * returned from the slab allocator doesn't have any. 68 71 */ 69 t->arch.uspace_window_buffer = malloc(UWB_ASIZE, 0);72 t->arch.uspace_window_buffer = slab_alloc(uwb_cache, 0); 70 73 } else { 71 74 uintptr_t uw_buf = (uintptr_t) t->arch.uspace_window_buffer; … … 76 79 */ 77 80 t->arch.uspace_window_buffer = (uint8_t *) ALIGN_DOWN(uw_buf, 78 UWB_A SIZE);81 UWB_ALIGNMENT); 79 82 } 80 83 }
Note:
See TracChangeset
for help on using the changeset viewer.