linux-mips
[Top] [All Lists]

1$ clobber bug

To: linux-mips@oss.sgi.com
Subject: 1$ clobber bug
From: James Simmons <jsimmons@transvirtual.com>
Date: Tue, 6 Nov 2001 11:19:54 -0800 (PST)
Sender: owner-linux-mips@oss.sgi.com

I believe the ITE generic time code has a 1$ clobber bug in it. Here is a
patch to fix this.

--- time.c      Fri Oct  5 10:01:22 2001
+++ /usr/src/linux/arch/mips/ite-boards/generic/time.c  Tue Nov  6 11:38:00 2001
@@ -303,7 +303,8 @@
                        :"r" (timerhi),
                         "m" (timerlo),
                         "r" (tmp),
-                        "r" (USECS_PER_JIFFY));
+                        "r" (USECS_PER_JIFFY)
+                       :"$1");
                cached_quotient = quotient;
        }
 


<Prev in Thread] Current Thread [Next in Thread>