kern

diff src/timer.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 2c401f69128e
children f65b348780e3
line diff
     1.1 --- a/src/timer.c	Sun Jun 12 01:46:53 2011 +0300
     1.2 +++ b/src/timer.c	Sun Jun 12 15:45:21 2011 +0300
     1.3 @@ -71,9 +71,7 @@
     1.4  	nticks++;
     1.5  
     1.6  	if(nticks % TICK_FREQ_HZ == 0) {
     1.7 -		/*printf("%lu sec\n", nticks / TICK_FREQ_HZ);*/
     1.8  		time_t t = time(0);
     1.9 -
    1.10  		printf("%s", asctime(gmtime(&t)));
    1.11  	}
    1.12  }