/
usr
/
src
/
linux-headers-5.15.0-190
/
arch
/
nds32
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-190/arch/nds32/include/asm
mkdir
upload
Name
Size
Mode
Actions
assembler.h
598
0644
edit
dl
rm
barrier.h
431
0644
edit
dl
rm
bitfield.h
47127
0644
edit
dl
rm
cache.h
276
0644
edit
dl
rm
cacheflush.h
1986
0644
edit
dl
rm
cache_info.h
315
0644
edit
dl
rm
current.h
304
0644
edit
dl
rm
delay.h
938
0644
edit
dl
rm
elf.h
6021
0644
edit
dl
rm
fixmap.h
831
0644
edit
dl
rm
fpu.h
3195
0644
edit
dl
rm
fpuemu.h
1272
0644
edit
dl
rm
ftrace.h
1161
0644
edit
dl
rm
futex.h
2483
0644
edit
dl
rm
highmem.h
1624
0644
edit
dl
rm
io.h
2474
0644
edit
dl
rm
irqflags.h
848
0644
edit
dl
rm
Kbuild
194
0644
edit
dl
rm
l2_cache.h
4791
0644
edit
dl
rm
linkage.h
264
0644
edit
dl
rm
memory.h
2713
0644
edit
dl
rm
mmu.h
213
0644
edit
dl
rm
mmu_context.h
1409
0644
edit
dl
rm
nds32.h
2018
0644
edit
dl
rm
nds32_fpu_inst.h
2510
0644
edit
dl
rm
page.h
1591
0644
edit
dl
rm
perf_event.h
445
0644
edit
dl
rm
pgalloc.h
1419
0644
edit
dl
rm
pgtable.h
11676
0644
edit
dl
rm
pmu.h
13350
0644
edit
dl
rm
proc-fns.h
1668
0644
edit
dl
rm
processor.h
2405
0644
edit
dl
rm
ptrace.h
1686
0644
edit
dl
rm
sfp-machine.h
4463
0644
edit
dl
rm
shmparam.h
462
0644
edit
dl
rm
stacktrace.h
884
0644
edit
dl
rm
string.h
471
0644
edit
dl
rm
suspend.h
258
0644
edit
dl
rm
swab.h
810
0644
edit
dl
rm
syscall.h
5496
0644
edit
dl
rm
syscalls.h
510
0644
edit
dl
rm
thread_info.h
2390
0644
edit
dl
rm
tlb.h
249
0644
edit
dl
rm
tlbflush.h
1144
0644
edit
dl
rm
uaccess.h
8272
0644
edit
dl
rm
unistd.h
156
0644
edit
dl
rm
vdso.h
429
0644
edit
dl
rm
vdso_datapage.h
1104
0644
edit
dl
rm
vdso_timer_info.h
357
0644
edit
dl
rm
vermagic.h
214
0644
edit
dl
rm
vmalloc.h
93
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-190/arch/nds32/include/asm/processor.h
(2405B)
/* SPDX-License-Identifier: GPL-2.0 */ // Copyright (C) 2005-2017 Andes Technology Corporation #ifndef __ASM_NDS32_PROCESSOR_H #define __ASM_NDS32_PROCESSOR_H #ifdef __KERNEL__ #include <asm/ptrace.h> #include <asm/types.h> #include <asm/sigcontext.h> #define KERNEL_STACK_SIZE PAGE_SIZE #define STACK_TOP TASK_SIZE #define STACK_TOP_MAX TASK_SIZE struct cpu_context { unsigned long r6; unsigned long r7; unsigned long r8; unsigned long r9; unsigned long r10; unsigned long r11; unsigned long r12; unsigned long r13; unsigned long r14; unsigned long fp; unsigned long pc; unsigned long sp; }; struct thread_struct { struct cpu_context cpu_context; /* cpu context */ /* fault info */ unsigned long address; unsigned long trap_no; unsigned long error_code; struct fpu_struct fpu; }; #define INIT_THREAD { } #ifdef __NDS32_EB__ #define PSW_DE PSW_mskBE #else #define PSW_DE 0x0 #endif #ifdef CONFIG_WBNA #define PSW_valWBNA PSW_mskWBNA #else #define PSW_valWBNA 0x0 #endif #ifdef CONFIG_HWZOL #define PSW_valINIT (PSW_CPL_ANY | PSW_mskAEN | PSW_valWBNA | PSW_mskDT | PSW_mskIT | PSW_DE | PSW_mskGIE) #else #define PSW_valINIT (PSW_CPL_ANY | PSW_valWBNA | PSW_mskDT | PSW_mskIT | PSW_DE | PSW_mskGIE) #endif #define start_thread(regs,pc,stack) \ ({ \ memzero(regs, sizeof(struct pt_regs)); \ forget_syscall(regs); \ regs->ipsw = PSW_valINIT; \ regs->ir0 = (PSW_CPL_ANY | PSW_valWBNA | PSW_mskDT | PSW_mskIT | PSW_DE | PSW_SYSTEM | PSW_INTL_1); \ regs->ipc = pc; \ regs->sp = stack; \ }) /* Forward declaration, a strange C thing */ struct task_struct; /* Free all resources held by a thread. */ #define release_thread(thread) do { } while(0) #if IS_ENABLED(CONFIG_FPU) #if !IS_ENABLED(CONFIG_UNLAZU_FPU) extern struct task_struct *last_task_used_math; #endif #endif /* Prepare to copy thread state - unlazy all lazy status */ #define prepare_to_copy(tsk) do { } while (0) unsigned long __get_wchan(struct task_struct *p); #define cpu_relax() barrier() #define task_pt_regs(task) \ ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE \ - 8) - 1) /* * Create a new kernel thread */ extern int kernel_thread(int (*fn) (void *), void *arg, unsigned long flags); #define KSTK_EIP(tsk) instruction_pointer(task_pt_regs(tsk)) #define KSTK_ESP(tsk) user_stack_pointer(task_pt_regs(tsk)) #endif #endif /* __ASM_NDS32_PROCESSOR_H */
Save
cmd:
run