]> 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)
commit2dc1b00a6fccaf96fd6bdec8d98914733a350ea3
treefe0763b4b8c5d8eafde7afa9699aa7cbcebd5d08
parentf7f133b868d8c2e5e98b8334e8ba4ef63f77b661
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