mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-14 21:38:46 +02:00
e6d8afd2ca
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: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
22 lines
606 B
C
22 lines
606 B
C
/*
|
|
* Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
|
|
* Copyright (C) 2004 Microtronix Datacom Ltd.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef _ASM_NIOS2_TRAPS_H
|
|
#define _ASM_NIOS2_TRAPS_H
|
|
|
|
#define TRAP_ID_SYSCALL 0
|
|
|
|
#ifndef __ASSEMBLER__
|
|
void _exception(int signo, struct pt_regs *regs, int code, unsigned long addr);
|
|
void do_page_fault(struct pt_regs *regs, unsigned long cause,
|
|
unsigned long address);
|
|
#endif
|
|
|
|
#endif /* _ASM_NIOS2_TRAPS_H */
|