aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/system.h')
-rw-r--r--include/asm-ppc/system.h18
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);
74extern void pmac_find_display(void); 74extern void pmac_find_display(void);
75extern void giveup_fpu(struct task_struct *); 75extern void giveup_fpu(struct task_struct *);
76extern void enable_kernel_fp(void); 76extern void enable_kernel_fp(void);
77extern void flush_fp_to_thread(struct task_struct *);
77extern void enable_kernel_altivec(void); 78extern void enable_kernel_altivec(void);
78extern void giveup_altivec(struct task_struct *); 79extern void giveup_altivec(struct task_struct *);
79extern void load_up_altivec(struct task_struct *); 80extern void load_up_altivec(struct task_struct *);
@@ -83,6 +84,23 @@ extern void load_up_spe(struct task_struct *);
83extern int fix_alignment(struct pt_regs *); 84extern int fix_alignment(struct pt_regs *);
84extern void cvt_fd(float *from, double *to, unsigned long *fpscr); 85extern void cvt_fd(float *from, double *to, unsigned long *fpscr);
85extern void cvt_df(double *from, float *to, unsigned long *fpscr); 86extern void cvt_df(double *from, float *to, unsigned long *fpscr);
87
88#ifdef CONFIG_ALTIVEC
89extern void flush_altivec_to_thread(struct task_struct *);
90#else
91static inline void flush_altivec_to_thread(struct task_struct *t)
92{
93}
94#endif
95
96#ifdef CONFIG_SPE
97extern void flush_spe_to_thread(struct task_struct *);
98#else
99static inline void flush_spe_to_thread(struct task_struct *t)
100{
101}
102#endif
103
86extern int call_rtas(const char *, int, int, unsigned long *, ...); 104extern int call_rtas(const char *, int, int, unsigned long *, ...);
87extern void cacheable_memzero(void *p, unsigned int nb); 105extern void cacheable_memzero(void *p, unsigned int nb);
88extern void *cacheable_memcpy(void *, const void *, unsigned int); 106extern void *cacheable_memcpy(void *, const void *, unsigned int);