diff options
Diffstat (limited to 'arch/mips/include/asm/cop2.h')
-rw-r--r-- | arch/mips/include/asm/cop2.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cop2.h b/arch/mips/include/asm/cop2.h index 3532e2c5f098..b17f38ee1ed4 100644 --- a/arch/mips/include/asm/cop2.h +++ b/arch/mips/include/asm/cop2.h | |||
@@ -11,6 +11,25 @@ | |||
11 | 11 | ||
12 | #include <linux/notifier.h> | 12 | #include <linux/notifier.h> |
13 | 13 | ||
14 | #if defined(CONFIG_CPU_CAVIUM_OCTEON) | ||
15 | |||
16 | extern void octeon_cop2_save(struct octeon_cop2_state *); | ||
17 | extern void octeon_cop2_restore(struct octeon_cop2_state *); | ||
18 | |||
19 | #define cop2_save(r) octeon_cop2_save(r) | ||
20 | #define cop2_restore(r) octeon_cop2_restore(r) | ||
21 | |||
22 | #define cop2_present 1 | ||
23 | #define cop2_lazy_restore 1 | ||
24 | |||
25 | #else | ||
26 | |||
27 | #define cop2_present 0 | ||
28 | #define cop2_lazy_restore 0 | ||
29 | #define cop2_save(r) | ||
30 | #define cop2_restore(r) | ||
31 | #endif | ||
32 | |||
14 | enum cu2_ops { | 33 | enum cu2_ops { |
15 | CU2_EXCEPTION, | 34 | CU2_EXCEPTION, |
16 | CU2_LWC2_OP, | 35 | CU2_LWC2_OP, |