|
@@ -52,32 +52,6 @@
|
|
|
.set pop
|
|
.set pop
|
|
|
1:
|
|
1:
|
|
|
|
|
|
|
|
- /* check if we need to save COP2 registers */
|
|
|
|
|
- LONG_L t0, ST_OFF(t3)
|
|
|
|
|
- bbit0 t0, 30, 1f
|
|
|
|
|
-
|
|
|
|
|
- /* Disable COP2 in the stored process state */
|
|
|
|
|
- li t1, ST0_CU2
|
|
|
|
|
- xor t0, t1
|
|
|
|
|
- LONG_S t0, ST_OFF(t3)
|
|
|
|
|
-
|
|
|
|
|
- /* Enable COP2 so we can save it */
|
|
|
|
|
- mfc0 t0, CP0_STATUS
|
|
|
|
|
- or t0, t1
|
|
|
|
|
- mtc0 t0, CP0_STATUS
|
|
|
|
|
-
|
|
|
|
|
- /* Save COP2 */
|
|
|
|
|
- daddu a0, THREAD_CP2
|
|
|
|
|
- jal octeon_cop2_save
|
|
|
|
|
- dsubu a0, THREAD_CP2
|
|
|
|
|
-
|
|
|
|
|
- /* Disable COP2 now that we are done */
|
|
|
|
|
- mfc0 t0, CP0_STATUS
|
|
|
|
|
- li t1, ST0_CU2
|
|
|
|
|
- xor t0, t1
|
|
|
|
|
- mtc0 t0, CP0_STATUS
|
|
|
|
|
-
|
|
|
|
|
-1:
|
|
|
|
|
#if CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE > 0
|
|
#if CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE > 0
|
|
|
/* Check if we need to store CVMSEG state */
|
|
/* Check if we need to store CVMSEG state */
|
|
|
dmfc0 t0, $11,7 /* CvmMemCtl */
|
|
dmfc0 t0, $11,7 /* CvmMemCtl */
|