/usr/src/linux-headers-5.15.0-190/arch/sh/include/asm
NameSizeModeActions
adc.h2110644editdlrm
addrspace.h18960644editdlrm
alignment.h6540644editdlrm
asm-offsets.h740644editdlrm
atomic-grb.h26770644editdlrm
atomic-irq.h16870644editdlrm
atomic-llsc.h21860644editdlrm
atomic.h8400644editdlrm
barrier.h15030644editdlrm
bitops-cas.h17700644editdlrm
bitops-grb.h63640644editdlrm
bitops-llsc.h28580644editdlrm
bitops-op32.h38420644editdlrm
bitops.h16530644editdlrm
bl_bit.h660644editdlrm
bl_bit_32.h6390644editdlrm
bug.h28350644editdlrm
cache.h11710644editdlrm
cacheflush.h37350644editdlrm
cache_insns.h710644editdlrm
cache_insns_32.h6420644editdlrm
checksum.h680644editdlrm
checksum_32.h50090644editdlrm
clock.h4360644editdlrm
cmpxchg-cas.h5490644editdlrm
cmpxchg-grb.h28690644editdlrm
cmpxchg-irq.h10650644editdlrm
cmpxchg-llsc.h10850644editdlrm
cmpxchg-xchg.h12740644editdlrm
cmpxchg.h18220644editdlrm
device.h4420644editdlrm
dma-register.h17080644editdlrm
dma.h36520644editdlrm
dmabrg.h5360644editdlrm
dwarf.h98960644editdlrm
elf.h60090644editdlrm
entry-macros.S18970644editdlrm
extable.h1350644editdlrm
fb.h4140644editdlrm
fixmap.h25430644editdlrm
flat.h8630644editdlrm
fpu.h16350644editdlrm
freq.h2120644editdlrm
ftrace.h11380644editdlrm
futex-cas.h7280644editdlrm
futex-irq.h4820644editdlrm
futex-llsc.h8700644editdlrm
futex.h13810644editdlrm
gpio.h8510644editdlrm
hardirq.h2670644editdlrm
hd64461.h120680644editdlrm
heartbeat.h3830644editdlrm
hugetlb.h9150644editdlrm
hw_breakpoint.h19700644editdlrm
hw_irq.h9150644editdlrm
i2c-sh7760.h4060644editdlrm
io.h86990644editdlrm
io_generic.h6610644editdlrm
io_noioport.h15020644editdlrm
io_trapped.h14740644editdlrm
irq.h16420644editdlrm
irqflags.h2260644editdlrm
Kbuild1410644editdlrm
kdebug.h4330644editdlrm
kexec.h26720644editdlrm
kgdb.h8510644editdlrm
kprobes.h14070644editdlrm
linkage.h1540644editdlrm
machvec.h8500644editdlrm
mmiowb.h2460644editdlrm
mmu.h22310644editdlrm
mmu_context.h41670644editdlrm
mmu_context_32.h11360644editdlrm
mmzone.h10520644editdlrm
module.h2760644editdlrm
page.h54190644editdlrm
pci.h30070644editdlrm
perf_event.h7970644editdlrm
pgalloc.h11070644editdlrm
pgtable-2level.h5670644editdlrm
pgtable-3level.h14640644editdlrm
pgtable.h43050644editdlrm
pgtable_32.h158990644editdlrm
platform_early.h18500644editdlrm
posix_types.h710644editdlrm
processor.h43420644editdlrm
processor_32.h46140644editdlrm
ptrace.h38340644editdlrm
ptrace_32.h3070644editdlrm
push-switch.h7550644editdlrm
reboot.h4720644editdlrm
romimage-macros.h11260644editdlrm
rtc.h2490644editdlrm
seccomp.h5460644editdlrm
sections.h3110644editdlrm
segment.h8600644editdlrm
setup.h7250644editdlrm
sfp-machine.h27670644editdlrm
sh7760fb.h57400644editdlrm
shmparam.h4890644editdlrm
sh_bios.h7430644editdlrm
siu.h3850644editdlrm
smc37c93x.h56980644editdlrm
smp-ops.h10120644editdlrm
smp.h18470644editdlrm
sparsemem.h3190644editdlrm
spi.h2650644editdlrm
spinlock-cas.h20010644editdlrm
spinlock-llsc.h41490644editdlrm
spinlock.h4380644editdlrm
spinlock_types.h4630644editdlrm
sram.h6700644editdlrm
stackprotector.h7110644editdlrm
stacktrace.h5280644editdlrm
string.h660644editdlrm
string_32.h22080644editdlrm
suspend.h25760644editdlrm
switch_to.h1900644editdlrm
switch_to_32.h36310644editdlrm
syscall.h2010644editdlrm
syscalls.h4540644editdlrm
syscalls_32.h9790644editdlrm
syscall_32.h19170644editdlrm
thread_info.h53420644editdlrm
timex.h6370644editdlrm
tlb.h6250644editdlrm
tlbflush.h18090644editdlrm
topology.h6450644editdlrm
traps.h4240644editdlrm
traps_32.h13380644editdlrm
types.h3260644editdlrm
uaccess.h48110644editdlrm
uaccess_32.h50070644editdlrm
uncached.h13720644editdlrm
unistd.h9190644editdlrm
unwinder.h8560644editdlrm
user.h24400644editdlrm
vermagic.h7090644editdlrm
vga.h1370644editdlrm
vmalloc.h840644editdlrm
vmlinux.lds.h4160644editdlrm
watchdog.h39810644editdlrm
word-at-a-time.h13210644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/arch/sh/include/asm/processor_32.h (4614B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-sh/processor.h * * Copyright (C) 1999, 2000 Niibe Yutaka * Copyright (C) 2002, 2003 Paul Mundt */ #ifndef __ASM_SH_PROCESSOR_32_H #define __ASM_SH_PROCESSOR_32_H #include #include #include #include #include /* Core Processor Version Register */ #define CCN_PVR 0xff000030 #define CCN_CVR 0xff000040 #define CCN_PRR 0xff000044 /* * User space process size: 2GB. * * Since SH7709 and SH7750 have "area 7", we can't use 0x7c000000--0x7fffffff */ #define TASK_SIZE 0x7c000000UL #define STACK_TOP TASK_SIZE #define STACK_TOP_MAX STACK_TOP /* This decides where the kernel will search for a free chunk of vm * space during mmap's. */ #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) /* * Bit of SR register * * FD-bit: * When it's set, it means the processor doesn't have right to use FPU, * and it results exception when the floating operation is executed. * * IMASK-bit: * Interrupt level mask */ #define SR_DSP 0x00001000 #define SR_IMASK 0x000000f0 #define SR_FD 0x00008000 #define SR_MD 0x40000000 #define SR_USER_MASK 0x00000303 // M, Q, S, T bits /* * DSP structure and data */ struct sh_dsp_struct { unsigned long dsp_regs[14]; long status; }; /* * FPU structure and data */ struct sh_fpu_hard_struct { unsigned long fp_regs[16]; unsigned long xfp_regs[16]; unsigned long fpscr; unsigned long fpul; long status; /* software status information */ }; /* Dummy fpu emulator */ struct sh_fpu_soft_struct { unsigned long fp_regs[16]; unsigned long xfp_regs[16]; unsigned long fpscr; unsigned long fpul; unsigned char lookahead; unsigned long entry_pc; }; union thread_xstate { struct sh_fpu_hard_struct hardfpu; struct sh_fpu_soft_struct softfpu; }; struct thread_struct { /* Saved registers when thread is descheduled */ unsigned long sp; unsigned long pc; /* Various thread flags, see SH_THREAD_xxx */ unsigned long flags; /* Save middle states of ptrace breakpoints */ struct perf_event *ptrace_bps[HBP_NUM]; #ifdef CONFIG_SH_DSP /* Dsp status information */ struct sh_dsp_struct dsp_status; #endif /* Extended processor state */ union thread_xstate *xstate; /* * fpu_counter contains the number of consecutive context switches * that the FPU is used. If this is over a threshold, the lazy fpu * saving becomes unlazy to save the trap. This is an unsigned char * so that after 256 times the counter wraps and the behavior turns * lazy again; this to deal with bursty apps that only use FPU for * a short time */ unsigned char fpu_counter; }; #define INIT_THREAD { \ .sp = sizeof(init_stack) + (long) &init_stack, \ .flags = 0, \ } /* Forward declaration, a strange C thing */ struct task_struct; extern void start_thread(struct pt_regs *regs, unsigned long new_pc, unsigned long new_sp); /* Free all resources held by a thread. */ extern void release_thread(struct task_struct *); /* * FPU lazy state save handling. */ static __inline__ void disable_fpu(void) { unsigned long __dummy; /* Set FD flag in SR */ __asm__ __volatile__("stc sr, %0\n\t" "or %1, %0\n\t" "ldc %0, sr" : "=&r" (__dummy) : "r" (SR_FD)); } static __inline__ void enable_fpu(void) { unsigned long __dummy; /* Clear out FD flag in SR */ __asm__ __volatile__("stc sr, %0\n\t" "and %1, %0\n\t" "ldc %0, sr" : "=&r" (__dummy) : "r" (~SR_FD)); } /* Double presision, NANS as NANS, rounding to nearest, no exceptions */ #define FPSCR_INIT 0x00080000 #define FPSCR_CAUSE_MASK 0x0001f000 /* Cause bits */ #define FPSCR_FLAG_MASK 0x0000007c /* Flag bits */ /* * Return saved PC of a blocked thread. */ #define thread_saved_pc(tsk) (tsk->thread.pc) void show_trace(struct task_struct *tsk, unsigned long *sp, struct pt_regs *regs, const char *loglvl); #ifdef CONFIG_DUMP_CODE void show_code(struct pt_regs *regs); #else static inline void show_code(struct pt_regs *regs) { } #endif extern unsigned long __get_wchan(struct task_struct *p); #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15]) #if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4) #define PREFETCH_STRIDE L1_CACHE_BYTES #define ARCH_HAS_PREFETCH #define ARCH_HAS_PREFETCHW static inline void prefetch(const void *x) { __builtin_prefetch(x, 0, 3); } static inline void prefetchw(const void *x) { __builtin_prefetch(x, 1, 3); } #endif #endif /* __ASM_SH_PROCESSOR_32_H */