Subversion Repositories shark

Rev

Rev 1356 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1346 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
 *   (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
/*
20
 * Copyright (C) 2000 Paolo Gai
21
 *
22
 * This program is free software; you can redistribute it and/or modify
23
 * it under the terms of the GNU General Public License as published by
24
 * the Free Software Foundation; either version 2 of the License, or
25
 * (at your option) any later version.
26
 *
27
 * This program is distributed in the hope that it will be useful,
28
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
 * GNU General Public License for more details.
31
 *
32
 * You should have received a copy of the GNU General Public License
33
 * along with this program; if not, write to the Free Software
34
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
35
 *
36
 */
37
 
38
#include "kernel/kern.h"
39
#include "modules/edf.h"
40
#include "modules/hardcbs.h"
41
#include "modules/rr.h"
42
#include "modules/dummy.h"
43
#include "modules/intdrive.h"
44
 
45
#include "modules/sem.h"
46
#include "modules/hartport.h"
47
#include "modules/cabs.h"
48
 
49
#include "drivers/shark_linuxc26.h"
50
 
51
#include "drivers/keyb.h"
52
 
53
/*+ sysyem tick in us +*/
54
#define TICK 0
55
 
56
/*+ RR tick in us +*/
57
#define RRTICK 10000
58
 
59
TIME __kernel_register_levels__(void *arg)
60
{
61
  struct multiboot_info *mb = (struct multiboot_info *)arg;
62
 
63
  INTDRIVE_register_level(1000,10000,0);
64
  EDF_register_level(EDF_ENABLE_ALL);
65
  HCBS_register_level(HCBS_ENABLE_ALL,1);
66
  RR_register_level(RRTICK, RR_MAIN_YES, mb);
67
  dummy_register_level();
68
 
69
  SEM_register_module();
70
 
71
  CABS_register_module();
72
 
73
  LINUXC26_register_module();
74
 
75
  return TICK;
76
}
77
 
78
TASK __init__(void *arg)
79
{
80
  struct multiboot_info *mb = (struct multiboot_info *)arg;
81
 
82
  HARTPORT_init();
83
 
84
  __call_main__(mb);
85
 
86
  return (void *)0;
87
}
88