MIPS: Move cop2 save/restore to switch_to()
Move the common code for saving and restoring platform specific COP2 registers to switch_to(). This will make supporting new platforms (like Netlogic XLP) easier. The platform specific COP2 definitions are to be specified in asm/processor.h and in asm/cop2.h. 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/5411/ Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
Showing
- arch/mips/include/asm/cop2.h 19 additions, 0 deletionsarch/mips/include/asm/cop2.h
- arch/mips/include/asm/processor.h 7 additions, 11 deletionsarch/mips/include/asm/processor.h
- arch/mips/include/asm/switch_to.h 18 additions, 1 deletionarch/mips/include/asm/switch_to.h
- arch/mips/kernel/octeon_switch.S 0 additions, 27 deletionsarch/mips/kernel/octeon_switch.S
Loading
Please register or sign in to comment