signal.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1995, 96, 97, 98, 99, 2003 by Ralf Baechle
  7. * Copyright (C) 1999 Silicon Graphics, Inc.
  8. */
  9. #ifndef _ASM_SIGNAL_H
  10. #define _ASM_SIGNAL_H
  11. #include <uapi/asm/signal.h>
  12. #ifdef CONFIG_MIPS32_O32
  13. extern struct mips_abi mips_abi_32;
  14. #define sig_uses_siginfo(ka, abi) \
  15. ((abi != &mips_abi_32) ? 1 : \
  16. ((ka)->sa.sa_flags & SA_SIGINFO))
  17. #else
  18. #define sig_uses_siginfo(ka, abi) \
  19. (IS_ENABLED(CONFIG_64BIT) ? 1 : \
  20. (IS_ENABLED(CONFIG_TRAD_SIGNALS) ? \
  21. ((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
  22. #endif
  23. #include <asm/sigcontext.h>
  24. #include <asm/siginfo.h>
  25. #define __ARCH_HAS_IRIX_SIGACTION
  26. extern int protected_save_fp_context(void __user *sc);
  27. extern int protected_restore_fp_context(void __user *sc);
  28. #endif /* _ASM_SIGNAL_H */