cvs commit: src/sys/dev/mc146818 mc146818.c mc146818var.h src/sys/sparc64/sparc64 rtc.c

Marius Strobl marius at FreeBSD.org
Thu May 19 21:20:43 GMT 2005


marius      2005-05-19 21:20:42 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/mc146818     mc146818.c mc146818var.h 
    sys/sparc64/sparc64  rtc.c 
  Log:
  o mc146818(4):
    - Add locking.
    - Account for if the MC146818_NO_CENT_ADJUST flag is set we don't need
      to check wheter year < POSIX_BASE_YEAR.
    - Add some comments about mapping the day of week from the range the
      generic clock code uses to the range the chip uses and which I meant
      to add in the initial version.
    - Minor clean-up, use __func__ instead of hardcoded function names in
      error strings.
  
  o in the rtc(4) front-end additionally:
    - Don't leak resources in case mc146818_attach() fails.
    - Account for ebus(4) defaulting to SYS_RES_MEMORY for the memory
      resources since ebus.c rev. 1.22.
  
  Revision  Changes    Path
  1.3       +29 -17    src/sys/dev/mc146818/mc146818.c
  1.3       +2 -0      src/sys/dev/mc146818/mc146818var.h
  1.3       +22 -11    src/sys/sparc64/sparc64/rtc.c


More information about the cvs-src mailing list