Changeset f97f1e51 in mainline
- Timestamp:
- 2012-06-20T11:45:35Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- abfc9f3
- Parents:
- 22cec678
- Location:
- kernel
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/mm/as_ht.c
r22cec678 rf97f1e51 78 78 hash_table_create(&page_ht, PAGE_HT_ENTRIES, 2, &ht_operations); 79 79 mutex_initialize(&page_ht_lock, MUTEX_PASSIVE); 80 pte_cache = slab_cache_create("pte_ cache", sizeof(pte_t), 0, NULL, NULL,81 SLAB_CACHE_MAGDEFERRED);80 pte_cache = slab_cache_create("pte_t", sizeof(pte_t), 0, 81 NULL, NULL, SLAB_CACHE_MAGDEFERRED); 82 82 } 83 83 -
kernel/generic/src/adt/btree.c
r22cec678 rf97f1e51 71 71 void btree_init(void) 72 72 { 73 btree_node_slab = slab_cache_create("btree_node_ slab",73 btree_node_slab = slab_cache_create("btree_node_t", 74 74 sizeof(btree_node_t), 0, NULL, NULL, SLAB_CACHE_MAGDEFERRED); 75 75 } -
kernel/generic/src/ipc/ipc.c
r22cec678 rf97f1e51 670 670 void ipc_init(void) 671 671 { 672 ipc_call_slab = slab_cache_create(" ipc_call", sizeof(call_t), 0, NULL,672 ipc_call_slab = slab_cache_create("call_t", sizeof(call_t), 0, NULL, 673 673 NULL, 0); 674 ipc_answerbox_slab = slab_cache_create(" ipc_answerbox",674 ipc_answerbox_slab = slab_cache_create("answerbox_t", 675 675 sizeof(answerbox_t), 0, NULL, NULL, 0); 676 676 } -
kernel/generic/src/lib/ra.c
r22cec678 rf97f1e51 424 424 void ra_init(void) 425 425 { 426 ra_segment_cache = slab_cache_create(" segment_cache",426 ra_segment_cache = slab_cache_create("ra_segment_t", 427 427 sizeof(ra_segment_t), 0, NULL, NULL, SLAB_CACHE_MAGDEFERRED); 428 428 } -
kernel/generic/src/mm/as.c
r22cec678 rf97f1e51 130 130 as_arch_init(); 131 131 132 as_slab = slab_cache_create("as_ slab", sizeof(as_t), 0,132 as_slab = slab_cache_create("as_t", sizeof(as_t), 0, 133 133 as_constructor, as_destructor, SLAB_CACHE_MAGDEFERRED); 134 134 -
kernel/generic/src/mm/slab.c
r22cec678 rf97f1e51 891 891 { 892 892 /* Initialize magazine cache */ 893 _slab_cache_create(&mag_cache, "slab_magazine ",893 _slab_cache_create(&mag_cache, "slab_magazine_t", 894 894 sizeof(slab_magazine_t) + SLAB_MAG_SIZE * sizeof(void*), 895 895 sizeof(uintptr_t), NULL, NULL, SLAB_CACHE_NOMAGAZINE | … … 897 897 898 898 /* Initialize slab_cache cache */ 899 _slab_cache_create(&slab_cache_cache, "slab_cache ",899 _slab_cache_create(&slab_cache_cache, "slab_cache_cache", 900 900 sizeof(slab_cache_cache), sizeof(uintptr_t), NULL, NULL, 901 901 SLAB_CACHE_NOMAGAZINE | SLAB_CACHE_SLINSIDE); 902 902 903 903 /* Initialize external slab cache */ 904 slab_extern_cache = slab_cache_create("slab_ extern", sizeof(slab_t), 0,904 slab_extern_cache = slab_cache_create("slab_t", sizeof(slab_t), 0, 905 905 NULL, NULL, SLAB_CACHE_SLINSIDE | SLAB_CACHE_MAGDEFERRED); 906 906 -
kernel/generic/src/proc/task.c
r22cec678 rf97f1e51 90 90 TASK = NULL; 91 91 avltree_create(&tasks_tree); 92 task_slab = slab_cache_create("task_ slab", sizeof(task_t), 0,92 task_slab = slab_cache_create("task_t", sizeof(task_t), 0, 93 93 tsk_constructor, NULL, 0); 94 94 } -
kernel/generic/src/proc/thread.c
r22cec678 rf97f1e51 236 236 237 237 atomic_set(&nrdy, 0); 238 thread_slab = slab_cache_create("thread_ slab", sizeof(thread_t), 0,238 thread_slab = slab_cache_create("thread_t", sizeof(thread_t), 0, 239 239 thr_constructor, thr_destructor, 0); 240 240 241 241 #ifdef CONFIG_FPU 242 fpu_context_slab = slab_cache_create("fpu_ slab", sizeof(fpu_context_t),243 FPU_CONTEXT_ALIGN, NULL, NULL, 0);242 fpu_context_slab = slab_cache_create("fpu_context_t", 243 sizeof(fpu_context_t), FPU_CONTEXT_ALIGN, NULL, NULL, 0); 244 244 #endif 245 245 -
kernel/generic/src/sysinfo/sysinfo.c
r22cec678 rf97f1e51 97 97 void sysinfo_init(void) 98 98 { 99 sysinfo_item_slab = slab_cache_create("sysinfo_item_ slab",99 sysinfo_item_slab = slab_cache_create("sysinfo_item_t", 100 100 sizeof(sysinfo_item_t), 0, sysinfo_item_constructor, 101 101 sysinfo_item_destructor, SLAB_CACHE_MAGDEFERRED); -
kernel/test/mm/slab2.c
r22cec678 rf97f1e51 52 52 void *olddata1 = NULL, *olddata2 = NULL; 53 53 54 cache1 = slab_cache_create(" cache1_tst", ITEM_SIZE, 0, NULL, NULL, 0);55 cache2 = slab_cache_create(" cache2_tst", ITEM_SIZE, 0, NULL, NULL, 0);54 cache1 = slab_cache_create("test_cache1", ITEM_SIZE, 0, NULL, NULL, 0); 55 cache2 = slab_cache_create("test_cache2", ITEM_SIZE, 0, NULL, NULL, 0); 56 56 57 57 TPRINTF("Allocating..."); … … 210 210 thr_cache = slab_cache_create("thread_cache", size, 0, NULL, NULL, 0); 211 211 semaphore_initialize(&thr_sem,0); 212 for (i = 0; i < THREADS; i++) { 212 for (i = 0; i < THREADS; i++) { 213 213 if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest", false))) { 214 214 TPRINTF("Could not create thread %d\n", i);
Note:
See TracChangeset
for help on using the changeset viewer.