18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __SPARC_SIGNAL_H 38c2ecf20Sopenharmony_ci#define __SPARC_SIGNAL_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 68c2ecf20Sopenharmony_ci#include <linux/personality.h> 78c2ecf20Sopenharmony_ci#include <linux/types.h> 88c2ecf20Sopenharmony_ci#endif 98c2ecf20Sopenharmony_ci#include <uapi/asm/signal.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 128c2ecf20Sopenharmony_ci/* 138c2ecf20Sopenharmony_ci * DJHR 148c2ecf20Sopenharmony_ci * SA_STATIC_ALLOC is used for the sparc32 system to indicate that this 158c2ecf20Sopenharmony_ci * interrupt handler's irq structure should be statically allocated 168c2ecf20Sopenharmony_ci * by the request_irq routine. 178c2ecf20Sopenharmony_ci * The alternative is that arch/sparc/kernel/irq.c has carnal knowledge 188c2ecf20Sopenharmony_ci * of interrupt usage and that sucks. Also without a flag like this 198c2ecf20Sopenharmony_ci * it may be possible for the free_irq routine to attempt to free 208c2ecf20Sopenharmony_ci * statically allocated data.. which is NOT GOOD. 218c2ecf20Sopenharmony_ci * 228c2ecf20Sopenharmony_ci */ 238c2ecf20Sopenharmony_ci#define SA_STATIC_ALLOC 0x8000 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define __ARCH_HAS_KA_RESTORER 268c2ecf20Sopenharmony_ci#define __ARCH_HAS_SA_RESTORER 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /* !(__ASSEMBLY__) */ 298c2ecf20Sopenharmony_ci#endif /* !(__SPARC_SIGNAL_H) */ 30