Subversion Repositories shark

Rev

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

Rev Author Line No. Line
1295 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     :
1353 giacomo 9
 *   Giacomo Guidi       <giacomo@gandalf.sssup.it>
1569 tullio 10
 *   Tullio Facchinetti  <tullio.facchinetti@unipv.it>
1295 giacomo 11
 *   (see the web pages for full authors list)
12
 *
13
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
14
 *
15
 * http://www.sssup.it
16
 * http://retis.sssup.it
17
 * http://shark.sssup.it
18
 */
19
 
1606 tullio 20
/*
21
 * This program is free software; you can redistribute it and/or modify
22
 * it under the terms of the GNU General Public License as published by
23
 * the Free Software Foundation; either version 2 of the License, or
24
 * (at your option) any later version.
25
 *
26
 * This program is distributed in the hope that it will be useful,
27
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29
 * GNU General Public License for more details.
30
 *
31
 * You should have received a copy of the GNU General Public License
32
 * along with this program; if not, write to the Free Software
33
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34
 *
35
 */
36
 
1295 giacomo 37
#include "kernel/kern.h"
1552 pj 38
#include "edf/edf/edf.h"
39
#include "cbs/cbs/cbs.h"
40
#include "rr/rr/rr.h"
41
#include "dummy/dummy/dummy.h"
1295 giacomo 42
 
1552 pj 43
#include "sem/sem/sem.h"
44
#include "hartport/hartport/hartport.h"
45
#include "cabs/cabs/cabs.h"
1295 giacomo 46
 
47
/*+ sysyem tick in us +*/
48
#define TICK 0
49
 
50
/*+ RR tick in us +*/
51
#define RRTICK 10000
52
 
53
TIME __kernel_register_levels__(void *arg)
54
{
55
  struct multiboot_info *mb = (struct multiboot_info *)arg;
1569 tullio 56
  LEVEL EDF_level;
1295 giacomo 57
 
1569 tullio 58
  EDF_level = EDF_register_level(EDF_ENABLE_ALL);
59
  CBS_register_level(CBS_ENABLE_ALL, EDF_level);
1295 giacomo 60
  RR_register_level(RRTICK, RR_MAIN_YES, mb);
61
  dummy_register_level();
62
 
63
  SEM_register_module();
64
 
65
  CABS_register_module();
66
 
67
  return TICK;
68
}
69
 
70
TASK __init__(void *arg)
71
{
72
  struct multiboot_info *mb = (struct multiboot_info *)arg;
73
 
74
  HARTPORT_init();
75
 
76
  __call_main__(mb);
77
 
78
  return (void *)0;
79
}
80