On Thu, Oct 21, 1999 at 02:56:35PM +0200, Thomas Sailer wrote:
> That is the kernel driver, which shouldn't be needed either, so
> please remove it also.

The driver in the 2.2.12 kernel source does not compile for me either :-(

refclock.c: In function `hfmodem_refclock_current':
refclock.c:136: Invalid `asm' statement:
refclock.c:136: fixed or forbidden register 0 (ax) was spilled for class AREG.
refclock.c:137: Invalid `asm' statement:
refclock.c:137: fixed or forbidden register 0 (ax) was spilled for class AREG.
make[4]: *** [refclock.o] Error 1
make[4]: Leaving directory `/local/local/src/linux-2.2/drivers/char/hfmodem'

The offending lines are

                __asm__("rdtsc;\n\t"
                        "subl %2,%%eax\n\t"
                        "sbbl %3,%%edx\n\t" : "=&a" (tmp0), "=&d" (tmp1)
                        : "m" (dev->clk.starttime_lo), "m" (dev->clk.starttime_hi) : 
"ax", "dx");
                __asm__("mull %1" : "=d" (tmp2) : "m" (scale_rdtsc), "a" (tmp0) : 
"ax");

(the last line of the first statement, and the second statement).
I don't understand this assembler syntax so I can't see how to apply
Joop's suggestion to fix the problem.


thanks
Hamish
-- 
Hamish Moffatt       Mobile: +61 412 011 176     [EMAIL PROTECTED]
Rising Software Australia Pty. Ltd.    http://www.risingsoftware.com/
Phone: +61 3 9894 4788    Fax: +61 3 9894 3362    USA: 1 888 667 7839

Reply via email to