Subversion Repositories HelenOS-historic

Compare Revisions

Regard whitespace Rev 772 → Rev 773

/kernel/trunk/generic/src/main/main.c
163,7 → 163,6
as_init();
page_init();
tlb_init();
slab_cache_init();
arch_post_mm_init();
 
version_print();
173,6 → 172,9
 
arch_pre_smp_init();
smp_init();
/* Slab must be initialized AFTER we know the number of processors */
slab_cache_init();
 
printf("config.memory_size=%dM\n", config.memory_size/(1024*1024));
printf("config.cpu_count=%d\n", config.cpu_count);
 
/kernel/trunk/generic/src/mm/slab.c
386,6 → 386,8
* Assure that the current magazine is empty, return pointer to it, or NULL if
* no empty magazine is available and cannot be allocated
*
* Assume mag_cache[CPU->id].lock is held
*
* We have 2 magazines bound to processor.
* First try the current.
* If full, try the last.
420,8 → 422,11
newmag->busy = 0;
 
/* Flush last to magazine list */
if (lastmag)
if (lastmag) {
spinlock_lock(&cache->lock);
list_prepend(&lastmag->link, &cache->magazines);
spinlock_unlock(&cache->lock);
}
/* Move current as last, save new as current */
cache->mag_cache[CPU->id].last = cmag;
cache->mag_cache[CPU->id].current = newmag;