=================================================================== RCS file: /cvs/funnyos/kern/kern_main.c,v retrieving revision 1.1.1.1 retrieving revision 1.7 diff -u -r1.1.1.1 -r1.7 --- funnyos/kern/kern_main.c 2007/10/16 09:41:04 1.1.1.1 +++ funnyos/kern/kern_main.c 2007/12/16 23:27:54 1.7 @@ -1,9 +1,11 @@ /* - * $Id: kern_main.c,v 1.1.1.1 2007/10/16 08:41:04 init Exp $ + * $Id: kern_main.c,v 1.7 2007/12/16 23:27:54 nbrk Exp $ */ #include #include #include +#include +#include #include @@ -13,14 +15,24 @@ void main(void) { - /* set up boot console */ - config_consinit(); + /* set up critical devices */ + config_machineinit(); + printf("Welcome to FunnyOS!\n"); + /* initialize kmalloc */ kmem_init(); /* attach all devices described in arch/${ARCH}/config.c */ devconfig_recurse(); + +#ifndef ARCH_SAM7S64 + /* initialize scheduler before enabling system ticks */ + sched_init(); + + /* initialize system clock; this will start interrupts from timer */ + sysclock_init(); +#endif while(1) ;