MIPS: Netlogic: COP2 save/restore code
authorJayachandran C <jchandra@broadcom.com>
Mon, 10 Jun 2013 06:30:04 +0000 (06:30 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jun 2013 15:46:41 +0000 (17:46 +0200)
commit5649d37c2b23ad6545709c976b9abbfa8d5f4e11
treea9fda320023769a6f7991487fb6ff1604a8560c2
parent64f6ebe63914835ad5cd5bc4c490f3deaeac2511
MIPS: Netlogic: COP2 save/restore code

Add COP2 register state structure and functions for Netlogic XLP. The
RX and TX buffers and status registers are to be saved. Since the
registers are 64-bit, do the implementation in inline assembly which
works on both 32-bit and 64-bit kernels.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Cc: ddaney.cavm@gmail.com
Patchwork: https://patchwork.linux-mips.org/patch/5413/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cop2.h
arch/mips/include/asm/processor.h
arch/mips/netlogic/xlp/Makefile
arch/mips/netlogic/xlp/cop2-ex.c [new file with mode: 0644]