]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Don't assume 64-bit FP registers for context switch
authorPaul Burton <paul.burton@imgtec.com>
Mon, 27 Jan 2014 15:23:08 +0000 (15:23 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:10 +0000 (23:09 +0100)
commit057e68f2e6faf1625516818cef4ecec3a2caa422
treefe0763b4b8c5d8eafde7afa9699aa7cbcebd5d08
parent8ba93267d1d1eba9c5e67c14a7d47f5cd47586a4
MIPS: Don't assume 64-bit FP registers for context switch

When saving or restoring scalar FP context we want to access the least
significant 64 bits of each FP register. When the FP registers are 64
bits wide that is trivially the start of the registers value in memory.
However when the FP registers are wider this equivalence will no longer
be true for big endian systems. Define a new set of offset macros for
the least significant 64 bits of each saved FP register within thread
context, and make use of them when saving and restoring scalar FP
context.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6428/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/asmmacro-32.h
arch/mips/include/asm/asmmacro.h
arch/mips/kernel/asm-offsets.c