Return to kern_main.c CVS log | Up to [local] / funnyos / kern |
File: [local] / funnyos / kern / kern_main.c (download)
Revision 1.4, Mon Nov 19 10:39:28 2007 UTC (16 years, 10 months ago) by nbrk
call config_machineinit() to initalize all critical devs; do not initialize sysclock while i'm working with sam7s64 |
/* * $Id: kern_main.c,v 1.4 2007/11/19 10:39:28 nbrk Exp $ */ #include <sys/types.h> #include <sys/kern_devconfig.h> #include <sys/mem.h> #include <sys/kern_time.h> #include <libkern/printf.h> extern void config_consinit(void); void main(void) { /* set up critical devices */ config_machineinit(); /* initialize kmalloc */ kmem_init(); /* attach all devices described in arch/${ARCH}/config.c */ devconfig_recurse(); /* initialise system clock; this will start interrupts from timer */ // sysclock_init(); while(1) ; }