Rev 1007 | 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); |
1007 | mauro | 27 | extern int shark_interrupt_server(int use_intdrv); |
459 | giacomo | 28 | |
464 | giacomo | 29 | unsigned long read_time(void) { |
30 | |||
31 | return kern_gettime(NULL); |
||
32 | |||
33 | } |
||
34 | |||
35 | void do_rescheduler(void) { |
||
36 | |||
37 | event_need_reschedule(); |
||
38 | |||
39 | } |
||
40 | |||
459 | giacomo | 41 | /* Init the Emulation Library */ |
1007 | mauro | 42 | int LINUXC26_register_module(int use_intdrive) { |
459 | giacomo | 43 | |
513 | giacomo | 44 | int res; |
45 | |||
459 | giacomo | 46 | printk("LINUXC26_register_module\n"); |
47 | |||
468 | giacomo | 48 | linuxcomp_init(); |
459 | giacomo | 49 | devices_init(); |
50 | buses_init(); |
||
462 | giacomo | 51 | classes_init(); |
459 | giacomo | 52 | |
1007 | mauro | 53 | res = shark_interrupt_server(use_intdrive); |
513 | giacomo | 54 | if (res != 0) { |
55 | printk("ERROR: CANNOT REGISTER LINUX COMPATIBILITY LAYER\n"); |
||
1007 | mauro | 56 | exit(1); |
513 | giacomo | 57 | } |
58 | |||
459 | giacomo | 59 | return 0; |
60 | |||
61 | } |