diff options
author | Michael Neuling <mikey@neuling.org> | 2008-06-26 03:07:48 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-06-30 21:28:43 -0400 |
commit | 9c75a31c3525a127f70b919856e32be3d8b03755 (patch) | |
tree | 3beee76d3dd4a55af868b5edfbef80c911819fed /include/asm-powerpc/processor.h | |
parent | 9e7511861c4f8d35852a3721c5bcd92661cb4c9f (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 'include/asm-powerpc/processor.h')
-rw-r--r-- | include/asm-powerpc/processor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/processor.h b/include/asm-powerpc/processor.h index a1deed85f31d..a23da6356e06 100644 --- a/include/asm-powerpc/processor.h +++ b/include/asm-powerpc/processor.h | |||
@@ -12,6 +12,8 @@ | |||
12 | 12 | ||
13 | #include <asm/reg.h> | 13 | #include <asm/reg.h> |
14 | 14 | ||
15 | #define TS_FPRWIDTH 1 | ||
16 | |||
15 | #ifndef __ASSEMBLY__ | 17 | #ifndef __ASSEMBLY__ |
16 | #include <linux/compiler.h> | 18 | #include <linux/compiler.h> |
17 | #include <asm/ptrace.h> | 19 | #include <asm/ptrace.h> |
@@ -140,6 +142,8 @@ typedef struct { | |||
140 | unsigned long seg; | 142 | unsigned long seg; |
141 | } mm_segment_t; | 143 | } mm_segment_t; |
142 | 144 | ||
145 | #define TS_FPR(i) fpr[i] | ||
146 | |||
143 | struct thread_struct { | 147 | struct thread_struct { |
144 | unsigned long ksp; /* Kernel stack pointer */ | 148 | unsigned long ksp; /* Kernel stack pointer */ |
145 | unsigned long ksp_limit; /* if ksp <= ksp_limit stack overflow */ | 149 | unsigned long ksp_limit; /* if ksp <= ksp_limit stack overflow */ |