/usr/src/linux-headers-5.15.0-181/arch/nds32/include/asm
NameSizeModeActions
assembler.h5980644editdlrm
barrier.h4310644editdlrm
bitfield.h471270644editdlrm
cache.h2760644editdlrm
cacheflush.h19860644editdlrm
cache_info.h3150644editdlrm
current.h3040644editdlrm
delay.h9380644editdlrm
elf.h60210644editdlrm
fixmap.h8310644editdlrm
fpu.h31950644editdlrm
fpuemu.h12720644editdlrm
ftrace.h11610644editdlrm
futex.h24830644editdlrm
highmem.h16240644editdlrm
io.h24740644editdlrm
irqflags.h8480644editdlrm
Kbuild1940644editdlrm
l2_cache.h47910644editdlrm
linkage.h2640644editdlrm
memory.h27130644editdlrm
mmu.h2130644editdlrm
mmu_context.h14090644editdlrm
nds32.h20180644editdlrm
nds32_fpu_inst.h25100644editdlrm
page.h15910644editdlrm
perf_event.h4450644editdlrm
pgalloc.h14190644editdlrm
pgtable.h116760644editdlrm
pmu.h133500644editdlrm
proc-fns.h16680644editdlrm
processor.h24050644editdlrm
ptrace.h16860644editdlrm
sfp-machine.h44630644editdlrm
shmparam.h4620644editdlrm
stacktrace.h8840644editdlrm
string.h4710644editdlrm
suspend.h2580644editdlrm
swab.h8100644editdlrm
syscall.h54960644editdlrm
syscalls.h5100644editdlrm
thread_info.h23900644editdlrm
tlb.h2490644editdlrm
tlbflush.h11440644editdlrm
uaccess.h82720644editdlrm
unistd.h1560644editdlrm
vdso.h4290644editdlrm
vdso_datapage.h11040644editdlrm
vdso_timer_info.h3570644editdlrm
vermagic.h2140644editdlrm
vmalloc.h930644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/arch/nds32/include/asm/ptrace.h (1686B)
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2005-2017 Andes Technology Corporation #ifndef __ASM_NDS32_PTRACE_H #define __ASM_NDS32_PTRACE_H #include /* * 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 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; } static inline void forget_syscall(struct pt_regs *regs) { regs->syscallno = NO_SYSCALL; } static inline unsigned long regs_return_value(struct pt_regs *regs) { return regs->uregs[0]; } extern void show_regs(struct pt_regs *); /* Avoid circular header include via sched.h */ struct task_struct; #define arch_has_single_step() (1) #define user_mode(regs) (((regs)->ipsw & PSW_mskPOM) == 0) #define interrupts_enabled(regs) (!!((regs)->ipsw & PSW_mskGIE)) #define user_stack_pointer(regs) ((regs)->sp) #define instruction_pointer(regs) ((regs)->ipc) #define profile_pc(regs) instruction_pointer(regs) #endif /* __ASSEMBLY__ */ #endif