Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/arch
ad%NetBSD.org@localhost wrote:
> Module Name: src
> Committed By: ad
> Date: Mon Mar 10 22:03:40 UTC 2008
>
> Modified Files:
> src/sys/arch/amd64/amd64: genassym.cf
> src/sys/arch/amd64/conf: Makefile.amd64 files.amd64
> src/sys/arch/i386/i386: genassym.cf i386func.S
> src/sys/arch/x86/x86: tsc.c
> Added Files:
> src/sys/arch/amd64/amd64: amd64func.S
>
> Log Message:
> Implement an optimized, preemption-safe asm version of tsc_get_timecount().
> The C version needs work to be preemption safe. Cuts the clock cycles
> for microtime() from 950 down to 300 on a Pentium D.
Pasto in genassym.h?
Index: sys/arch/amd64/amd64/genassym.cf
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/amd64/genassym.cf,v
retrieving revision 1.25
diff -u -r1.25 genassym.cf
--- sys/arch/amd64/amd64/genassym.cf 11 Mar 2008 02:24:43 -0000 1.25
+++ sys/arch/amd64/amd64/genassym.cf 23 Mar 2008 04:17:25 -0000
@@ -267,7 +267,7 @@
define CPU_INFO_ISTATE offsetof(struct cpu_info, ci_istate)
define CC_DENOM offsetof(struct cc_microtime_state, cc_denom)
-define CC_DELTA offsetof(struct cc_microtime_state, cc_denom)
+define CC_DELTA offsetof(struct cc_microtime_state, cc_delta)
define CC_VAL offsetof(struct cc_microtime_state, cc_val)
define CC_GEN offsetof(struct cc_microtime_state, cc_gen)
define CC_CC offsetof(struct cc_microtime_state, cc_cc)
Index: sys/arch/i386/i386/genassym.cf
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/genassym.cf,v
retrieving revision 1.63
diff -u -r1.63 genassym.cf
--- sys/arch/i386/i386/genassym.cf 11 Mar 2008 02:24:43 -0000 1.63
+++ sys/arch/i386/i386/genassym.cf 23 Mar 2008 04:17:25 -0000
@@ -346,7 +346,7 @@
define CPU_INFO_ISTATE offsetof(struct cpu_info, ci_istate)
define CC_DENOM offsetof(struct cc_microtime_state, cc_denom)
-define CC_DELTA offsetof(struct cc_microtime_state, cc_denom)
+define CC_DELTA offsetof(struct cc_microtime_state, cc_delta)
define CC_VAL offsetof(struct cc_microtime_state, cc_val)
define CC_GEN offsetof(struct cc_microtime_state, cc_gen)
define CC_CC offsetof(struct cc_microtime_state, cc_cc)
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index