diff options
| -rw-r--r-- | arch/mips/kernel/cps-vec.S | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S index bbbd88e994f0..21f714a81ebd 100644 --- a/arch/mips/kernel/cps-vec.S +++ b/arch/mips/kernel/cps-vec.S | |||
| @@ -250,25 +250,25 @@ LEAF(mips_cps_core_init) | |||
| 250 | mfc0 t0, CP0_MVPCONF0 | 250 | mfc0 t0, CP0_MVPCONF0 |
| 251 | srl t0, t0, MVPCONF0_PVPE_SHIFT | 251 | srl t0, t0, MVPCONF0_PVPE_SHIFT |
| 252 | andi t0, t0, (MVPCONF0_PVPE >> MVPCONF0_PVPE_SHIFT) | 252 | andi t0, t0, (MVPCONF0_PVPE >> MVPCONF0_PVPE_SHIFT) |
| 253 | addiu t7, t0, 1 | 253 | addiu ta3, t0, 1 |
| 254 | 254 | ||
| 255 | /* If there's only 1, we're done */ | 255 | /* If there's only 1, we're done */ |
| 256 | beqz t0, 2f | 256 | beqz t0, 2f |
| 257 | nop | 257 | nop |
| 258 | 258 | ||
| 259 | /* Loop through each VPE within this core */ | 259 | /* Loop through each VPE within this core */ |
| 260 | li t5, 1 | 260 | li ta1, 1 |
| 261 | 261 | ||
| 262 | 1: /* Operate on the appropriate TC */ | 262 | 1: /* Operate on the appropriate TC */ |
| 263 | mtc0 t5, CP0_VPECONTROL | 263 | mtc0 ta1, CP0_VPECONTROL |
| 264 | ehb | 264 | ehb |
| 265 | 265 | ||
| 266 | /* Bind TC to VPE (1:1 TC:VPE mapping) */ | 266 | /* Bind TC to VPE (1:1 TC:VPE mapping) */ |
| 267 | mttc0 t5, CP0_TCBIND | 267 | mttc0 ta1, CP0_TCBIND |
| 268 | 268 | ||
| 269 | /* Set exclusive TC, non-active, master */ | 269 | /* Set exclusive TC, non-active, master */ |
| 270 | li t0, VPECONF0_MVP | 270 | li t0, VPECONF0_MVP |
| 271 | sll t1, t5, VPECONF0_XTC_SHIFT | 271 | sll t1, ta1, VPECONF0_XTC_SHIFT |
| 272 | or t0, t0, t1 | 272 | or t0, t0, t1 |
| 273 | mttc0 t0, CP0_VPECONF0 | 273 | mttc0 t0, CP0_VPECONF0 |
| 274 | 274 | ||
| @@ -280,8 +280,8 @@ LEAF(mips_cps_core_init) | |||
| 280 | mttc0 t0, CP0_TCHALT | 280 | mttc0 t0, CP0_TCHALT |
| 281 | 281 | ||
| 282 | /* Next VPE */ | 282 | /* Next VPE */ |
| 283 | addiu t5, t5, 1 | 283 | addiu ta1, ta1, 1 |
| 284 | slt t0, t5, t7 | 284 | slt t0, ta1, ta3 |
| 285 | bnez t0, 1b | 285 | bnez t0, 1b |
| 286 | nop | 286 | nop |
| 287 | 287 | ||
| @@ -310,7 +310,7 @@ LEAF(mips_cps_boot_vpes) | |||
| 310 | addu t0, t0, t1 | 310 | addu t0, t0, t1 |
| 311 | 311 | ||
| 312 | /* Calculate this VPEs ID. If the core doesn't support MT use 0 */ | 312 | /* Calculate this VPEs ID. If the core doesn't support MT use 0 */ |
| 313 | has_mt t6, 1f | 313 | has_mt ta2, 1f |
| 314 | li t9, 0 | 314 | li t9, 0 |
| 315 | 315 | ||
| 316 | /* Find the number of VPEs present in the core */ | 316 | /* Find the number of VPEs present in the core */ |
| @@ -334,13 +334,13 @@ LEAF(mips_cps_boot_vpes) | |||
| 334 | 1: /* Calculate a pointer to this VPEs struct vpe_boot_config */ | 334 | 1: /* Calculate a pointer to this VPEs struct vpe_boot_config */ |
| 335 | li t1, VPEBOOTCFG_SIZE | 335 | li t1, VPEBOOTCFG_SIZE |
| 336 | mul v0, t9, t1 | 336 | mul v0, t9, t1 |
| 337 | lw t7, COREBOOTCFG_VPECONFIG(t0) | 337 | lw ta3, COREBOOTCFG_VPECONFIG(t0) |
| 338 | addu v0, v0, t7 | 338 | addu v0, v0, ta3 |
| 339 | 339 | ||
| 340 | #ifdef CONFIG_MIPS_MT | 340 | #ifdef CONFIG_MIPS_MT |
| 341 | 341 | ||
| 342 | /* If the core doesn't support MT then return */ | 342 | /* If the core doesn't support MT then return */ |
| 343 | bnez t6, 1f | 343 | bnez ta2, 1f |
| 344 | nop | 344 | nop |
| 345 | jr ra | 345 | jr ra |
| 346 | nop | 346 | nop |
| @@ -360,12 +360,12 @@ LEAF(mips_cps_boot_vpes) | |||
| 360 | ehb | 360 | ehb |
| 361 | 361 | ||
| 362 | /* Loop through each VPE */ | 362 | /* Loop through each VPE */ |
| 363 | lw t6, COREBOOTCFG_VPEMASK(t0) | 363 | lw ta2, COREBOOTCFG_VPEMASK(t0) |
| 364 | move t8, t6 | 364 | move t8, ta2 |
| 365 | li t5, 0 | 365 | li ta1, 0 |
| 366 | 366 | ||
| 367 | /* Check whether the VPE should be running. If not, skip it */ | 367 | /* Check whether the VPE should be running. If not, skip it */ |
| 368 | 1: andi t0, t6, 1 | 368 | 1: andi t0, ta2, 1 |
| 369 | beqz t0, 2f | 369 | beqz t0, 2f |
| 370 | nop | 370 | nop |
| 371 | 371 | ||
| @@ -373,7 +373,7 @@ LEAF(mips_cps_boot_vpes) | |||
| 373 | mfc0 t0, CP0_VPECONTROL | 373 | mfc0 t0, CP0_VPECONTROL |
| 374 | ori t0, t0, VPECONTROL_TARGTC | 374 | ori t0, t0, VPECONTROL_TARGTC |
| 375 | xori t0, t0, VPECONTROL_TARGTC | 375 | xori t0, t0, VPECONTROL_TARGTC |
| 376 | or t0, t0, t5 | 376 | or t0, t0, ta1 |
| 377 | mtc0 t0, CP0_VPECONTROL | 377 | mtc0 t0, CP0_VPECONTROL |
| 378 | ehb | 378 | ehb |
| 379 | 379 | ||
| @@ -384,8 +384,8 @@ LEAF(mips_cps_boot_vpes) | |||
| 384 | 384 | ||
| 385 | /* Calculate a pointer to the VPEs struct vpe_boot_config */ | 385 | /* Calculate a pointer to the VPEs struct vpe_boot_config */ |
| 386 | li t0, VPEBOOTCFG_SIZE | 386 | li t0, VPEBOOTCFG_SIZE |
| 387 | mul t0, t0, t5 | 387 | mul t0, t0, ta1 |
| 388 | addu t0, t0, t7 | 388 | addu t0, t0, ta3 |
| 389 | 389 | ||
| 390 | /* Set the TC restart PC */ | 390 | /* Set the TC restart PC */ |
| 391 | lw t1, VPEBOOTCFG_PC(t0) | 391 | lw t1, VPEBOOTCFG_PC(t0) |
| @@ -423,9 +423,9 @@ LEAF(mips_cps_boot_vpes) | |||
| 423 | mttc0 t0, CP0_VPECONF0 | 423 | mttc0 t0, CP0_VPECONF0 |
| 424 | 424 | ||
| 425 | /* Next VPE */ | 425 | /* Next VPE */ |
| 426 | 2: srl t6, t6, 1 | 426 | 2: srl ta2, ta2, 1 |
| 427 | addiu t5, t5, 1 | 427 | addiu ta1, ta1, 1 |
| 428 | bnez t6, 1b | 428 | bnez ta2, 1b |
| 429 | nop | 429 | nop |
| 430 | 430 | ||
| 431 | /* Leave VPE configuration state */ | 431 | /* Leave VPE configuration state */ |
