]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: entry: save Accumulator register pair (r58:59) if present
authorVineet Gupta <vgupta@synopsys.com>
Thu, 20 Apr 2017 22:36:51 +0000 (15:36 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 20 Apr 2017 22:37:49 +0000 (15:37 -0700)
commitd1bf9dfa96136e9fe391ea181cdf9d3965547bbf
tree5db65bfac17a6dbbff36d055b0292e9addeb8d90
parente772a1d285afa16f770254ccd60761af4719a5b7
ARCv2: entry: save Accumulator register pair (r58:59) if present

Accumulator is present in configs with FPU and/or DSP MPY (mpy > 6)

Instead of doing this in pt_regs (and thus every kernel entry/exit),
this could have been done in context switch (and for user task only) as
currently kernel doesn't clobber these registers for its own accord.
However we will soon start using 64-bit multiply instructions for kernel
which can clobber these. Also gcc folks also plan to start using these
as GPRs, hence better to always save/restore them

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/Kconfig
arch/arc/include/asm/entry-arcv2.h
arch/arc/include/asm/ptrace.h
arch/arc/kernel/setup.c