signal.h 650 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ARM64_ASM_SIGNAL_H
  3. #define __ARM64_ASM_SIGNAL_H
  4. #include <asm/memory.h>
  5. #include <uapi/asm/signal.h>
  6. #include <uapi/asm/siginfo.h>
  7. static inline void __user *arch_untagged_si_addr(void __user *addr,
  8. unsigned long sig,
  9. unsigned long si_code)
  10. {
  11. /*
  12. * For historical reasons, all bits of the fault address are exposed as
  13. * address bits for watchpoint exceptions. New architectures should
  14. * handle the tag bits consistently.
  15. */
  16. if (sig == SIGTRAP && si_code == TRAP_BRKPT)
  17. return addr;
  18. return untagged_addr(addr);
  19. }
  20. #define arch_untagged_si_addr arch_untagged_si_addr
  21. #endif