// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2005-2017 Andes Technology Corporation #ifndef __ASM_NDS32_PTRACE_H #define __ASM_NDS32_PTRACE_H #include <uapi/asm/ptrace.h> /* * If pt_regs.syscallno == NO_SYSCALL, then the thread is not executing * a syscall -- i.e., its most recent entry into the kernel from * userspace was not via syscall, or otherwise a tracer cancelled the * syscall. * * This must have the value -1, for ABI compatibility with ptrace etc. */ #define NO_SYSCALL (-1) #ifndef __ASSEMBLY__ #include <linux/types.h> struct pt_regs { union { struct user_pt_regs user_regs; struct { long uregs[26]; long fp; long gp; long lp; long sp; long ipc; #if defined(CONFIG_HWZOL) long lb; long le; long lc; #else long dummy[3]; #endif long syscallno; }; }; long orig_r0; long ir0; long ipsw; long pipsw; long pipc; long pp0; long pp1; long fucop_ctl; long osp; };
static inline bool in_syscall(struct pt_regs const *regs) { return regs->syscallno != NO_SYSCALL; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Greentime Hu | 20 | 100.00% | 1 | 100.00% |
Total | 20 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Greentime Hu | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Greentime Hu | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Greentime Hu | 232 | 100.00% | 1 | 100.00% |
Total | 232 | 100.00% | 1 | 100.00% |