Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] Convert init_thread initialization to ISO C initializers.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+53 -37
+53 -37
include/asm-mips/processor.h
··· 82 82 unsigned int fcr31; 83 83 }; 84 84 85 - #define INIT_FPU { \ 86 - {0,} \ 87 - } 88 - 89 85 #define NUM_DSP_REGS 6 90 86 91 87 typedef __u32 dspreg_t; ··· 90 94 dspreg_t dspr[NUM_DSP_REGS]; 91 95 unsigned int dspcontrol; 92 96 }; 93 - 94 - #define INIT_DSP {{0,},} 95 97 96 98 #define INIT_CPUMASK { \ 97 99 {0,} \ ··· 149 155 #define MF_N64 0 150 156 151 157 #ifdef CONFIG_MIPS_MT_FPAFF 152 - #define FPAFF_INIT 0, INIT_CPUMASK, 158 + #define FPAFF_INIT \ 159 + .emulated_fp = 0, \ 160 + .user_cpus_allowed = INIT_CPUMASK, 153 161 #else 154 162 #define FPAFF_INIT 155 163 #endif /* CONFIG_MIPS_MT_FPAFF */ 156 164 157 - #define INIT_THREAD { \ 158 - /* \ 159 - * saved main processor registers \ 160 - */ \ 161 - 0, 0, 0, 0, 0, 0, 0, 0, \ 162 - 0, 0, 0, \ 163 - /* \ 164 - * saved cp0 stuff \ 165 - */ \ 166 - 0, \ 167 - /* \ 168 - * saved fpu/fpu emulator stuff \ 169 - */ \ 170 - INIT_FPU, \ 171 - /* \ 172 - * fpu affinity state (null if not FPAFF) \ 173 - */ \ 174 - FPAFF_INIT \ 175 - /* \ 176 - * saved dsp/dsp emulator stuff \ 177 - */ \ 178 - INIT_DSP, \ 179 - /* \ 180 - * Other stuff associated with the process \ 181 - */ \ 182 - 0, 0, 0, 0, \ 183 - /* \ 184 - * For now the default is to fix address errors \ 185 - */ \ 186 - MF_FIXADE, 0, 0 \ 165 + #define INIT_THREAD { \ 166 + /* \ 167 + * Saved main processor registers \ 168 + */ \ 169 + .reg16 = 0, \ 170 + .reg17 = 0, \ 171 + .reg18 = 0, \ 172 + .reg19 = 0, \ 173 + .reg20 = 0, \ 174 + .reg21 = 0, \ 175 + .reg22 = 0, \ 176 + .reg23 = 0, \ 177 + .reg29 = 0, \ 178 + .reg30 = 0, \ 179 + .reg31 = 0, \ 180 + /* \ 181 + * Saved cp0 stuff \ 182 + */ \ 183 + .cp0_status = 0, \ 184 + /* \ 185 + * Saved FPU/FPU emulator stuff \ 186 + */ \ 187 + .fpu = { \ 188 + .fpr = {0,}, \ 189 + .fcr31 = 0, \ 190 + }, \ 191 + /* \ 192 + * FPU affinity state (null if not FPAFF) \ 193 + */ \ 194 + FPAFF_INIT \ 195 + /* \ 196 + * Saved DSP stuff \ 197 + */ \ 198 + .dsp = { \ 199 + .dspr = {0, }, \ 200 + .dspcontrol = 0, \ 201 + }, \ 202 + /* \ 203 + * Other stuff associated with the process \ 204 + */ \ 205 + .cp0_badvaddr = 0, \ 206 + .cp0_baduaddr = 0, \ 207 + .error_code = 0, \ 208 + .trap_no = 0, \ 209 + /* \ 210 + * For now the default is to fix address errors \ 211 + */ \ 212 + .mflags = MF_FIXADE, \ 213 + .irix_trampoline = 0, \ 214 + .irix_oldctx = 0, \ 187 215 } 188 216 189 217 struct task_struct;