Home
last modified time | relevance | path

Searched refs:cpu_context (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v4.19/arch/microblaze/kernel/
Dasm-offsets.c93 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context)); in main()
98 DEFINE(CC_R1, offsetof(struct cpu_context, r1)); /* r1 */ in main()
99 DEFINE(CC_R2, offsetof(struct cpu_context, r2)); in main()
101 DEFINE(CC_R13, offsetof(struct cpu_context, r13)); in main()
102 DEFINE(CC_R14, offsetof(struct cpu_context, r14)); in main()
103 DEFINE(CC_R15, offsetof(struct cpu_context, r15)); in main()
104 DEFINE(CC_R16, offsetof(struct cpu_context, r16)); in main()
105 DEFINE(CC_R17, offsetof(struct cpu_context, r17)); in main()
106 DEFINE(CC_R18, offsetof(struct cpu_context, r18)); in main()
108 DEFINE(CC_R19, offsetof(struct cpu_context, r19)); in main()
[all …]
Dprocess.c67 memset(&ti->cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
68 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
69 ti->cpu_context.r20 = (unsigned long)usp; /* fn */ in copy_thread()
70 ti->cpu_context.r19 = (unsigned long)arg; in copy_thread()
74 ti->cpu_context.msr = childregs->msr & ~MSR_IE; in copy_thread()
76 ti->cpu_context.r15 = (unsigned long)ret_from_kernel_thread - 8; in copy_thread()
83 memset(&ti->cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
84 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
86 ti->cpu_context.msr = (unsigned long)childregs->msr; in copy_thread()
106 ti->cpu_context.msr = (childregs->msr|MSR_VM); in copy_thread()
[all …]
Dunwind.c296 const struct cpu_context *cpu_context = in microblaze_unwind() local
297 &thread_info->cpu_context; in microblaze_unwind()
301 cpu_context->r1, in microblaze_unwind()
302 cpu_context->r15, trace); in microblaze_unwind()
/Linux-v4.19/arch/arm64/kernel/
Dkgdb.c141 struct cpu_context *cpu_context = &task->thread.cpu_context; in sleeping_thread_to_gdb_regs() local
146 gdb_regs[19] = cpu_context->x19; in sleeping_thread_to_gdb_regs()
147 gdb_regs[20] = cpu_context->x20; in sleeping_thread_to_gdb_regs()
148 gdb_regs[21] = cpu_context->x21; in sleeping_thread_to_gdb_regs()
149 gdb_regs[22] = cpu_context->x22; in sleeping_thread_to_gdb_regs()
150 gdb_regs[23] = cpu_context->x23; in sleeping_thread_to_gdb_regs()
151 gdb_regs[24] = cpu_context->x24; in sleeping_thread_to_gdb_regs()
152 gdb_regs[25] = cpu_context->x25; in sleeping_thread_to_gdb_regs()
153 gdb_regs[26] = cpu_context->x26; in sleeping_thread_to_gdb_regs()
154 gdb_regs[27] = cpu_context->x27; in sleeping_thread_to_gdb_regs()
[all …]
Dprocess.c314 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
361 p->thread.cpu_context.x19 = stack_start; in copy_thread()
362 p->thread.cpu_context.x20 = stk_sz; in copy_thread()
364 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
365 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
/Linux-v4.19/arch/mips/mm/
Dtlb-r3k.c74 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_mm()
76 printk("[tlbmm<%lu>]", (unsigned long)cpu_context(cpu, mm)); in local_flush_tlb_mm()
89 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_range()
94 cpu_context(cpu, mm) & asid_mask, start, end); in local_flush_tlb_range()
100 int newpid = cpu_context(cpu, mm) & asid_mask; in local_flush_tlb_range()
167 if (cpu_context(cpu, vma->vm_mm) != 0) { in local_flush_tlb_page()
172 printk("[tlbpage<%lu,0x%08lx>]", cpu_context(cpu, vma->vm_mm), page); in local_flush_tlb_page()
174 newpid = cpu_context(cpu, vma->vm_mm) & asid_mask; in local_flush_tlb_page()
209 if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
211 (cpu_context(cpu, vma->vm_mm)), pid); in __update_tlb()
Dtlb-r8k.c57 if (cpu_context(cpu, mm) != 0) in local_flush_tlb_mm()
69 if (!cpu_context(cpu, mm)) in local_flush_tlb_range()
155 if (!cpu_context(cpu, vma->vm_mm)) in local_flush_tlb_page()
/Linux-v4.19/arch/arm/kernel/
Dkgdb.c91 gdb_regs[_R4] = ti->cpu_context.r4; in sleeping_thread_to_gdb_regs()
92 gdb_regs[_R5] = ti->cpu_context.r5; in sleeping_thread_to_gdb_regs()
93 gdb_regs[_R6] = ti->cpu_context.r6; in sleeping_thread_to_gdb_regs()
94 gdb_regs[_R7] = ti->cpu_context.r7; in sleeping_thread_to_gdb_regs()
95 gdb_regs[_R8] = ti->cpu_context.r8; in sleeping_thread_to_gdb_regs()
96 gdb_regs[_R9] = ti->cpu_context.r9; in sleeping_thread_to_gdb_regs()
97 gdb_regs[_R10] = ti->cpu_context.sl; in sleeping_thread_to_gdb_regs()
98 gdb_regs[_FP] = ti->cpu_context.fp; in sleeping_thread_to_gdb_regs()
99 gdb_regs[_SPT] = ti->cpu_context.sp; in sleeping_thread_to_gdb_regs()
100 gdb_regs[_PC] = ti->cpu_context.pc; in sleeping_thread_to_gdb_regs()
Dxscale-cp0.c42 thread->cpu_context.extra[0] = 0; in dsp_do()
43 thread->cpu_context.extra[1] = 0; in dsp_do()
47 dsp_save_state(current_thread_info()->cpu_context.extra); in dsp_do()
48 dsp_load_state(thread->cpu_context.extra); in dsp_do()
Dprocess.c236 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); in copy_thread()
255 thread->cpu_context.r4 = stk_sz; in copy_thread()
256 thread->cpu_context.r5 = stack_start; in copy_thread()
259 thread->cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
260 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
/Linux-v4.19/arch/mips/include/asm/
Dmmu_context.h91 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) macro
94 (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu]))
115 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_new_mmu_context()
128 cpu_context(i, mm) = 0; in init_new_context()
146 if ((cpu_context(cpu, next) ^ asid_cache(cpu)) & asid_version_mask(cpu)) in switch_mm()
217 cpu_context(cpu, mm) = 0; in drop_mmu_context()
/Linux-v4.19/arch/sh/include/asm/
Dmmu_context.h41 #define cpu_context(cpu, mm) ((mm)->context.id[cpu]) macro
44 (cpu_context((cpu), (mm)) & MMU_CONTEXT_ASID_MASK)
65 if (((cpu_context(cpu, mm) ^ asid) & MMU_CONTEXT_VERSION_MASK) == 0) in get_mmu_context()
93 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_mmu_context()
106 cpu_context(i, mm) = NO_CONTEXT; in init_new_context()
/Linux-v4.19/arch/arm/include/asm/
Dthread_info.h56 struct cpu_context_save cpu_context; /* cpu context */ member
95 ((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
97 ((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
101 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
104 ((unsigned long)(task_thread_info(tsk)->cpu_context.r7))
/Linux-v4.19/drivers/hv/
Dhv.c62 hv_context.cpu_context = alloc_percpu(struct hv_per_cpu_context); in hv_init()
63 if (!hv_context.cpu_context) in hv_init()
87 hv_cpu = get_cpu_ptr(hv_context.cpu_context); in hv_post_message()
116 hv_cpu = this_cpu_ptr(hv_context.cpu_context); in hv_stimer0_isr()
202 = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_alloc()
259 = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_free()
280 = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_init()
348 = per_cpu_ptr(hv_context.cpu_context, cpu); in hv_synic_clockevents_cleanup()
401 = this_cpu_ptr(hv_context.cpu_context); in hv_synic_cleanup()
/Linux-v4.19/arch/nds32/kernel/
Dprocess.c140 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
145 p->thread.cpu_context.r6 = stack_start; in copy_thread()
147 p->thread.cpu_context.r7 = stk_sz; in copy_thread()
159 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
160 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
/Linux-v4.19/arch/sh/mm/
Dtlbflush_32.c19 if (vma->vm_mm && cpu_context(cpu, vma->vm_mm) != NO_CONTEXT) { in local_flush_tlb_page()
45 if (cpu_context(cpu, mm) != NO_CONTEXT) { in local_flush_tlb_range()
52 cpu_context(cpu, mm) = NO_CONTEXT; in local_flush_tlb_range()
112 if (cpu_context(cpu, mm) != NO_CONTEXT) { in local_flush_tlb_mm()
116 cpu_context(cpu, mm) = NO_CONTEXT; in local_flush_tlb_mm()
Dtlbflush_64.c89 if (cpu_context(cpu, mm) == NO_CONTEXT) in local_flush_tlb_range()
133 if (cpu_context(cpu, mm) == NO_CONTEXT) in local_flush_tlb_mm()
138 cpu_context(cpu, mm) = NO_CONTEXT; in local_flush_tlb_mm()
/Linux-v4.19/arch/unicore32/include/asm/
Dthread_info.h74 struct cpu_context_save cpu_context; /* cpu context */ member
102 ((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
104 ((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
106 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
/Linux-v4.19/arch/unicore32/kernel/
Dprocess.c232 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); in copy_thread()
233 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
235 thread->cpu_context.pc = (unsigned long)ret_from_kernel_thread; in copy_thread()
236 thread->cpu_context.r4 = stack_start; in copy_thread()
237 thread->cpu_context.r5 = stk_sz; in copy_thread()
240 thread->cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
/Linux-v4.19/arch/arm64/include/asm/
Dthread_info.h49 ((unsigned long)(tsk->thread.cpu_context.pc))
51 ((unsigned long)(tsk->thread.cpu_context.sp))
53 ((unsigned long)(tsk->thread.cpu_context.fp))
Dprocessor.h92 struct cpu_context { struct
109 struct cpu_context cpu_context; /* cpu context */ argument
/Linux-v4.19/arch/nds32/include/asm/
Dprocessor.h23 struct cpu_context { struct
39 struct cpu_context cpu_context; /* cpu context */ argument
Dthread_info.h35 #define thread_saved_pc(tsk) ((unsigned long)(tsk->thread.cpu_context.pc))
36 #define thread_saved_fp(tsk) ((unsigned long)(tsk->thread.cpu_context.fp))
/Linux-v4.19/arch/microblaze/include/asm/
Dthread_info.h31 struct cpu_context { struct
74 struct cpu_context cpu_context; argument
/Linux-v4.19/arch/mips/kernel/
Dsmp.c539 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_mm()
540 cpu_context(cpu, mm) = 0; in flush_tlb_mm()
585 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_range()
586 cpu_context(cpu, mm) = !exec; in flush_tlb_range()
637 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm)) in flush_tlb_page()
638 cpu_context(cpu, vma->vm_mm) = 1; in flush_tlb_page()

12