Re: System time and ToD clock?
"John D. Baker" <[email protected]> Thu, 21 Jun 2012 23:50:11 -0500 (CDT)
| Newsgroups | gmane.os.netbsd.ports.evbmips |
|---|---|
| Message-ID | <[email protected]> |
Having gotten around to UTSL, I see that evbmips/isa/mcclock_isa.c asserts that PMON uses a base+offset strategy for handing year values, with an epoch year of 1920. That would explain the "1992" assertion of gNewSense. Maybe this was true of older versions of PMON or the implementation on other boards, but that used in in the Lemote systems (PMON2000, IIUC) seems to use a different epoch (as seen in OpenBSD/loongson files). Perhaps the setting of "sc->sc_year0" can be made conditional on the machine type (either at compile time or runtime)? -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645