Subversion Repositories shark

Rev

Rev 1552 | 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
 
20
#include "kernel/kern.h"
1552 pj 21
#include "edf/edf/edf.h"
22
#include "cbs/cbs/cbs.h"
23
#include "rr/rr/rr.h"
24
#include "dummy/dummy/dummy.h"
1295 giacomo 25
 
1552 pj 26
#include "sem/sem/sem.h"
27
#include "hartport/hartport/hartport.h"
28
#include "cabs/cabs/cabs.h"
1295 giacomo 29
 
30
/*+ sysyem tick in us +*/
31
#define TICK 0
32
 
33
/*+ RR tick in us +*/
34
#define RRTICK 10000
35
 
36
TIME __kernel_register_levels__(void *arg)
37
{
38
  struct multiboot_info *mb = (struct multiboot_info *)arg;
1569 tullio 39
  LEVEL EDF_level;
1295 giacomo 40
 
1569 tullio 41
  EDF_level = EDF_register_level(EDF_ENABLE_ALL);
42
  CBS_register_level(CBS_ENABLE_ALL, EDF_level);
1295 giacomo 43
  RR_register_level(RRTICK, RR_MAIN_YES, mb);
44
  dummy_register_level();
45
 
46
  SEM_register_module();
47
 
48
  CABS_register_module();
49
 
50
  return TICK;
51
}
52
 
53
TASK __init__(void *arg)
54
{
55
  struct multiboot_info *mb = (struct multiboot_info *)arg;
56
 
57
  HARTPORT_init();
58
 
59
  __call_main__(mb);
60
 
61
  return (void *)0;
62
}
63