From 79e80fedc4bcac4cd1d5a684537f20a4331efd4e Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 30 May 2007 14:33:55 +0000 Subject: 2007-05-30 Martin Hunt Patch from Quentin Barnes. * arith.c: Add arm support for 64-bit division. * copy.c: Enable arm support. * loc2c-runtime.h: Ditto. * regs.[ch]: Ditto. * stack.c: Include stack-arm.c. * stack-arm.c: New file. * time.c (_stp_gettimeofday_ns): hack for arm. See PR 4569. --- runtime/time.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'runtime/time.c') diff --git a/runtime/time.c b/runtime/time.c index 657b5e8c..275fd98d 100644 --- a/runtime/time.c +++ b/runtime/time.c @@ -61,7 +61,7 @@ int stp_timer_reregister = 0; static unsigned int __stp_estimate_cpufreq(void) { -#if defined (__s390__) || defined (__s390x__) +#if defined (__s390__) || defined (__s390x__) || defined (__arm__) // We don't need to find the cpu freq on s390 as the // TOD clock is always a fix freq. (see: POO pg 4-36.) return 0; @@ -255,6 +255,12 @@ _stp_gettimeofday_ns(void) delta = (delta * 125) >> 7; +#elif defined (__arm__) + + /* arm always returns 0 for get_cycles() */ + /* so this is just a fake value until we get a real fix. */ + delta = 1000; + #else /* __s390__ || __s390x__ */ // Verify units: -- cgit