Rev 928 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
928 | serge | 1 | |
2 | #include |
||
3 | #include |
||
4 | #include |
||
5 | #include |
||
6 | #include |
||
7 | |||
8 | |||
9 | |||
10 | |||
11 | |||
12 | |||
13 | |||
14 | |||
15 | { |
||
16 | DBG("%s\n", __FUNCTION__); |
||
1066 | serge | 17 | |
18 | |||
928 | serge | 19 | NULL,NULL,SLAB_CACHE_MAGDEFERRED); |
20 | }; |
||
21 | |||
22 | |||
23 | |||
24 | { |
||
25 | static count_t thr_cnt = 0; |
||
26 | static count_t slot = 1; |
||
27 | |||
28 | |||
29 | addr_t thr_stack; |
||
30 | |||
31 | |||
1066 | serge | 32 | |
33 | |||
928 | serge | 34 | thr_stack = PA2KA(frame_alloc(2)); |
1066 | serge | 35 | |
928 | serge | 36 | |
37 | |||
38 | |||
39 | thr->tid = (thr_cnt<<8)|slot; |
||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | thr->esi = 0; |
||
51 | thr->ebp = 0; |
||
52 | thr->edx = 0; |
||
53 | thr->ecx = 0; |
||
54 | |||
55 | |||
56 | thr->eflags = EFL_IOPL1; |
||
57 | thr->esp = thr_stack + 8192; |
||
58 | thr->ss = sel_srv_stack; |
||
59 | |||
60 | |||
61 | |||
62 | |||
63 | thr->quantum_size = 8; |
||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | };8)|slot; |
||
71 | |||
72 |