aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/align.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2008-06-26 03:07:48 -0400
committerPaul Mackerras <paulus@samba.org>2008-06-30 21:28:43 -0400
commit9c75a31c3525a127f70b919856e32be3d8b03755 (patch)
tree3beee76d3dd4a55af868b5edfbef80c911819fed /arch/powerpc/kernel/align.c
parent9e7511861c4f8d35852a3721c5bcd92661cb4c9f (diff)
powerpc: Add macros to access floating point registers in thread_struct.
We are going to change where the floating point registers are stored in the thread_struct, so in preparation add some macros to access the floating point registers. Update all code to use these new macros. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
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