aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/align.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/align.c')
-rw-r--r--arch/powerpc/kernel/align.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c
index e06f75daeba3..c95954c81454 100644
--- a/arch/powerpc/kernel/align.c
+++ b/arch/powerpc/kernel/align.c
@@ -366,7 +366,7 @@ static int emulate_multiple(struct pt_regs *regs, unsigned char __user *addr,
366static int emulate_fp_pair(struct pt_regs *regs, unsigned char __user *addr, 366static int emulate_fp_pair(struct pt_regs *regs, unsigned char __user *addr,
367 unsigned int reg, unsigned int flags) 367 unsigned int reg, unsigned int flags)
368{ 368{
369 char *ptr = (char *) &current->thread.fpr[reg]; 369 char *ptr = (char *) &current->thread.TS_FPR(reg);
370 int i, ret; 370 int i, ret;
371 371
372 if (!(flags & F)) 372 if (!(flags & F))
@@ -784,7 +784,7 @@ int fix_alignment(struct pt_regs *regs)
784 return -EFAULT; 784 return -EFAULT;
785 } 785 }
786 } else if (flags & F) { 786 } else if (flags & F) {
787 data.dd = current->thread.fpr[reg]; 787 data.dd = current->thread.TS_FPR(reg);
788 if (flags & S) { 788 if (flags & S) {
789 /* Single-precision FP store requires conversion... */ 789 /* Single-precision FP store requires conversion... */
790#ifdef CONFIG_PPC_FPU 790#ifdef CONFIG_PPC_FPU
@@ -862,7 +862,7 @@ int fix_alignment(struct pt_regs *regs)
862 if (unlikely(ret)) 862 if (unlikely(ret))
863 return -EFAULT; 863 return -EFAULT;
864 } else if (flags & F) 864 } else if (flags & F)
865 current->thread.fpr[reg] = data.dd; 865 current->thread.TS_FPR(reg) = data.dd;
866 else 866 else
867 regs->gpr[reg] = data.ll; 867 regs->gpr[reg] = data.ll;
868 868