/
usr
/
src
/
linux-headers-5.15.0-181
/
arch
/
csky
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-181/arch/csky/include/asm
mkdir
upload
Name
Size
Mode
Actions
vdso/
-
0755
rm
addrspace.h
231
0644
edit
dl
rm
asid.h
2440
0644
edit
dl
rm
barrier.h
2533
0644
edit
dl
rm
bitops.h
1363
0644
edit
dl
rm
bug.h
565
0644
edit
dl
rm
cache.h
861
0644
edit
dl
rm
cacheflush.h
193
0644
edit
dl
rm
checksum.h
944
0644
edit
dl
rm
clocksource.h
159
0644
edit
dl
rm
cmpxchg.h
1824
0644
edit
dl
rm
elf.h
2723
0644
edit
dl
rm
fixmap.h
747
0644
edit
dl
rm
ftrace.h
558
0644
edit
dl
rm
futex.h
2605
0644
edit
dl
rm
highmem.h
1114
0644
edit
dl
rm
io.h
1384
0644
edit
dl
rm
irqflags.h
1132
0644
edit
dl
rm
irq_work.h
208
0644
edit
dl
rm
Kbuild
199
0644
edit
dl
rm
kprobes.h
1158
0644
edit
dl
rm
memory.h
657
0644
edit
dl
rm
mmu.h
216
0644
edit
dl
rm
mmu_context.h
959
0644
edit
dl
rm
page.h
2757
0644
edit
dl
rm
pci.h
680
0644
edit
dl
rm
perf_event.h
359
0644
edit
dl
rm
pgalloc.h
1657
0644
edit
dl
rm
pgtable.h
6985
0644
edit
dl
rm
probes.h
554
0644
edit
dl
rm
processor.h
2525
0644
edit
dl
rm
ptrace.h
2476
0644
edit
dl
rm
reg_ops.h
382
0644
edit
dl
rm
seccomp.h
283
0644
edit
dl
rm
segment.h
187
0644
edit
dl
rm
shmparam.h
197
0644
edit
dl
rm
smp.h
626
0644
edit
dl
rm
spinlock.h
1892
0644
edit
dl
rm
spinlock_types.h
504
0644
edit
dl
rm
stackprotector.h
705
0644
edit
dl
rm
string.h
233
0644
edit
dl
rm
switch_to.h
923
0644
edit
dl
rm
syscall.h
1563
0644
edit
dl
rm
syscalls.h
351
0644
edit
dl
rm
tcm.h
665
0644
edit
dl
rm
thread_info.h
2866
0644
edit
dl
rm
tlb.h
508
0644
edit
dl
rm
tlbflush.h
824
0644
edit
dl
rm
traps.h
796
0644
edit
dl
rm
uaccess.h
5271
0644
edit
dl
rm
unistd.h
106
0644
edit
dl
rm
uprobes.h
669
0644
edit
dl
rm
vdso.h
784
0644
edit
dl
rm
vmalloc.h
90
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/arch/csky/include/asm/ptrace.h
(2476B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CSKY_PTRACE_H #define __ASM_CSKY_PTRACE_H #include <uapi/asm/ptrace.h> #include <asm/traps.h> #include <linux/types.h> #include <linux/compiler.h> #ifndef __ASSEMBLY__ #define PS_S 0x80000000 /* Supervisor Mode */ #define USR_BKPT 0x1464 #define arch_has_single_step() (1) #define current_pt_regs() \ ({ (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1; }) #define user_stack_pointer(regs) ((regs)->usp) #define user_mode(regs) (!((regs)->sr & PS_S)) #define instruction_pointer(regs) ((regs)->pc) #define profile_pc(regs) instruction_pointer(regs) #define trap_no(regs) ((regs->sr >> 16) & 0xff) static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { regs->pc = val; } #if defined(__CSKYABIV2__) #define MAX_REG_OFFSET offsetof(struct pt_regs, dcsr) #else #define MAX_REG_OFFSET offsetof(struct pt_regs, regs[9]) #endif static inline bool in_syscall(struct pt_regs const *regs) { return ((regs->sr >> 16) & 0xff) == VEC_TRAP0; } static inline void forget_syscall(struct pt_regs *regs) { regs->sr &= ~(0xff << 16); } static inline unsigned long regs_return_value(struct pt_regs *regs) { return regs->a0; } static inline void regs_set_return_value(struct pt_regs *regs, unsigned long val) { regs->a0 = val; } /* Valid only for Kernel mode traps. */ static inline unsigned long kernel_stack_pointer(struct pt_regs *regs) { return regs->usp; } static inline unsigned long frame_pointer(struct pt_regs *regs) { return regs->regs[4]; } static inline void frame_pointer_set(struct pt_regs *regs, unsigned long val) { regs->regs[4] = val; } extern int regs_query_register_offset(const char *name); extern unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n); /* * regs_get_register() - get register value from its offset * @regs: pt_regs from which register value is gotten * @offset: offset of the register. * * regs_get_register returns the value of a register whose offset from @regs. * The @offset is the offset of the register in struct pt_regs. * If @offset is bigger than MAX_REG_OFFSET, this returns 0. */ static inline unsigned long regs_get_register(struct pt_regs *regs, unsigned int offset) { if (unlikely(offset > MAX_REG_OFFSET)) return 0; return *(unsigned long *)((unsigned long)regs + offset); } #endif /* __ASSEMBLY__ */ #endif /* __ASM_CSKY_PTRACE_H */
Save
cmd:
run