Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/slab.c

    rab6f2507 r7e752b2  
    612612        cache->name = name;
    613613       
    614         if (align < sizeof(sysarg_t))
    615                 align = sizeof(sysarg_t);
     614        if (align < sizeof(unative_t))
     615                align = sizeof(unative_t);
    616616       
    617617        size = ALIGN_UP(size, align);
     
    806806}
    807807
    808 /** Go through all caches and reclaim what is possible */
     808/** Go through all caches and reclaim what is possible
     809 *
     810 * Interrupts must be disabled before calling this function,
     811 * otherwise  memory allocation from interrupts can deadlock.
     812 *
     813 */
    809814size_t slab_reclaim(unsigned int flags)
    810815{
    811         irq_spinlock_lock(&slab_cache_lock, true);
     816        irq_spinlock_lock(&slab_cache_lock, false);
    812817       
    813818        size_t frames = 0;
     
    819824        }
    820825       
    821         irq_spinlock_unlock(&slab_cache_lock, true);
     826        irq_spinlock_unlock(&slab_cache_lock, false);
    822827       
    823828        return frames;
Note: See TracChangeset for help on using the changeset viewer.