diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-17 06:12:39 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-17 06:12:39 -0400 |
commit | 7ac59c624992281ff315911dea2a98ca3f3ff06e (patch) | |
tree | cef07b70e33f78cd184a05b16876756fb6e8a4ab /include/asm-ppc | |
parent | 3e63b9ec51eb1d9f441e5015427b23d70e5991b3 (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.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); |