drm: add modifiers for MediaTek tiled formats
[drm/drm-misc.git] / arch / arm64 / include / asm / signal.h
blobef449f5f4ba80b1c98179aef2057b636e411f72d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ARM64_ASM_SIGNAL_H
3 #define __ARM64_ASM_SIGNAL_H
5 #include <asm/memory.h>
6 #include <uapi/asm/signal.h>
7 #include <uapi/asm/siginfo.h>
9 static inline void __user *arch_untagged_si_addr(void __user *addr,
10 unsigned long sig,
11 unsigned long si_code)
14 * For historical reasons, all bits of the fault address are exposed as
15 * address bits for watchpoint exceptions. New architectures should
16 * handle the tag bits consistently.
18 if (sig == SIGTRAP && si_code == TRAP_BRKPT)
19 return addr;
21 return untagged_addr(addr);
23 #define arch_untagged_si_addr arch_untagged_si_addr
25 #endif