lkml.org 
[lkml]   [1999]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectstrstr _fix_ (for depca.c & ewrk3.c, 2.2.0-pre6 + pre7)

Looking at the asm code closely, it becomes clear that only %ebx is free to
hold the ct pointer; I would therefore apply the following path (don't get
confused -- all that really changes is the "g" into a "b", but breaking the
long line and aligning the input operands with the outputs that occupy the
same space seemed reasonable to me).

Torsten


--- linux/include/asm-i386/string.h~ Tue Dec 29 20:18:18 1998
+++ linux/include/asm-i386/string.h Thu Jan 14 16:21:10 1999
@@ -213,7 +213,8 @@
"jne 1b\n\t"
"xorl %%eax,%%eax\n\t"
"2:"
- :"=a" (__res), "=&c" (d0), "=&S" (d1), "=&d" (d2), "=&D" (d3) : "0" (0),"1" (0xffffffff),"2" (cs),"g" (ct));
+ :"=a" (__res), "=&c" (d0), "=&S" (d1), "=&d" (d2), "=&D" (d3)
+ : "0" (0), "1" (0xffffffff), "2" (cs), "b" (ct));
return __res;
}

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

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.253 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site