ARC: add support for DSP-enabled userspace applications
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Thu, 5 Mar 2020 20:02:51 +0000 (23:02 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 16 Mar 2020 17:30:49 +0000 (10:30 -0700)
commit7321e2ea0d6aece516a9c0827028ecda2ccaeae9
treed53d77373a555448b2ef633c04e84dc9f3c6cc38
parent4827d0cf744e7e9cc73f10e1f4eaca904a3868c1
ARC: add support for DSP-enabled userspace applications

To be able to run DSP-enabled userspace applications we need to
save and restore following DSP-related registers:
At IRQ/exception entry/exit:
 * DSP_CTRL (save it and reset to value suitable for kernel)
 * ACC0_LO, ACC0_HI (we already save them as r58, r59 pair)
At context switch:
 * ACC0_GLO, ACC0_GHI
 * DSP_BFLY0, DSP_FFT_CTRL

Reviewed-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/Kconfig
arch/arc/include/asm/arcregs.h
arch/arc/include/asm/dsp-impl.h
arch/arc/include/asm/dsp.h [new file with mode: 0644]
arch/arc/include/asm/entry-arcv2.h
arch/arc/include/asm/processor.h
arch/arc/include/asm/ptrace.h
arch/arc/include/asm/switch_to.h
arch/arc/kernel/asm-offsets.c