Re: Linux 2.2.12 - compilation error

Thomas Sailer (sailer@ife.ee.ethz.ch)
Wed, 08 Sep 1999 12:12:20 +0200


This is a multi-part message in MIME format.
--------------93C71339AE391101F0ECBC55
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Artur Frysiak wrote:
>
> Hi.
> I try to compile Linux 2.2.12 on i586.

You might try this patch, although it's completely untested.
And anyway, the hfmodem driver isn't needed anymore
as there is a userspace solution to the problem

Tom
--------------93C71339AE391101F0ECBC55
Content-Type: text/plain; charset=us-ascii;
name="hfmodem.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="hfmodem.diff"

--- refclock.c.orig Wed Sep 8 12:08:12 1999
+++ refclock.c Wed Sep 8 12:10:59 1999
@@ -127,14 +127,13 @@

#ifdef __i386__
if (rdtsc_ok) {
- unsigned int tmp0, tmp1;
- unsigned int tmp2, tmp3;
+ unsigned int tmp0, tmp1, tmp2, tmp3, tmp4;

__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 %2" : "=d" (tmp2), "=a" (tmp4) : "m" (scale_rdtsc), "1" (tmp0) : "ax");
__asm__("mull %1" : "=a" (tmp3) : "m" (scale_rdtsc), "a" (tmp1) : "dx");
curtime = tmp2 + tmp3;
goto time_known;

--------------93C71339AE391101F0ECBC55--

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