# HG changeset patch # User bugtracker-ml@nttdocomo.com # Date 1270567901 -3600 # Node ID 2c1e559d48bf3bf196542eceb497e95f1047ff11 # Parent cc51249fbd9c357fb18a866b152910c105646d6f BUG 1296: E32test t_cputime.exe failed while testing Fast Counter diff -r cc51249fbd9c -r 2c1e559d48bf baseport/syborg/hal/values.hda --- 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 diff -r cc51249fbd9c -r 2c1e559d48bf baseport/syborg/specific/assp.cpp --- 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) diff -r cc51249fbd9c -r 2c1e559d48bf baseport/syborg/specific/highrestimer.h --- 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}"); \ diff -r cc51249fbd9c -r 2c1e559d48bf baseport/syborg/specific/syborg.h --- 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