patch-2.2.19 linux/include/asm-s390/system.h
Next file: linux/include/asm-s390/todclk.h
Previous file: linux/include/asm-s390/siginfo.h
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Sun Mar 25 11:37:39 2001
- Orig file:
v2.2.18/include/asm-s390/system.h
- Orig date:
Sun Mar 25 11:28:37 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/include/asm-s390/system.h linux/include/asm-s390/system.h
@@ -33,14 +33,14 @@
" nr 1,%0\n" /* isolate last 2 bits */
" xr %0,1\n" /* align ptr */
" bras 2,0f\n"
- " icm 1,8,%1\n" /* for ptr&3 == 0 */
- " stcm 0,8,%1\n"
- " icm 1,4,%1\n" /* for ptr&3 == 1 */
- " stcm 0,4,%1\n"
- " icm 1,2,%1\n" /* for ptr&3 == 2 */
- " stcm 0,2,%1\n"
- " icm 1,1,%1\n" /* for ptr&3 == 3 */
- " stcm 0,1,%1\n"
+ " icm 1,8,3(%1)\n" /* for ptr&3 == 0 */
+ " stcm 0,8,3(%1)\n"
+ " icm 1,4,3(%1)\n" /* for ptr&3 == 1 */
+ " stcm 0,4,3(%1)\n"
+ " icm 1,2,3(%1)\n" /* for ptr&3 == 2 */
+ " stcm 0,2,3(%1)\n"
+ " icm 1,1,3(%1)\n" /* for ptr&3 == 3 */
+ " stcm 0,1,3(%1)\n"
"0: sll 1,3\n"
" la 2,0(1,2)\n" /* r2 points to an icm */
" l 0,0(%0)\n" /* get fullword */
@@ -49,8 +49,9 @@
" cs 0,1,0(%0)\n"
" jl 1b\n"
" ex 0,4(2)" /* store *ptr to x */
- : "+a&" (ptr), "+m" (x) :
+ : "+a&" (ptr) : "a" (&x)
: "memory", "0", "1", "2");
+ break;
case 2:
if(((__u32)ptr)&1)
panic("misaligned (__u16 *) in __xchg\n");
@@ -59,10 +60,10 @@
" nr 1,%0\n" /* isolate bit 2^1 */
" xr %0,1\n" /* align ptr */
" bras 2,0f\n"
- " icm 1,12,%1\n" /* for ptr&2 == 0 */
- " stcm 0,12,%1\n"
- " icm 1,3,%1\n" /* for ptr&2 == 1 */
- " stcm 0,3,%1\n"
+ " icm 1,12,2(%1)\n" /* for ptr&2 == 0 */
+ " stcm 0,12,2(%1)\n"
+ " icm 1,3,2(%1)\n" /* for ptr&2 == 1 */
+ " stcm 0,3,2(%1)\n"
"0: sll 1,2\n"
" la 2,0(1,2)\n" /* r2 points to an icm */
" l 0,0(%0)\n" /* get fullword */
@@ -71,7 +72,7 @@
" cs 0,1,0(%0)\n"
" jl 1b\n"
" ex 0,4(2)" /* store *ptr to x */
- : "+a&" (ptr), "+m" (x) :
+ : "+a&" (ptr) : "a" (&x)
: "memory", "0", "1", "2");
break;
case 4:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)