mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 18:49:41 +00:00

While the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now. This is a completely mechanical patch (done with a simple "sed -i" statement). Cc: linux-snps-arc@lists.infradead.org Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Vineet Gupta <vgupta@kernel.org>
30 lines
798 B
C
30 lines
798 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 __ASSEMBLER__
|
|
|
|
/*
|
|
* DSP-related saved registers - need to be saved only when you are
|
|
* scheduled out.
|
|
* structure fields name must correspond to aux register definitions 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;
|
|
#ifdef CONFIG_ARC_DSP_AGU_USERSPACE
|
|
unsigned long AGU_AP0, AGU_AP1, AGU_AP2, AGU_AP3;
|
|
unsigned long AGU_OS0, AGU_OS1;
|
|
unsigned long AGU_MOD0, AGU_MOD1, AGU_MOD2, AGU_MOD3;
|
|
#endif
|
|
};
|
|
|
|
#endif /* !__ASSEMBLER__ */
|
|
|
|
#endif /* __ASM_ARC_DSP_H */
|