aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-17 06:12:39 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-17 06:12:39 -0400
commit7ac59c624992281ff315911dea2a98ca3f3ff06e (patch)
treecef07b70e33f78cd184a05b16876756fb6e8a4ab /include/asm-ppc
parent3e63b9ec51eb1d9f441e5015427b23d70e5991b3 (diff)
ppc: Fix various compile errors resulting from ptrace.c merge
This introduces flush_{fp,altivec,spe}_to_thread and fixes a branch-too-far error in linking. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc')
-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);