BUG 1296: E32test t_cputime.exe failed while testing Fast Counter
authorbugtracker-ml@nttdocomo.com
Tue, 06 Apr 2010 16:31:41 +0100
changeset 55 2c1e559d48bf
parent 15 cc51249fbd9c
child 56 f24810eebc6b
BUG 1296: E32test t_cputime.exe failed while testing Fast Counter
baseport/syborg/hal/values.hda
baseport/syborg/specific/assp.cpp
baseport/syborg/specific/highrestimer.h
baseport/syborg/specific/syborg.h
--- a/baseport/syborg/hal/values.hda	Fri Nov 13 15:54:25 2009 +0000
+++ b/baseport/syborg/hal/values.hda	Tue Apr 06 16:31:41 2010 +0100
@@ -34,7 +34,7 @@
 EClipboardDrive=2
 ESystemDrive=0xffff
 EDisplayNumberOfScreens=1
-ENanoTickPeriod=1000
+ENanoTickPeriod=10000
 EFastCounterFrequency=1000000
 EFastCounterCountsUp=1
 
--- a/baseport/syborg/specific/assp.cpp	Fri Nov 13 15:54:25 2009 +0000
+++ b/baseport/syborg/specific/assp.cpp	Tue Apr 06 16:31:41 2010 +0100
@@ -10,6 +10,7 @@
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
+* NTT Docomo, Inc : BUG 1296
 *
 * Description: implementation of class Syborg
 *
@@ -263,7 +264,7 @@
 
 EXPORT_C TInt Syborg::MsTickPeriod()
 {
-	return 1000;
+	return KMsTickPeriod;
 }
 
 EXPORT_C TInt Syborg::SystemTimeInSecondsFrom2000(TInt& aTime)
--- a/baseport/syborg/specific/highrestimer.h	Fri Nov 13 15:54:25 2009 +0000
+++ b/baseport/syborg/specific/highrestimer.h	Tue Apr 06 16:31:41 2010 +0100
@@ -10,6 +10,7 @@
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
+* NTT Docomo, Inc : BUG 1296
 *
 * Description:
 *
@@ -50,7 +51,7 @@
 // Hi-jacking r10 for tmp, not good if Rd is R10 -- grepping the the kernel shows it's not (for now)
 #define GET_HIGH_RES_TICK_COUNT(Rd)						         \
   asm("push {r10}");										     \
-  asm("mov r10, #2");										     \
+  asm("mov r10, #1");										     \
   asm("ldr "#Rd", =%a0"               : : "i" (KHwBaseRtc + 4)); \
   asm("str r10, ["#Rd", #%a0]"        : : "i" (0));			     \
   asm("pop {r10}");                                              \
--- a/baseport/syborg/specific/syborg.h	Fri Nov 13 15:54:25 2009 +0000
+++ b/baseport/syborg/specific/syborg.h	Tue Apr 06 16:31:41 2010 +0100
@@ -10,6 +10,7 @@
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
+* NTT Docomo, Inc : BUG 1296
 *
 * Description:
 *
@@ -31,6 +32,7 @@
 
 const TUint KHwBasePeripherals  = KPrimaryIOBase;       
 const TUint KHwLinSeparation	= 0x1000;
+const TInt KMsTickPeriod	= 10000;
 
 const TUint KHwBaseSic				= KHwBasePeripherals + 0x00*KHwLinSeparation;
 // intended for use as a free-running counter. Reading the value register of a free-running syborg counter returns a microsec value