Subversion Repositories shark

Rev

Rev 1331 | Rev 1359 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1331 giacomo 1
/*
2
 * Project: HARTIK (HA-rd R-eal TI-me K-ernel)
3
 *
4
 * Coordinators: Giorgio Buttazzo <giorgio@sssup.it>
5
 *               Gerardo Lamastra <gerardo@sssup.it>
6
 *
7
 * Authors     : Paolo Gai <pj@hartik.sssup.it>
8
 * (see authors.txt for full list of hartik's authors)
9
 *
10
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
11
 *
12
 * http://www.sssup.it
13
 * http://retis.sssup.it
14
 * http://hartik.sssup.it
15
 */
16
 
17
/*
18
 * Copyright (C) 2000 Paolo Gai
19
 *
20
 * This program is free software; you can redistribute it and/or modify
21
 * it under the terms of the GNU General Public License as published by
22
 * the Free Software Foundation; either version 2 of the License, or
23
 * (at your option) any later version.
24
 *
25
 * This program is distributed in the hope that it will be useful,
26
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
 * GNU General Public License for more details.
29
 *
30
 * You should have received a copy of the GNU General Public License
31
 * along with this program; if not, write to the Free Software
32
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
33
 *
34
 */
35
 
36
#include "chimera.h"
37
#include "modules/edf.h"
1332 giacomo 38
#include "modules/hardcbs.h"
1331 giacomo 39
#include "modules/rr.h"
40
#include "modules/dummy.h"
41
 
42
/*+ sysyem tick in us +*/
43
#define TICK 1000
44
 
45
/*+ RR tick in us +*/
1332 giacomo 46
#define RRTICK 10000
1331 giacomo 47
 
48
 
49
int main(int argc, char **argv);
50
 
51
TIME __kernel_register_levels__(void *arg)
52
{
53
        struct multiboot_info *mb = (struct multiboot_info *)arg;
54
 
55
        EDF_register_level(EDF_ENABLE_ALL);
1332 giacomo 56
        HCBS_register_level(HCBS_ENABLE_ALL, 0);
1331 giacomo 57
        RR_register_level(RRTICK, RR_MAIN_YES, mb);
58
        dummy_register_level();
59
 
60
        SEM_register_module();
61
 
62
        return TICK;
63
}
64
 
65
TASK __init__(void *arg)
66
{
67
        struct multiboot_info *mb = (struct multiboot_info *)arg;
68
 
69
        KEYB_PARMS kparms = BASE_KEYB;
70
 
71
        HARTPORT_init();
72
 
73
        KEYB_init(&kparms);
74
 
75
        __call_main__(mb);
76
 
77
        return (void *)0;
78
}