6,7 → 6,7 |
* Paolo Gai <pj@gandalf.sssup.it> |
* |
* Authors : |
* Giacomo Guidi <giacomo@gandalf.sssup.it> |
* Giacomo Guidi <giacomo@gandalf.sssup.it> |
* (see the web pages for full authors list) |
* |
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
38,46 → 38,52 |
#include "kernel/kern.h" |
#include "modules/edf.h" |
#include "modules/cbs.h" |
#include "modules/rr.h" |
#include "modules/posix.h" |
#include "pthread.h" |
#include "drivers/keyb.h" |
#include "modules/sem.h" |
#include "modules/dummy.h" |
|
#include "modules/sem.h" |
#include "modules/hartport.h" |
#include "modules/cabs.h" |
|
#include "drivers/keyb.h" |
#include "fsf_contract.h" |
#include "fsf_server.h" |
|
#include "modules/pi.h" |
#include "modules/pc.h" |
|
#include "dosread.h" |
|
/*+ sysyem tick in us +*/ |
#define TICK 0 |
|
/*+ RR tick in us +*/ |
#define RRTICK 10000 |
|
void *start_file = NULL; |
void *end_file = NULL; |
void *start_file; |
void *end_file; |
|
TIME __kernel_register_levels__(void *arg) |
{ |
struct multiboot_info *mb = (struct multiboot_info *)arg; |
int grubstar_level; |
|
EDF_register_level(EDF_ENABLE_ALL); |
CBS_register_level(CBS_ENABLE_ALL, 0); |
RR_register_level(RRTICK, RR_MAIN_YES, mb); |
POSIX_register_level(RRTICK, 1, mb, 32); |
grubstar_level = GRUBSTAR_register_level(FSF_MAX_N_SERVERS, 0); |
FSF_register_module(grubstar_level); |
dummy_register_level(); |
|
CBS_register_level(CBS_ENABLE_ALL,0); |
|
SEM_register_module(); |
|
CABS_register_module(); |
PI_register_module(); |
PC_register_module(); |
|
PTHREAD_register_module(1, 0, 1); |
|
dos_preload("loadfile.txt",100000,&start_file,&end_file); |
|
cprintf("Start file ptr = %08lx\n",(long)(start_file)); |
cprintf("End file ptr = %08lx\n",(long)(end_file)); |
cprintf("Size = %8ld\n",(long)(end_file - start_file)); |
return TICK; |
|
return TICK; |
} |
|
TASK __init__(void *arg) |
90,4 → 96,3 |
|
return (void *)0; |
} |
|