Subversion Repositories shark

Rev

Rev 1295 | Rev 1411 | 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>
1295 giacomo 10
 *   (see the web pages for full authors list)
11
 *
12
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
13
 *
14
 * http://www.sssup.it
15
 * http://retis.sssup.it
16
 * http://shark.sssup.it
17
 */
18
 
19
#include "kernel/kern.h"
20
#include "modules/edf.h"
21
#include "modules/cbs.h"
22
#include "modules/rr.h"
23
#include "modules/dummy.h"
24
 
25
#include "modules/sem.h"
26
#include "modules/hartport.h"
27
#include "modules/cabs.h"
28
 
29
#include "drivers/keyb.h"
30
 
31
/*+ sysyem tick in us +*/
32
#define TICK 0
33
 
34
/*+ RR tick in us +*/
35
#define RRTICK 10000
36
 
37
TIME __kernel_register_levels__(void *arg)
38
{
39
  struct multiboot_info *mb = (struct multiboot_info *)arg;
40
 
41
  EDF_register_level(EDF_ENABLE_ALL);
42
  CBS_register_level(CBS_ENABLE_ALL, 0);
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
  KEYB_init(NULL);
60
 
61
  __call_main__(mb);
62
 
63
  return (void *)0;
64
}
65