patch-2.3.16 linux/arch/ppc/kernel/ptrace.c

Next file: linux/arch/ppc/kernel/semaphore.c
Previous file: linux/arch/ppc/kernel/prom.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/arch/ppc/kernel/ptrace.c linux/arch/ppc/kernel/ptrace.c
@@ -47,7 +47,7 @@
 static inline long get_reg(struct task_struct *task, int regno)
 {
 	if (regno < sizeof(struct pt_regs) / sizeof(unsigned long))
-		return ((unsigned long *)task->tss.regs)[regno];
+		return ((unsigned long *)task->thread.regs)[regno];
 	return (0);
 }
 
@@ -60,8 +60,8 @@
 	if (regno <= PT_MQ) {
 		if (regno == PT_MSR)
 			data = (data & MSR_DEBUGCHANGE)
-				| (task->tss.regs->msr & ~MSR_DEBUGCHANGE);
-		((unsigned long *)task->tss.regs)[regno] = data;
+				| (task->thread.regs->msr & ~MSR_DEBUGCHANGE);
+		((unsigned long *)task->thread.regs)[regno] = data;
 		return 0;
 	}
 	return -1;
@@ -70,14 +70,14 @@
 static inline void
 set_single_step(struct task_struct *task)
 {
-	struct pt_regs *regs = task->tss.regs;
+	struct pt_regs *regs = task->thread.regs;
 	regs->msr |= MSR_SE;
 }
 
 static inline void
 clear_single_step(struct task_struct *task)
 {
-	struct pt_regs *regs = task->tss.regs;
+	struct pt_regs *regs = task->thread.regs;
 	regs->msr &= ~MSR_SE;
 }
 
@@ -384,9 +384,9 @@
 				tmp = get_reg(child, addr);
 			}
 			else if (addr >= PT_FPR0 && addr <= PT_FPSCR) {
-				if (child->tss.regs->msr & MSR_FP)
+				if (child->thread.regs->msr & MSR_FP)
 					giveup_fpu(child);
-				tmp = ((long *)child->tss.fpr)[addr - PT_FPR0];
+				tmp = ((long *)child->thread.fpr)[addr - PT_FPR0];
 			}
 			else
 				ret = -EIO;
@@ -419,9 +419,9 @@
 				goto out;
 			}
 			if (addr >= PT_FPR0 && addr < PT_FPR0 + 64) {
-				if (child->tss.regs->msr & MSR_FP)
+				if (child->thread.regs->msr & MSR_FP)
 					giveup_fpu(child);
-				((long *)child->tss.fpr)[addr - PT_FPR0] = data;
+				((long *)child->thread.fpr)[addr - PT_FPR0] = data;
 				ret = 0;
 				goto out;
 			}

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