From: M. R. B. <mrb...@0x...> - 2001-04-23 14:04:23
|
* SUGIOKA Toshinobu <su...@it...> on Mon, Apr 23, 2001: > At 15:28 01/04/23 +0900, NIIBE Yutaka wrote: > >I know that this is the way of handling SH's RTC in the manual, but we > >could implement rtc_is_updating, such as checking R64CNT is near 0 or > >not (with some safety). Errr... well, the implementation depends on > >architecture, SH-3 or SH-4. > > OK, I removed the change of drivers/char/rtc.c , > and added RTC_UIP (RTC updating) bit emulation > as your suggestion. > > I tested RTC_RD_TIME ioctl function several hundred million times, > and found no errors. It seems that RTC_UIP bit works fine on SH7709A. > There is a problem from my standpoint - this has no hope of working on the Dreamcast, which is a SH7750 (mostly) *without* a working RTC. This was the reason Philip Rumpf and NIIBE added the mv_rtc_{get,set}timeofday functions to the machvec. Actually from the LinuxDC side, I have implemented the DC RTC routines (there on the sound chip) and there in the merge that I can hopefully finish and commit this afternoon. What I'm saying is it'd be infinitely cooler to implement this using the machvec routines, where you would never have a problem with compatibility. I had actually starting thinking a bit about this, if you give me a day or so I can try to get a patch for review. M. R. |