Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Klaus Klein <kleink@netbsd.org>
List: source-changes
Date: 03/11/2006 15:40:07
Module Name: src
Committed By: kleink
Date: Sat Mar 11 15:40:07 UTC 2006
Modified Files:
src/sys/arch/amd64/isa: clock.c
src/sys/arch/i386/isa: clock.c
src/sys/dev: clock_subr.h
src/sys/lib/libkern: Makefile libkern.h
Added Files:
src/sys/lib/libkern: bcd.c
Log Message:
Provide BCD<->binary conversion in libkern and turn <dev/clock_subr.h>'s
FROMBCD()/TOBCD() macros into wrappers around it, resulting in both
smaller code footprint and elimination of possible issues due to
multiple evaluation of macro arguments.
Suggested by Simon Burge and Anders Gavare on tech-kern.
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/sys/arch/amd64/isa/clock.c
cvs rdiff -r1.90 -r1.91 src/sys/arch/i386/isa/clock.c
cvs rdiff -r1.13 -r1.14 src/sys/dev/clock_subr.h
cvs rdiff -r1.77 -r1.78 src/sys/lib/libkern/Makefile
cvs rdiff -r0 -r1.1 src/sys/lib/libkern/bcd.c
cvs rdiff -r1.57 -r1.58 src/sys/lib/libkern/libkern.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.