kern

diff src/main.c @ 40:710739e33da8

- now read_rtc doesn't try to read weekday as it's probably wrong anyway, and doesn't set yearday either - mktime now fixes yearday and weekday - moved init_timer and init_rtc just before enabling the interrupts in main
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 12 Jun 2011 15:45:21 +0300
parents e70b1ab9613e
children 928b0ebfff4d
line diff
     1.1 --- a/src/main.c	Sun Jun 12 01:46:53 2011 +0300
     1.2 +++ b/src/main.c	Sun Jun 12 15:45:21 2011 +0300
     1.3 @@ -55,14 +55,15 @@
     1.4  	init_segm();
     1.5  	init_intr();
     1.6  
     1.7 -	init_rtc();
     1.8 -	init_timer();
     1.9 -
    1.10  	/* initialize the physical memory manager */
    1.11  	init_mem(mbinf);
    1.12  	/* initialize paging and the virtual memory manager */
    1.13  	init_vm();
    1.14  
    1.15 +	/* initialize the timer and RTC */
    1.16 +	init_timer();
    1.17 +	init_rtc();
    1.18 +
    1.19  	/* initialization complete, enable interrupts */
    1.20  	enable_intr();
    1.21