xref: /openbmc/linux/arch/arc/include/uapi/asm/signal.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2f4a8dSVineet Gupta /*
38c2f4a8dSVineet Gupta  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
48c2f4a8dSVineet Gupta  *
58c2f4a8dSVineet Gupta  * This program is free software; you can redistribute it and/or modify
68c2f4a8dSVineet Gupta  * it under the terms of the GNU General Public License version 2 as
78c2f4a8dSVineet Gupta  * published by the Free Software Foundation.
88c2f4a8dSVineet Gupta  *
98c2f4a8dSVineet Gupta  * Amit Bhor, Sameer Dhavale: Codito Technologies 2004
108c2f4a8dSVineet Gupta  */
118c2f4a8dSVineet Gupta 
128c2f4a8dSVineet Gupta #ifndef _ASM_ARC_SIGNAL_H
138c2f4a8dSVineet Gupta #define _ASM_ARC_SIGNAL_H
148c2f4a8dSVineet Gupta 
158c2f4a8dSVineet Gupta /*
168c2f4a8dSVineet Gupta  * This is much needed for ARC sigreturn optimization.
178c2f4a8dSVineet Gupta  * This allows uClibc to piggback the addr of a sigreturn stub in sigaction,
188c2f4a8dSVineet Gupta  * which allows sigreturn based re-entry into kernel after handling signal.
198c2f4a8dSVineet Gupta  * W/o this kernel needs to "synthesize" the sigreturn trampoline on user
208c2f4a8dSVineet Gupta  * mode stack which in turn forces the following:
218c2f4a8dSVineet Gupta  * -TLB Flush (after making the stack page executable)
228c2f4a8dSVineet Gupta  * -Cache line Flush (to make I/D Cache lines coherent)
238c2f4a8dSVineet Gupta  */
248c2f4a8dSVineet Gupta #define SA_RESTORER	0x04000000
258c2f4a8dSVineet Gupta 
268c2f4a8dSVineet Gupta #include <asm-generic/signal.h>
278c2f4a8dSVineet Gupta 
288c2f4a8dSVineet Gupta #endif /* _ASM_ARC_SIGNAL_H */
29