patch-2.3.16 linux/arch/sparc/kernel/unaligned.c

Next file: linux/arch/sparc/kernel/windows.c
Previous file: linux/arch/sparc/kernel/traps.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/arch/sparc/kernel/unaligned.c linux/arch/sparc/kernel/unaligned.c
@@ -1,4 +1,4 @@
-/* $Id: unaligned.c,v 1.18 1999/04/03 11:36:17 anton Exp $
+/* $Id: unaligned.c,v 1.19 1999/08/14 03:51:33 anton Exp $
  * unaligned.c: Unaligned load/store trap handling with special
  *              cases for the kernel to do them more quickly.
  *
@@ -61,7 +61,7 @@
 		return 2;
 	else {
 		printk("Impossible unaligned trap. insn=%08x\n", insn);
-		die_if_kernel("Byte sized unaligned access?!?!", current->tss.kregs);
+		die_if_kernel("Byte sized unaligned access?!?!", current->thread.kregs);
 		return 4; /* just to keep gcc happy. */
 	}
 }
@@ -422,8 +422,8 @@
 
 void user_mna_trap_fault(struct pt_regs *regs, unsigned int insn)
 {
-	current->tss.sig_address = regs->pc;
-	current->tss.sig_desc = SUBSIG_PRIVINST;
+	current->thread.sig_address = regs->pc;
+	current->thread.sig_desc = SUBSIG_PRIVINST;
 	send_sig(SIGBUS, current, 1);
 }
 
@@ -432,7 +432,7 @@
 	enum direction dir;
 
 	lock_kernel();
-	if(!(current->tss.flags & SPARC_FLAG_UNALIGNED) ||
+	if(!(current->thread.flags & SPARC_FLAG_UNALIGNED) ||
 	   (((insn >> 30) & 3) != 3))
 		goto kill_user;
 	dir = decode_direction(insn);
@@ -487,8 +487,8 @@
 	}
 
 kill_user:
-	current->tss.sig_address = regs->pc;
-	current->tss.sig_desc = SUBSIG_PRIVINST;
+	current->thread.sig_address = regs->pc;
+	current->thread.sig_desc = SUBSIG_PRIVINST;
 	send_sig(SIGBUS, current, 1);
 out:
 	unlock_kernel();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)