Ignore:
File:
1 edited

Legend:

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

    r8b420fa r6eef3c4  
    3939#include <align.h>
    4040
    41 slab_cache_t *uwb_cache = NULL;
    42 
    4341void thr_constructor_arch(thread_t *t)
    4442{
     
    5755                 * belonging to a killed thread.
    5856                 */
    59                 slab_free(uwb_cache, (uint8_t *) ALIGN_DOWN(uw_buf,
    60                     UWB_ALIGNMENT));
     57                free((uint8_t *) ALIGN_DOWN(uw_buf, UWB_ALIGNMENT));
    6158        }
    6259}
     
    7067                 * returned from the slab allocator doesn't have any.
    7168                 */
    72                 t->arch.uspace_window_buffer = slab_alloc(uwb_cache, 0);
     69                t->arch.uspace_window_buffer = malloc(UWB_ASIZE, 0);
    7370        } else {
    7471                uintptr_t uw_buf = (uintptr_t) t->arch.uspace_window_buffer;
     
    7976                 */
    8077                t->arch.uspace_window_buffer = (uint8_t *) ALIGN_DOWN(uw_buf,
    81                     UWB_ALIGNMENT);
     78                    UWB_ASIZE);
    8279        }
    8380}
Note: See TracChangeset for help on using the changeset viewer.