/usr/src/linux-headers-5.15.0-181/arch/xtensa/include/asm
NameSizeModeActions
asm-offsets.h350644editdlrm
asm-uaccess.h41800644editdlrm
asmmacro.h47630644editdlrm
atomic.h73010644editdlrm
barrier.h5940644editdlrm
bitops.h53980644editdlrm
bootparam.h14020644editdlrm
cache.h11140644editdlrm
cacheasm.h38560644editdlrm
cacheflush.h59680644editdlrm
checksum.h58930644editdlrm
cmpxchg.h56840644editdlrm
coprocessor.h46230644editdlrm
core.h8300644editdlrm
current.h6790644editdlrm
delay.h16680644editdlrm
dma.h18300644editdlrm
elf.h51150644editdlrm
fixmap.h11060644editdlrm
flat.h4400644editdlrm
ftrace.h9790644editdlrm
futex.h38890644editdlrm
highmem.h21670644editdlrm
hw_breakpoint.h15970644editdlrm
initialize_mmu.h51960644editdlrm
io.h19590644editdlrm
irq.h11270644editdlrm
irqflags.h20690644editdlrm
jump_label.h16550644editdlrm
kasan.h8590644editdlrm
Kbuild2300644editdlrm
kmem_layout.h27900644editdlrm
linkage.h1540644editdlrm
mmu.h4620644editdlrm
mmu_context.h36240644editdlrm
mxregs.h13300644editdlrm
nommu_context.h1560644editdlrm
page.h57930644editdlrm
pci-bridge.h21700644editdlrm
pci.h13020644editdlrm
perf_event.h1080644editdlrm
pgalloc.h14050644editdlrm
pgtable.h144700644editdlrm
platform.h15280644editdlrm
processor.h77050644editdlrm
ptrace.h33210644editdlrm
regs.h40170644editdlrm
seccomp.h2870644editdlrm
serial.h4430644editdlrm
shmparam.h5610644editdlrm
signal.h5020644editdlrm
smp.h9670644editdlrm
spinlock.h4720644editdlrm
spinlock_types.h3170644editdlrm
stackprotector.h11400644editdlrm
stacktrace.h11580644editdlrm
string.h33850644editdlrm
switch_to.h6010644editdlrm
syscall.h21400644editdlrm
sysmem.h4260644editdlrm
thread_info.h39650644editdlrm
timex.h14400644editdlrm
tlb.h4750644editdlrm
tlbflush.h56200644editdlrm
traps.h27790644editdlrm
uaccess.h93750644editdlrm
ucontext.h5400644editdlrm
unistd.h3700644editdlrm
vectors.h32760644editdlrm
vermagic.h4330644editdlrm
vmalloc.h960644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/arch/xtensa/include/asm/ptrace.h (3321B)
/* * include/asm-xtensa/ptrace.h * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001 - 2005 Tensilica Inc. */ #ifndef _XTENSA_PTRACE_H #define _XTENSA_PTRACE_H #include #include /* * Kernel stack * * +-----------------------+ -------- STACK_SIZE * | register file | | * +-----------------------+ | * | struct pt_regs | | * +-----------------------+ | ------ PT_REGS_OFFSET * double : 16 bytes spill area : | ^ * excetion :- - - - - - - - - - - -: | | * frame : struct pt_regs : | | * :- - - - - - - - - - - -: | | * | | | | * | memory stack | | | * | | | | * ~ ~ ~ ~ * ~ ~ ~ ~ * | | | | * | | | | * +-----------------------+ | | --- STACK_BIAS * | struct task_struct | | | ^ * current --> +-----------------------+ | | | * | struct thread_info | | | | * +-----------------------+ -------- */ #define NO_SYSCALL (-1) #ifndef __ASSEMBLY__ #include /* * This struct defines the way the registers are stored on the * kernel stack during a system call or other kernel entry. */ struct pt_regs { unsigned long pc; /* 4 */ unsigned long ps; /* 8 */ unsigned long depc; /* 12 */ unsigned long exccause; /* 16 */ unsigned long excvaddr; /* 20 */ unsigned long debugcause; /* 24 */ unsigned long wmask; /* 28 */ unsigned long lbeg; /* 32 */ unsigned long lend; /* 36 */ unsigned long lcount; /* 40 */ unsigned long sar; /* 44 */ unsigned long windowbase; /* 48 */ unsigned long windowstart; /* 52 */ unsigned long syscall; /* 56 */ unsigned long icountlevel; /* 60 */ unsigned long scompare1; /* 64 */ unsigned long threadptr; /* 68 */ /* Additional configurable registers that are used by the compiler. */ xtregs_opt_t xtregs_opt; /* Make sure the areg field is 16 bytes aligned. */ int align[0] __attribute__ ((aligned(16))); /* current register frame. * Note: The ESF for kernel exceptions ends after 16 registers! */ unsigned long areg[16]; }; #include # define arch_has_single_step() (1) # define task_pt_regs(tsk) ((struct pt_regs*) \ (task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1) # define user_mode(regs) (((regs)->ps & 0x00000020)!=0) # define instruction_pointer(regs) ((regs)->pc) # define return_pointer(regs) (MAKE_PC_FROM_RA((regs)->areg[0], \ (regs)->areg[1])) # ifndef CONFIG_SMP # define profile_pc(regs) instruction_pointer(regs) # else # define profile_pc(regs) \ ({ \ in_lock_functions(instruction_pointer(regs)) ? \ return_pointer(regs) : instruction_pointer(regs); \ }) # endif #define user_stack_pointer(regs) ((regs)->areg[1]) static inline unsigned long regs_return_value(struct pt_regs *regs) { return regs->areg[2]; } #else /* __ASSEMBLY__ */ # include #define PT_REGS_OFFSET (KERNEL_STACK_SIZE - PT_USER_SIZE) #endif /* !__ASSEMBLY__ */ #endif /* _XTENSA_PTRACE_H */