patch-2.1.127 linux/arch/sparc64/kernel/unaligned.c
Next file: linux/arch/sparc64/lib/Makefile
Previous file: linux/arch/sparc64/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Tue Oct 27 09:52:20 1998
- Orig file:
v2.1.126/linux/arch/sparc64/kernel/unaligned.c
- Orig date:
Mon Oct 5 13:13:38 1998
diff -u --recursive --new-file v2.1.126/linux/arch/sparc64/kernel/unaligned.c linux/arch/sparc64/kernel/unaligned.c
@@ -1,4 +1,4 @@
-/* $Id: unaligned.c,v 1.11 1998/09/22 03:24:52 davem Exp $
+/* $Id: unaligned.c,v 1.13 1998/10/07 22:43:13 davem Exp $
* unaligned.c: Unaligned load/store trap handling with special
* cases for the kernel to do them more quickly.
*
@@ -58,9 +58,10 @@
{
unsigned int tmp;
- if (((insn >> 19) & 0xf) == 14)
- return 8; /* stx* */
- tmp = (insn >> 19) & 3;
+ tmp = ((insn >> 19) & 0xf);
+ if (tmp == 11 || tmp == 14) /* ldx/stx */
+ return 8;
+ tmp &= 3;
if(!tmp)
return 4;
else if(tmp == 3)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov