Changes in kernel/arch/sparc64/src/proc/thread.c [8b420fa:6eef3c4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/thread.c
r8b420fa r6eef3c4 39 39 #include <align.h> 40 40 41 slab_cache_t *uwb_cache = NULL;42 43 41 void thr_constructor_arch(thread_t *t) 44 42 { … … 57 55 * belonging to a killed thread. 58 56 */ 59 slab_free(uwb_cache, (uint8_t *) ALIGN_DOWN(uw_buf, 60 UWB_ALIGNMENT)); 57 free((uint8_t *) ALIGN_DOWN(uw_buf, UWB_ALIGNMENT)); 61 58 } 62 59 } … … 70 67 * returned from the slab allocator doesn't have any. 71 68 */ 72 t->arch.uspace_window_buffer = slab_alloc(uwb_cache, 0);69 t->arch.uspace_window_buffer = malloc(UWB_ASIZE, 0); 73 70 } else { 74 71 uintptr_t uw_buf = (uintptr_t) t->arch.uspace_window_buffer; … … 79 76 */ 80 77 t->arch.uspace_window_buffer = (uint8_t *) ALIGN_DOWN(uw_buf, 81 UWB_A LIGNMENT);78 UWB_ASIZE); 82 79 } 83 80 }
Note:
See TracChangeset
for help on using the changeset viewer.