mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 01:28:04 +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: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20250314071013.1575167-40-thuth@redhat.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
24 lines
504 B
C
24 lines
504 B
C
/*
|
|
* include/asm-xtensa/signal.h
|
|
*
|
|
* Swiped from SH.
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2001 - 2005 Tensilica Inc.
|
|
*/
|
|
#ifndef _XTENSA_SIGNAL_H
|
|
#define _XTENSA_SIGNAL_H
|
|
|
|
#include <uapi/asm/signal.h>
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#define __ARCH_HAS_SA_RESTORER
|
|
|
|
#include <asm/sigcontext.h>
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
#endif /* _XTENSA_SIGNAL_H */
|