This was already fixed upstream on 1st January (http://webcvs.freedesktop.org/liboil/liboil/liboil/liboilcpu.c?r1=1.36&r2=1.37) so I'm going to apply that change and upload:
--- liboilcpu.c 2006/11/06 02:04:58 1.36
+++ liboilcpu.c 2007/01/01 09:33:33 1.37
@@ -615,15 +615,17 @@
/***** arm *****/
#ifdef __arm__
+#if 0
static unsigned long
oil_profile_stamp_xscale(void)
{
unsigned int ts;
__asm__ __volatile__ (
- " mrc p14, 0, %0, c0, c0, 0 \n"
+ " mrc p14, 0, %0, c1, c0, 0 \n"
: "=r" (ts));
return ts;
}
+#endif
static void
oil_cpu_detect_arm(void)
@@ -643,9 +645,6 @@
switch(arm_implementer) {
case 0x69: /* Intel */
- /* assume that all Intel chips support CP14 timestamp */
- _oil_profile_stamp = oil_profile_stamp_xscale;
- break;
case 0x41: /* ARM */
/* ARM chips are known to not have timestamping available from
* user space */
-- END --
Ben.
--
Ben Hutchings
Beware of bugs in the above code;
I have only proved it correct, not tried it. - Donald Knuth
signature.asc
Description: This is a digitally signed message part

