From: Ben Pfaff Date: Sat, 23 Aug 2008 03:52:54 +0000 (+0000) Subject: RTC support. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=commitdiff_plain;h=0fd3a243b790dd1cfc9e0a40c57dddde56cf344d;hp=0fd3a243b790dd1cfc9e0a40c57dddde56cf344d RTC support. Adapted from Anthony Romano's patch with the following changes: * Style adjusted to fit rest of Pintos. * Don't modify the RTC registers. It shouldn't be necessary. We shouldn't need any initialization in fact. * Drop rtc_set_time stub. * Do handle time advancing while reading the RTC registers in rtc_get_time, using the strategy from Linux. * Fix leap year handling: adding (year / 4) * 24 * 60 * 60 is wrong for first 2 months of a leap year; the test (year & 4) should be (year % 4). * Simplify month code. * Drop enable_rtc_int, disable_rtc_int, rtc_updating that are not needed. * Update documentation. ---