On Wed, 2005-02-23 at 09:18, [EMAIL PROTECTED] wrote: > Hi, Michael
Hello! > 1st - I like your rdtsc implementation! Thank you! > One minor problem, though - those > inline asm constructs you use for ldmia / stmia only compile with a 3.x > gcc, right? > > I think, normally 2.4 ARM kernels are compiled with 2.9x.y > compilers, do you compile your kernels with a 3.x or am I mistaken > somewhere? Yes, I'm using gcc 3.3.2 I think the problem with the asm-statements is not using %M to get a register list but the usage of symbolic names for operands (%[name] instead of %0). You could try replacing __asm__( "ldmia %[glbl_tsc], %M[tsc]\n" : /* output */ [tsc] "=r" (tsc.ll) : /* input */ [glbl_tsc] "r" (&ep93xx_tsc.ll), "m" (ep93xx_tsc) ); with __asm__( "ldmia %1, %M0\n" : /* output */ "=r" (tsc.ll) : /* input */ "r" (&ep93xx_tsc.ll), "m" (ep93xx_tsc) ); Mike -- Dr. Michael Neuhauser phone: +43 1 789 08 49 - 30 Firmix Software GmbH fax: +43 1 789 08 49 - 55 Vienna/Austria/Europe email: [EMAIL PROTECTED] Embedded Linux Development and Services http://www.firmix.at/