/usr/src/linux-headers-5.15.0-190/arch/openrisc/include/asm
NameSizeModeActions
bitops/-0755rm
asm-offsets.h350644editdlrm
atomic.h36090644editdlrm
barrier.h2410644editdlrm
bitops.h13260644editdlrm
cache.h6810644editdlrm
cacheflush.h22040644editdlrm
cmpxchg.h40560644editdlrm
cpuinfo.h7630644editdlrm
delay.h4630644editdlrm
elf.h18600644editdlrm
fixmap.h25960644editdlrm
futex.h22930644editdlrm
io.h8330644editdlrm
irq.h5610644editdlrm
irqflags.h6590644editdlrm
Kbuild2380644editdlrm
linkage.h5570644editdlrm
mmu.h5210644editdlrm
mmu_context.h11080644editdlrm
page.h22880644editdlrm
pgalloc.h18310644editdlrm
pgtable.h127490644editdlrm
processor.h23390644editdlrm
ptrace.h32010644editdlrm
serial.h9280644editdlrm
setup.h2930644editdlrm
smp.h8220644editdlrm
spinlock.h7780644editdlrm
spinlock_types.h1880644editdlrm
spr.h9910644editdlrm
spr_defs.h232520644editdlrm
string.h3240644editdlrm
syscall.h16580644editdlrm
syscalls.h9690644editdlrm
thread_info.h37870644editdlrm
time.h6270644editdlrm
timex.h7070644editdlrm
tlb.h6510644editdlrm
tlbflush.h18440644editdlrm
uaccess.h79850644editdlrm
unwinder.h5570644editdlrm
vmalloc.h1020644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/arch/openrisc/include/asm/processor.h (2339B)
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * OpenRISC Linux * * Linux architectural port borrowing liberally from similar works of * others. All original copyrights apply as per the original source * declaration. * * OpenRISC implementation: * Copyright (C) 2003 Matjaz Breskvar * Copyright (C) 2010-2011 Jonas Bonn * et al. */ #ifndef __ASM_OPENRISC_PROCESSOR_H #define __ASM_OPENRISC_PROCESSOR_H #include #include #include #define STACK_TOP TASK_SIZE #define STACK_TOP_MAX STACK_TOP /* Kernel and user SR register setting */ #define KERNEL_SR (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \ | SPR_SR_DCE | SPR_SR_SM) #define USER_SR (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \ | SPR_SR_DCE | SPR_SR_IEE | SPR_SR_TEE) /* * User space process size. This is hardcoded into a few places, * so don't change it unless you know what you are doing. */ #define TASK_SIZE (0x80000000UL) /* This decides where the kernel will search for a free chunk of vm * space during mmap's. */ #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) #ifndef __ASSEMBLY__ struct task_struct; struct thread_struct { }; /* * At user->kernel entry, the pt_regs struct is stacked on the top of the * kernel-stack. This macro allows us to find those regs for a task. * Notice that subsequent pt_regs stackings, like recursive interrupts * occurring while we're in the kernel, won't affect this - only the first * user->kernel transition registers are reached by this (i.e. not regs * for running signal handler) */ #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1) /* * Dito but for the currently running task */ #define task_pt_regs(task) user_regs(task_thread_info(task)) #define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack) #define INIT_THREAD { } #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) void start_thread(struct pt_regs *regs, unsigned long nip, unsigned long sp); void release_thread(struct task_struct *); unsigned long __get_wchan(struct task_struct *p); #define cpu_relax() barrier() #endif /* __ASSEMBLY__ */ #endif /* __ASM_OPENRISC_PROCESSOR_H */