[Vm-dev] [commit][2666] update platform specific H for using
HALtimer
commits at squeakvm.org
commits at squeakvm.org
Thu Jan 10 00:06:46 UTC 2013
Revision: 2666
Author: rowledge
Date: 2013-01-09 16:06:46 -0800 (Wed, 09 Jan 2013)
Log Message:
-----------
update platform specific H for using HALtimer
Modified Paths:
--------------
trunk/platforms/RiscOS/vm/sqPlatformSpecific.h
trunk/platforms/RiscOS/vm/sqRPCMain.c
Modified: trunk/platforms/RiscOS/vm/sqPlatformSpecific.h
===================================================================
--- trunk/platforms/RiscOS/vm/sqPlatformSpecific.h 2013-01-10 00:04:43 UTC (rev 2665)
+++ trunk/platforms/RiscOS/vm/sqPlatformSpecific.h 2013-01-10 00:06:46 UTC (rev 2666)
@@ -75,8 +75,8 @@
HALTIMERMOD means using a combination of Rik Griffin's HALTimer and
my MillisecondTimer to keep a runing count of milliseconds
Currently HALTimer won't run on a RaspberryPi, so use drucks code */
-#define DRUCKTIMERMOD
-// #define HALTIMERMOD
+// #define DRUCKTIMERMOD
+#define HALTIMERMOD
usqInt millisecondTimerValue(void);
#define ioMSecs() (sqInt)(millisecondTimerValue())
Modified: trunk/platforms/RiscOS/vm/sqRPCMain.c
===================================================================
--- trunk/platforms/RiscOS/vm/sqRPCMain.c 2013-01-10 00:04:43 UTC (rev 2665)
+++ trunk/platforms/RiscOS/vm/sqRPCMain.c 2013-01-10 00:06:46 UTC (rev 2666)
@@ -348,7 +348,7 @@
#ifdef HALTIMERMOD
// _kernel_swi(/* MillisecondTimer_Value */ 0x58100, ®s, ®s);
// return (regs.r[0]) ;
- return (usqIt)*timerValPtr;
+ return (usqInt)*timerValPtr;
#endif
}
More information about the Vm-dev
mailing list