Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3104 → Rev 3103

/trunk/kernel/generic/src/mm/slab.c
559,7 → 559,8
 
cache->mag_cache = malloc(sizeof(slab_mag_cache_t) * config.cpu_count,0);
for (i = 0; i < config.cpu_count; i++) {
memsetb(&cache->mag_cache[i], sizeof(cache->mag_cache[i]), 0);
memsetb((uintptr_t)&cache->mag_cache[i],
sizeof(cache->mag_cache[i]), 0);
spinlock_initialize(&cache->mag_cache[i].lock, "slab_maglock_cpu");
}
}
577,7 → 578,7
int pages;
ipl_t ipl;
 
memsetb(cache, sizeof(*cache), 0);
memsetb((uintptr_t)cache, sizeof(*cache), 0);
cache->name = name;
 
if (align < sizeof(unative_t))