Changes in kernel/arch/sparc64/src/proc/thread.c [6eef3c4:8b420fa] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/thread.c
r6eef3c4 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.