[PATCH] 2.2 kernel compile error in hfmodem with gcc 2.95

Joop Stakenborg (aba@casema.net)
Sun, 8 Aug 1999 17:26:16 +0200


For those who have the newest gcc compiler (2.95) and experience trouble
compiling the hfmodem stuff in the latest kernel, here is a patch
that fixes this. Don't know if this affects the actual modem, because
I cannot test it (maybe somebody else can?). Should also work with
older compilers.

--------------------------------------------------------------------------------
--- linux-2.2.10/drivers/char/hfmodem/refclock.c~ Tue Jul 21 21:26:04 1998
+++ linux-2.2.10/drivers/char/hfmodem/refclock.c Sun Aug 8 21:37:14 1999
@@ -133,8 +133,8 @@
__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");
+ : "m" (dev->clk.starttime_lo), "m" (dev->clk.starttime_hi));
+ __asm__("mull %1" : "=d" (tmp2) : "m" (scale_rdtsc), "a" (tmp0));
__asm__("mull %1" : "=a" (tmp3) : "m" (scale_rdtsc), "a" (tmp1) : "dx");
curtime = tmp2 + tmp3;
goto time_known;
--------------------------------------------------------------------------------

Joop

-- 

Joop Stakenborg PA4TU, ex-PA3ABA <pa3aba@debian.org> Linux Amateur Radio Software Database http://radio.linux.org.au

- 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/