Rev 1629 | Rev 1641 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1627 | giacomo | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Giacomo Guidi <giacomo@gandalf.sssup.it> |
||
10 | * |
||
11 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
12 | * |
||
13 | * http://www.sssup.it |
||
14 | * http://retis.sssup.it |
||
15 | * http://shark.sssup.it |
||
16 | */ |
||
17 | |||
18 | /* |
||
19 | * This program is free software; you can redistribute it and/or modify |
||
20 | * it under the terms of the GNU General Public License as published by |
||
21 | * the Free Software Foundation; either version 2 of the License, or |
||
22 | * (at your option) any later version. |
||
23 | * |
||
24 | * This program is distributed in the hope that it will be useful, |
||
25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
27 | * GNU General Public License for more details. |
||
28 | * |
||
29 | * You should have received a copy of the GNU General Public License |
||
30 | * along with this program; if not, write to the Free Software |
||
31 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
32 | * |
||
33 | */ |
||
34 | |||
35 | #include "kernel/kern.h" |
||
36 | |||
37 | #include "modules/edf.h" |
||
38 | #include "modules/elastic.h" |
||
39 | #include "modules/rr.h" |
||
40 | #include "modules/dummy.h" |
||
41 | |||
42 | /*+ sysyem tick in us +*/ |
||
43 | #define TICK 0 |
||
44 | |||
45 | /*+ RR tick in us +*/ |
||
46 | #define RRTICK 10000 |
||
47 | |||
48 | TIME __kernel_register_levels__(void *arg) |
||
49 | { |
||
50 | struct multiboot_info *mb = (struct multiboot_info *)arg; |
||
51 | |||
52 | EDF_register_level(EDF_ENABLE_ALL); |
||
1630 | anton | 53 | ELASTIC_register_level(ELASTIC_ENABLE_ALL, 0, MAX_BANDWIDTH); |
1627 | giacomo | 54 | RR_register_level(RRTICK, RR_MAIN_YES, mb); |
55 | dummy_register_level(); |
||
56 | |||
57 | return TICK; |
||
58 | |||
59 | } |
||
60 | |||
61 | TASK __init__(void *arg) |
||
62 | { |
||
63 | struct multiboot_info *mb = (struct multiboot_info *)arg; |
||
64 | |||
65 | __call_main__(mb); |
||
66 | |||
67 | return (void *)0; |
||
68 | } |
||
69 |