Subversion Repositories shark

Rev

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

Rev Author Line No. Line
459 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
 *
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
/* Linux 2.6 Emulation Library */
20
 
21
#include <kernel/kern.h>
22
 
23
extern int devices_init(void);
24
extern int buses_init(void);
462 giacomo 25
extern int classes_init(void);
468 giacomo 26
extern int linuxcomp_init(void);
459 giacomo 27
 
464 giacomo 28
unsigned long read_time(void) {
29
 
30
   return kern_gettime(NULL);
31
 
32
}
33
 
34
void do_rescheduler(void) {
35
 
36
  event_need_reschedule();
37
 
38
}
39
 
459 giacomo 40
/* Init the Emulation Library */
41
int LINUXC26_register_module() {
42
 
43
  printk("LINUXC26_register_module\n");
44
 
468 giacomo 45
  linuxcomp_init();
459 giacomo 46
  devices_init();
47
  buses_init();
462 giacomo 48
  classes_init();
459 giacomo 49
 
50
  return 0;
51
 
52
}