Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/arch
Module Name: src
Committed By: joerg
Date: Fri Oct 26 13:24:46 UTC 2007
Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/amd64/include: cpu.h
src/sys/arch/i386/i386: machdep.c
src/sys/arch/i386/include: cpu.h
src/sys/arch/x86/isa: clock.c
src/sys/arch/x86/x86: lapic.c
src/sys/arch/xen/i386: machdep.c
src/sys/arch/xen/include: cpu.h
src/sys/arch/xen/xen: clock.c
Log Message:
Match delay/DELAY on x86 with delay(9). It takes an unsigned int as
argument. Use this and replace the inline assembly (mul + div using the
64bit intermediate result) with normal 32bit multiplication and
division. The compiler can turn the division into a multiplication and
shift, making it even cheaper then the original assembly. For extreme
long delays, just use 64bit arithmetic.
To generate a diff of this commit:
cvs rdiff -r1.64 -r1.65 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -r1.29 -r1.30 src/sys/arch/amd64/include/cpu.h
cvs rdiff -r1.610 -r1.611 src/sys/arch/i386/i386/machdep.c
cvs rdiff -r1.148 -r1.149 src/sys/arch/i386/include/cpu.h
cvs rdiff -r1.11 -r1.12 src/sys/arch/x86/isa/clock.c
cvs rdiff -r1.24 -r1.25 src/sys/arch/x86/x86/lapic.c
cvs rdiff -r1.44 -r1.45 src/sys/arch/xen/i386/machdep.c
cvs rdiff -r1.22 -r1.23 src/sys/arch/xen/include/cpu.h
cvs rdiff -r1.40 -r1.41 src/sys/arch/xen/xen/clock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index