Rev 928 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 928 | Rev 1066 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | extern addr_t sys_pdbr; |
12 | extern addr_t sys_pdbr; |
Line 13... | Line 13... | ||
13 | 13 | ||
14 | void init_threads() |
14 | void init_threads() |
- | 15 | { |
|
- | 16 | DBG("%s\n", __FUNCTION__); |
|
15 | { |
17 | |
16 | thr_slab = slab_cache_create(sizeof(thr_t), 16, |
18 | thr_slab = slab_cache_create(sizeof(thr_t), 16, |
17 | NULL,NULL,SLAB_CACHE_MAGDEFERRED); |
19 | NULL,NULL,SLAB_CACHE_MAGDEFERRED); |
Line 25... | Line 27... | ||
25 | 27 | ||
Line 26... | Line 28... | ||
26 | thr_t *thr; |
28 | thr_t *thr; |
27 | addr_t thr_stack; |
29 | addr_t thr_stack; |
Line -... | Line 30... | ||
- | 30 | ||
- | 31 | DBG("%s\n", __FUNCTION__); |
|
28 | 32 | ||
29 | thr = (thr_t*)slab_alloc(thr_slab,0); |
33 | thr = (thr_t*)slab_alloc(thr_slab,0); |
Line 30... | Line 34... | ||
30 | thr_stack = PA2KA(core_alloc(1)); |
34 | thr_stack = PA2KA(frame_alloc(2)); |
Line 31... | Line 35... | ||
31 | 35 | ||
32 | thr_cnt++; |
36 | thr_cnt++; |