Subversion Repositories shark

Rev

Rev 462 | Rev 468 | 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);
459 giacomo 26
 
464 giacomo 27
unsigned long read_time(void) {
28
 
29
   return kern_gettime(NULL);
30
 
31
}
32
 
33
void do_rescheduler(void) {
34
 
35
  event_need_reschedule();
36
 
37
}
38
 
459 giacomo 39
/* Init the Emulation Library */
40
int LINUXC26_register_module() {
41
 
42
  printk("LINUXC26_register_module\n");
43
 
44
  devices_init();
45
  buses_init();
462 giacomo 46
  classes_init();
459 giacomo 47
 
48
  return 0;
49
 
50
}