diff options
Diffstat (limited to 'include/asm-ppc/system.h')
-rw-r--r-- | include/asm-ppc/system.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-ppc/system.h b/include/asm-ppc/system.h index af93ff04c53f..1f310783757e 100644 --- a/include/asm-ppc/system.h +++ b/include/asm-ppc/system.h | |||
@@ -74,6 +74,7 @@ extern void read_rtc_time(void); | |||
74 | extern void pmac_find_display(void); | 74 | extern void pmac_find_display(void); |
75 | extern void giveup_fpu(struct task_struct *); | 75 | extern void giveup_fpu(struct task_struct *); |
76 | extern void enable_kernel_fp(void); | 76 | extern void enable_kernel_fp(void); |
77 | extern void flush_fp_to_thread(struct task_struct *); | ||
77 | extern void enable_kernel_altivec(void); | 78 | extern void enable_kernel_altivec(void); |
78 | extern void giveup_altivec(struct task_struct *); | 79 | extern void giveup_altivec(struct task_struct *); |
79 | extern void load_up_altivec(struct task_struct *); | 80 | extern void load_up_altivec(struct task_struct *); |
@@ -83,6 +84,23 @@ extern void load_up_spe(struct task_struct *); | |||
83 | extern int fix_alignment(struct pt_regs *); | 84 | extern int fix_alignment(struct pt_regs *); |
84 | extern void cvt_fd(float *from, double *to, unsigned long *fpscr); | 85 | extern void cvt_fd(float *from, double *to, unsigned long *fpscr); |
85 | extern void cvt_df(double *from, float *to, unsigned long *fpscr); | 86 | extern void cvt_df(double *from, float *to, unsigned long *fpscr); |
87 | |||
88 | #ifdef CONFIG_ALTIVEC | ||
89 | extern void flush_altivec_to_thread(struct task_struct *); | ||
90 | #else | ||
91 | static inline void flush_altivec_to_thread(struct task_struct *t) | ||
92 | { | ||
93 | } | ||
94 | #endif | ||
95 | |||
96 | #ifdef CONFIG_SPE | ||
97 | extern void flush_spe_to_thread(struct task_struct *); | ||
98 | #else | ||
99 | static inline void flush_spe_to_thread(struct task_struct *t) | ||
100 | { | ||
101 | } | ||
102 | #endif | ||
103 | |||
86 | extern int call_rtas(const char *, int, int, unsigned long *, ...); | 104 | extern int call_rtas(const char *, int, int, unsigned long *, ...); |
87 | extern void cacheable_memzero(void *p, unsigned int nb); | 105 | extern void cacheable_memzero(void *p, unsigned int nb); |
88 | extern void *cacheable_memcpy(void *, const void *, unsigned int); | 106 | extern void *cacheable_memcpy(void *, const void *, unsigned int); |