diff options
-rw-r--r-- | arch/mips/kernel/octeon_switch.S | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/mips/kernel/octeon_switch.S b/arch/mips/kernel/octeon_switch.S index f0a699d73627..423ae83af1fb 100644 --- a/arch/mips/kernel/octeon_switch.S +++ b/arch/mips/kernel/octeon_switch.S | |||
@@ -52,32 +52,6 @@ | |||
52 | .set pop | 52 | .set pop |
53 | 1: | 53 | 1: |
54 | 54 | ||
55 | /* check if we need to save COP2 registers */ | ||
56 | LONG_L t0, ST_OFF(t3) | ||
57 | bbit0 t0, 30, 1f | ||
58 | |||
59 | /* Disable COP2 in the stored process state */ | ||
60 | li t1, ST0_CU2 | ||
61 | xor t0, t1 | ||
62 | LONG_S t0, ST_OFF(t3) | ||
63 | |||
64 | /* Enable COP2 so we can save it */ | ||
65 | mfc0 t0, CP0_STATUS | ||
66 | or t0, t1 | ||
67 | mtc0 t0, CP0_STATUS | ||
68 | |||
69 | /* Save COP2 */ | ||
70 | daddu a0, THREAD_CP2 | ||
71 | jal octeon_cop2_save | ||
72 | dsubu a0, THREAD_CP2 | ||
73 | |||
74 | /* Disable COP2 now that we are done */ | ||
75 | mfc0 t0, CP0_STATUS | ||
76 | li t1, ST0_CU2 | ||
77 | xor t0, t1 | ||
78 | mtc0 t0, CP0_STATUS | ||
79 | |||
80 | 1: | ||
81 | #if CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE > 0 | 55 | #if CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE > 0 |
82 | /* Check if we need to store CVMSEG state */ | 56 | /* Check if we need to store CVMSEG state */ |
83 | dmfc0 t0, $11,7 /* CvmMemCtl */ | 57 | dmfc0 t0, $11,7 /* CvmMemCtl */ |