thread.h 451 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _EVENLESS_ARM64_ASM_THREAD_H
#define _EVENLESS_ARM64_ASM_THREAD_H

#define xnarch_fault_pf_p(__trapnr)	((__trapnr) == ARM64_TRAP_ACCESS)
#define xnarch_fault_bp_p(__trapnr)	((current->ptrace & PT_PTRACED) && \
					 (__trapnr == ARM64_TRAP_DEBUG || \
					  (__trapnr) == ARM64_TRAP_UNDI))

#define xnarch_fault_notify(__trapnr) (!xnarch_fault_bp_p(__trapnr))

#endif /* !_EVENLESS_ARM64_ASM_THREAD_H */