mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-26 06:16:25 +00:00
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>
25 lines
614 B
C
25 lines
614 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2020 Synopsys, Inc. (www.synopsys.com)
|
|
*
|
|
* Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
|
|
*/
|
|
#ifndef __ASM_ARC_DSP_H
|
|
#define __ASM_ARC_DSP_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
/*
|
|
* DSP-related saved registers - need to be saved only when you are
|
|
* scheduled out.
|
|
* structure fields name must correspond to aux register defenitions for
|
|
* automatic offset calculation in DSP_AUX_SAVE_RESTORE macros
|
|
*/
|
|
struct dsp_callee_regs {
|
|
unsigned long ACC0_GLO, ACC0_GHI, DSP_BFLY0, DSP_FFT_CTRL;
|
|
};
|
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
|
|
#endif /* __ASM_ARC_DSP_H */
|