From: Dave A. <ai...@us...> - 2001-03-03 20:38:19
|
Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax In directory usw-pr-cvs1:/tmp/cvs-serv5370/include/asm-vax Modified Files: byteorder.h Log Message: final fix for arch__swab32 hopfully.. make the g -> r for the input fixes someone doing ntohl(p++) Thanks to Kenn for pointing this one out ... Index: byteorder.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/byteorder.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- byteorder.h 2001/03/03 18:54:31 1.4 +++ byteorder.h 2001/03/03 20:39:47 1.5 @@ -4,7 +4,7 @@ /* FIXME: arch byte swapping in assembly */ #include <asm/types.h> -#define VAX_USE_ARCH_SWAB32 0 +#define VAX_USE_ARCH_SWAB32 1 #ifdef __GNUC__ /* @@ -21,7 +21,7 @@ "rotl $-8, %1, r1\n\t" /* r1 = ddaabbcc */ "bicl2 $0xff00ff, r1\n\t" /* r1 = dd00bb00 */ "bisl2 r1, %0\n\t" /* %0 = ddccbbaa */ - : "=g" (t1) : "g" (x) : "r1" ); + : "=&g" (t1) : "r" (x) : "r1" ); return t1; } #endif |