Re: 2.2.11pre5 compile error in hfmodem

Artur Skawina (skawina@geocities.com)
Sun, 08 Aug 1999 19:53:46 +0200


Alan Modra wrote:
>
> > > refclock.c:137: Invalid `asm' statement:
> > > refclock.c:137: fixed or forbidden register 0 (ax) was spilled for class AREG.

> following compiles with both gcc-2.7.2.3 and gcc-2.96, and the assembly
> looks at least half reasonable.

> - __asm__("mull %1" : "=d" (tmp2) : "m" (scale_rdtsc), "a" (tmp0) : "ax");
> + __asm__("mull %1" : "=d" (tmp2) : "m" (scale_rdtsc), "a" (tmp0));

this doesn't look right -- mull modifies eax/edx.

+ __asm__("mull %1" : "=d" (tmp2), "=a" (dummy) : "m" (scale_rdtsc), "a" (tmp0));

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/