Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/proc/thread.c

    r6eef3c4 r8b420fa  
    3939#include <align.h>
    4040
     41slab_cache_t *uwb_cache = NULL;
     42
    4143void thr_constructor_arch(thread_t *t)
    4244{
     
    5557                 * belonging to a killed thread.
    5658                 */
    57                 free((uint8_t *) ALIGN_DOWN(uw_buf, UWB_ALIGNMENT));
     59                slab_free(uwb_cache, (uint8_t *) ALIGN_DOWN(uw_buf,
     60                    UWB_ALIGNMENT));
    5861        }
    5962}
     
    6770                 * returned from the slab allocator doesn't have any.
    6871                 */
    69                 t->arch.uspace_window_buffer = malloc(UWB_ASIZE, 0);
     72                t->arch.uspace_window_buffer = slab_alloc(uwb_cache, 0);
    7073        } else {
    7174                uintptr_t uw_buf = (uintptr_t) t->arch.uspace_window_buffer;
     
    7679                 */
    7780                t->arch.uspace_window_buffer = (uint8_t *) ALIGN_DOWN(uw_buf,
    78                     UWB_ASIZE);
     81                    UWB_ALIGNMENT);
    7982        }
    8083}
Note: See TracChangeset for help on using the changeset viewer.