mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Ralf Baechle
parent
d6e41525e3
commit
6b3a287e63
@@ -205,6 +205,8 @@ struct octeon_cop2_state {
|
||||
unsigned long cop2_gfm_poly;
|
||||
/* DMFC2 rt, 0x025A; DMFC2 rt, 0x025B - Pass2 */
|
||||
unsigned long cop2_gfm_result[2];
|
||||
/* DMFC2 rt, 0x24F, DMFC2 rt, 0x50, OCTEON III */
|
||||
unsigned long cop2_sha3[2];
|
||||
};
|
||||
#define COP2_INIT \
|
||||
.cp2 = {0,},
|
||||
|
||||
Reference in New Issue
Block a user