MIPS: Save/restore MSA context around signals
This patch extends sigcontext in order to hold the most significant 64 bits of each vector register in addition to the MSA control & status register. The least significant 64 bits are already saved as the scalar FP context. This makes things a little awkward since the least & most significant 64 bits of each vector register are not contiguous in memory. Thus the copy_u & insert instructions are used to transfer the values of the most significant 64 bits via GP registers. Signed-off-by:Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6533/ Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
Showing
- arch/mips/include/asm/sigcontext.h 2 additions, 0 deletionsarch/mips/include/asm/sigcontext.h
- arch/mips/include/uapi/asm/sigcontext.h 8 additions, 0 deletionsarch/mips/include/uapi/asm/sigcontext.h
- arch/mips/kernel/asm-offsets.c 3 additions, 0 deletionsarch/mips/kernel/asm-offsets.c
- arch/mips/kernel/r4k_fpu.S 213 additions, 0 deletionsarch/mips/kernel/r4k_fpu.S
- arch/mips/kernel/signal.c 65 additions, 8 deletionsarch/mips/kernel/signal.c
- arch/mips/kernel/signal32.c 66 additions, 8 deletionsarch/mips/kernel/signal32.c
Loading
Please register or sign in to comment