diff options
author | David Daney <david.daney@cavium.com> | 2015-01-15 08:11:07 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-02-20 09:29:08 -0500 |
commit | 6b3a287e6351b00df6624b41c160e1c0817f40e2 (patch) | |
tree | 6315e36070f0d3ab2562382ffa624d1cb02d9e5b /arch/mips/include/asm/processor.h | |
parent | d6e41525e356a8dc4b9ad6249a644d4123240881 (diff) |
MIPS: OCTEON: Save and restore CP2 SHA3 state
Allocate new save space, and then save/restore the registers if
OCTEON III.
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@auriga.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8935/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/processor.h')
-rw-r--r-- | arch/mips/include/asm/processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h index be903acf4fe4..b5dcbee01fd7 100644 --- a/arch/mips/include/asm/processor.h +++ b/arch/mips/include/asm/processor.h | |||
@@ -205,6 +205,8 @@ struct octeon_cop2_state { | |||
205 | unsigned long cop2_gfm_poly; | 205 | unsigned long cop2_gfm_poly; |
206 | /* DMFC2 rt, 0x025A; DMFC2 rt, 0x025B - Pass2 */ | 206 | /* DMFC2 rt, 0x025A; DMFC2 rt, 0x025B - Pass2 */ |
207 | unsigned long cop2_gfm_result[2]; | 207 | unsigned long cop2_gfm_result[2]; |
208 | /* DMFC2 rt, 0x24F, DMFC2 rt, 0x50, OCTEON III */ | ||
209 | unsigned long cop2_sha3[2]; | ||
208 | }; | 210 | }; |
209 | #define COP2_INIT \ | 211 | #define COP2_INIT \ |
210 | .cp2 = {0,}, | 212 | .cp2 = {0,}, |