aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/processor.h')
-rw-r--r--include/asm-powerpc/processor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-powerpc/processor.h b/include/asm-powerpc/processor.h
index d5c7ef1cca26..fa6163268153 100644
--- a/include/asm-powerpc/processor.h
+++ b/include/asm-powerpc/processor.h
@@ -211,6 +211,12 @@ unsigned long get_wchan(struct task_struct *p);
211extern int get_fpexc_mode(struct task_struct *tsk, unsigned long adr); 211extern int get_fpexc_mode(struct task_struct *tsk, unsigned long adr);
212extern int set_fpexc_mode(struct task_struct *tsk, unsigned int val); 212extern int set_fpexc_mode(struct task_struct *tsk, unsigned int val);
213 213
214#define GET_ENDIAN(tsk, adr) get_endian((tsk), (adr))
215#define SET_ENDIAN(tsk, val) set_endian((tsk), (val))
216
217extern int get_endian(struct task_struct *tsk, unsigned long adr);
218extern int set_endian(struct task_struct *tsk, unsigned int val);
219
214static inline unsigned int __unpack_fe01(unsigned long msr_bits) 220static inline unsigned int __unpack_fe01(unsigned long msr_bits)
215{ 221{
216 return ((msr_bits & MSR_FE0) >> 10) | ((msr_bits & MSR_FE1) >> 8); 222 return ((msr_bits & MSR_FE0) >> 10) | ((msr_bits & MSR_FE1) >> 8);