=================================================================== RCS file: /cvs/prex-old/sys/kern/main.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- prex-old/sys/kern/main.c 2008/06/03 10:38:46 1.1.1.1 +++ prex-old/sys/kern/main.c 2008/08/13 17:12:32 1.1.1.1.2.1 @@ -48,17 +48,18 @@ /* * Initialization code. - * This is called from kernel_start() routine that - * is implemented in the architecture dependent layer. - * We assumes that the following machine state are - * already set before this routine. + * + * Called from kernel_start() routine that is + * implemented in the architecture dependent layer. + * We assume that the following machine state has + * been already set before this routine. * - Kernel BSS section is filled with 0. * - Kernel stack is configured. * - All interrupts are disabled. - * - Minimum page table is set. (MMU only) + * - Minimum page table is set. (MMU systems only) */ -void -kernel_main(void) +int +main(void) { /* @@ -66,7 +67,7 @@ * initialization. */ diag_init(); - printk(BANNAR); + DPRINTF((BANNER)); sched_lock(); machine_init(); @@ -107,10 +108,8 @@ */ task_bootstrap(); sched_unlock(); - - /* - * Enter idle loop. - */ thread_idle(); + /* NOTREACHED */ + return 0; }