/
usr
/
src
/
linux-headers-5.15.0-181
/
arch
/
xtensa
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-181/arch/xtensa/include/asm
mkdir
upload
Name
Size
Mode
Actions
asm-offsets.h
35
0644
edit
dl
rm
asm-uaccess.h
4180
0644
edit
dl
rm
asmmacro.h
4763
0644
edit
dl
rm
atomic.h
7301
0644
edit
dl
rm
barrier.h
594
0644
edit
dl
rm
bitops.h
5398
0644
edit
dl
rm
bootparam.h
1402
0644
edit
dl
rm
cache.h
1114
0644
edit
dl
rm
cacheasm.h
3856
0644
edit
dl
rm
cacheflush.h
5968
0644
edit
dl
rm
checksum.h
5893
0644
edit
dl
rm
cmpxchg.h
5684
0644
edit
dl
rm
coprocessor.h
4623
0644
edit
dl
rm
core.h
830
0644
edit
dl
rm
current.h
679
0644
edit
dl
rm
delay.h
1668
0644
edit
dl
rm
dma.h
1830
0644
edit
dl
rm
elf.h
5115
0644
edit
dl
rm
fixmap.h
1106
0644
edit
dl
rm
flat.h
440
0644
edit
dl
rm
ftrace.h
979
0644
edit
dl
rm
futex.h
3889
0644
edit
dl
rm
highmem.h
2167
0644
edit
dl
rm
hw_breakpoint.h
1597
0644
edit
dl
rm
initialize_mmu.h
5196
0644
edit
dl
rm
io.h
1959
0644
edit
dl
rm
irq.h
1127
0644
edit
dl
rm
irqflags.h
2069
0644
edit
dl
rm
jump_label.h
1655
0644
edit
dl
rm
kasan.h
859
0644
edit
dl
rm
Kbuild
230
0644
edit
dl
rm
kmem_layout.h
2790
0644
edit
dl
rm
linkage.h
154
0644
edit
dl
rm
mmu.h
462
0644
edit
dl
rm
mmu_context.h
3624
0644
edit
dl
rm
mxregs.h
1330
0644
edit
dl
rm
nommu_context.h
156
0644
edit
dl
rm
page.h
5793
0644
edit
dl
rm
pci-bridge.h
2170
0644
edit
dl
rm
pci.h
1302
0644
edit
dl
rm
perf_event.h
108
0644
edit
dl
rm
pgalloc.h
1405
0644
edit
dl
rm
pgtable.h
14470
0644
edit
dl
rm
platform.h
1528
0644
edit
dl
rm
processor.h
7705
0644
edit
dl
rm
ptrace.h
3321
0644
edit
dl
rm
regs.h
4017
0644
edit
dl
rm
seccomp.h
287
0644
edit
dl
rm
serial.h
443
0644
edit
dl
rm
shmparam.h
561
0644
edit
dl
rm
signal.h
502
0644
edit
dl
rm
smp.h
967
0644
edit
dl
rm
spinlock.h
472
0644
edit
dl
rm
spinlock_types.h
317
0644
edit
dl
rm
stackprotector.h
1140
0644
edit
dl
rm
stacktrace.h
1158
0644
edit
dl
rm
string.h
3385
0644
edit
dl
rm
switch_to.h
601
0644
edit
dl
rm
syscall.h
2140
0644
edit
dl
rm
sysmem.h
426
0644
edit
dl
rm
thread_info.h
3965
0644
edit
dl
rm
timex.h
1440
0644
edit
dl
rm
tlb.h
475
0644
edit
dl
rm
tlbflush.h
5620
0644
edit
dl
rm
traps.h
2779
0644
edit
dl
rm
uaccess.h
9375
0644
edit
dl
rm
ucontext.h
540
0644
edit
dl
rm
unistd.h
370
0644
edit
dl
rm
vectors.h
3276
0644
edit
dl
rm
vermagic.h
433
0644
edit
dl
rm
vmalloc.h
96
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/arch/xtensa/include/asm/traps.h
(2779B)
/* * arch/xtensa/include/asm/traps.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) 2012 Tensilica Inc. */ #ifndef _XTENSA_TRAPS_H #define _XTENSA_TRAPS_H #include <asm/ptrace.h> /* * Per-CPU exception handling data structure. * EXCSAVE1 points to it. */ struct exc_table { /* Kernel Stack */ void *kstk; /* Double exception save area for a0 */ unsigned long double_save; /* Fixup handler */ void *fixup; /* For passing a parameter to fixup */ void *fixup_param; /* Fast user exception handlers */ void *fast_user_handler[EXCCAUSE_N]; /* Fast kernel exception handlers */ void *fast_kernel_handler[EXCCAUSE_N]; /* Default C-Handlers */ void *default_handler[EXCCAUSE_N]; }; /* * handler must be either of the following: * void (*)(struct pt_regs *regs); * void (*)(struct pt_regs *regs, unsigned long exccause); */ extern void * __init trap_set_handler(int cause, void *handler); extern void do_unhandled(struct pt_regs *regs, unsigned long exccause); void fast_second_level_miss(void); /* Initialize minimal exc_table structure sufficient for basic paging */ static inline void __init early_trap_init(void) { static struct exc_table exc_table __initdata = { .fast_kernel_handler[EXCCAUSE_DTLB_MISS] = fast_second_level_miss, }; __asm__ __volatile__("wsr %0, excsave1\n" : : "a" (&exc_table)); } void secondary_trap_init(void); static inline void spill_registers(void) { #if XCHAL_NUM_AREGS > 16 __asm__ __volatile__ ( " call8 1f\n" " _j 2f\n" " retw\n" " .align 4\n" "1:\n" #if XCHAL_NUM_AREGS == 32 " _entry a1, 32\n" " addi a8, a0, 3\n" " _entry a1, 16\n" " mov a12, a12\n" " retw\n" #else " _entry a1, 48\n" " call12 1f\n" " retw\n" " .align 4\n" "1:\n" " .rept (" __stringify(XCHAL_NUM_AREGS) " - 16) / 12\n" " _entry a1, 48\n" " mov a12, a0\n" " .endr\n" " _entry a1, 16\n" #if XCHAL_NUM_AREGS % 12 == 0 " mov a12, a12\n" #elif XCHAL_NUM_AREGS % 12 == 4 " mov a4, a4\n" #elif XCHAL_NUM_AREGS % 12 == 8 " mov a8, a8\n" #endif " retw\n" #endif "2:\n" : : : "a8", "a9", "memory"); #else __asm__ __volatile__ ( " mov a12, a12\n" : : : "memory"); #endif } struct debug_table { /* Pointer to debug exception handler */ void (*debug_exception)(void); /* Temporary register save area */ unsigned long debug_save[1]; #ifdef CONFIG_HAVE_HW_BREAKPOINT /* Save area for DBREAKC registers */ unsigned long dbreakc_save[XCHAL_NUM_DBREAK]; /* Saved ICOUNT register */ unsigned long icount_save; /* Saved ICOUNTLEVEL register */ unsigned long icount_level_save; #endif }; void debug_exception(void); #endif /* _XTENSA_TRAPS_H */
Save
cmd:
run