Home
last modified time | relevance | path

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

/linux-4.1.27/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.c64 memset(&ti->cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
65 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
66 ti->cpu_context.r20 = (unsigned long)usp; /* fn */ in copy_thread()
67 ti->cpu_context.r19 = (unsigned long)arg; in copy_thread()
71 ti->cpu_context.msr = childregs->msr & ~MSR_IE; in copy_thread()
73 ti->cpu_context.r15 = (unsigned long)ret_from_kernel_thread - 8; in copy_thread()
80 memset(&ti->cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
81 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
83 ti->cpu_context.msr = (unsigned long)childregs->msr; in copy_thread()
103 ti->cpu_context.msr = (childregs->msr|MSR_VM); in copy_thread()
[all …]
Dunwind.c295 const struct cpu_context *cpu_context = in microblaze_unwind() local
296 &thread_info->cpu_context; in microblaze_unwind()
300 cpu_context->r1, in microblaze_unwind()
301 cpu_context->r15, trace); in microblaze_unwind()
Dtraps.c41 (task->stack))->cpu_context.r1; in show_stack()
/linux-4.1.27/arch/avr32/include/asm/
Dswitch_to.h34 struct cpu_context;
37 struct cpu_context *,
38 struct cpu_context *);
41 last = __switch_to(prev, &prev->thread.cpu_context + 1, \
42 &next->thread.cpu_context); \
Dprocessor.h98 struct cpu_context { struct
114 struct cpu_context cpu_context; argument
120 .cpu_context = { \
142 #define thread_saved_pc(tsk) ((tsk)->thread.cpu_context.pc)
153 #define KSTK_EIP(tsk) ((tsk)->thread.cpu_context.pc)
154 #define KSTK_ESP(tsk) ((tsk)->thread.cpu_context.ksp)
/linux-4.1.27/arch/mips/mm/
Dtlb-r3k.c70 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_mm()
72 printk("[tlbmm<%lu>]", (unsigned long)cpu_context(cpu, mm)); in local_flush_tlb_mm()
84 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_range()
89 cpu_context(cpu, mm) & ASID_MASK, start, end); in local_flush_tlb_range()
95 int newpid = cpu_context(cpu, mm) & ASID_MASK; in local_flush_tlb_range()
161 if (cpu_context(cpu, vma->vm_mm) != 0) { in local_flush_tlb_page()
166 printk("[tlbpage<%lu,0x%08lx>]", cpu_context(cpu, vma->vm_mm), page); in local_flush_tlb_page()
168 newpid = cpu_context(cpu, vma->vm_mm) & ASID_MASK; in local_flush_tlb_page()
202 if ((pid != (cpu_context(cpu, vma->vm_mm) & ASID_MASK)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
204 (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()
Dc-tx39.c154 if (cpu_context(smp_processor_id(), mm) != 0) in tx39_flush_cache_mm()
163 if (!(cpu_context(smp_processor_id(), vma->vm_mm))) in tx39_flush_cache_range()
182 if (cpu_context(smp_processor_id(), mm) == 0) in tx39_flush_cache_page()
Dc-r3k.c248 cpu_context(smp_processor_id(), mm), addr); in r3k_flush_cache_page()
251 if (cpu_context(smp_processor_id(), mm) == 0) in r3k_flush_cache_page()
Dtlb-r4k.c110 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_mm()
123 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_range()
215 if (cpu_context(cpu, vma->vm_mm) != 0) { in local_flush_tlb_page()
Dc-r4k.c468 if (cpu_context(i, mm)) in has_valid_asid()
473 return cpu_context(smp_processor_id(), mm); in has_valid_asid()
608 if (cpu_context(cpu, mm) != 0) in local_r4k_flush_cache_page()
/linux-4.1.27/arch/avr32/kernel/
Dprocess.c129 fp = tsk->thread.cpu_context.r7; in show_trace_log_lvl()
186 sp = tsk->thread.cpu_context.ksp; in show_stack_log_lvl()
290 p->thread.cpu_context.r0 = arg; in copy_thread()
291 p->thread.cpu_context.r1 = usp; /* fn */ in copy_thread()
292 p->thread.cpu_context.r2 = (unsigned long)syscall_return; in copy_thread()
293 p->thread.cpu_context.pc = (unsigned long)ret_from_kernel_thread; in copy_thread()
300 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
303 p->thread.cpu_context.sr = MODE_SUPERVISOR | SR_GM; in copy_thread()
304 p->thread.cpu_context.ksp = (unsigned long)childregs; in copy_thread()
335 unsigned long fp = p->thread.cpu_context.r7; in get_wchan()
[all …]
/linux-4.1.27/arch/mips/include/asm/
Dmmu_context.h85 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) macro
86 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & ASID_MASK)
119 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_new_mmu_context()
132 cpu_context(i, mm) = 0; in init_new_context()
148 if ((cpu_context(cpu, next) ^ asid_cache(cpu)) & ASID_VERSION_MASK) in switch_mm()
218 cpu_context(cpu, mm) = 0; in drop_mmu_context()
/linux-4.1.27/arch/sh/include/asm/
Dmmu_context.h38 #define cpu_context(cpu, mm) ((mm)->context.id[cpu]) macro
41 (cpu_context((cpu), (mm)) & MMU_CONTEXT_ASID_MASK)
62 if (((cpu_context(cpu, mm) ^ asid) & MMU_CONTEXT_VERSION_MASK) == 0) in get_mmu_context()
90 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_mmu_context()
103 cpu_context(i, mm) = NO_CONTEXT; in init_new_context()
/linux-4.1.27/arch/arm/include/asm/
Dthread_info.h57 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))
108 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
111 ((unsigned long)(task_thread_info(tsk)->cpu_context.r7))
/linux-4.1.27/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()
Dcache-sh4.c192 if (cpu_context(smp_processor_id(), mm) == NO_CONTEXT) in sh4_flush_cache_mm()
223 if (cpu_context(smp_processor_id(), vma->vm_mm) == NO_CONTEXT) in sh4_flush_cache_page()
286 if (cpu_context(smp_processor_id(), vma->vm_mm) == NO_CONTEXT) in sh4_flush_cache_range()
/linux-4.1.27/arch/arm/kernel/
Dxscale-cp0.c39 thread->cpu_context.extra[0] = 0; in dsp_do()
40 thread->cpu_context.extra[1] = 0; in dsp_do()
44 dsp_save_state(current_thread_info()->cpu_context.extra); in dsp_do()
45 dsp_load_state(thread->cpu_context.extra); in dsp_do()
Dprocess.c211 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); in copy_thread()
220 thread->cpu_context.r4 = stk_sz; in copy_thread()
221 thread->cpu_context.r5 = stack_start; in copy_thread()
224 thread->cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
225 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
Dasm-offsets.c72 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
/linux-4.1.27/arch/arm64/kernel/
Dprocess.c259 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
289 p->thread.cpu_context.x19 = stack_start; in copy_thread()
290 p->thread.cpu_context.x20 = stk_sz; in copy_thread()
292 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
293 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
Dasm-offsets.c42 DEFINE(THREAD_CPU_CONTEXT, offsetof(struct task_struct, thread.cpu_context)); in main()
/linux-4.1.27/arch/unicore32/include/asm/
Dthread_info.h74 struct cpu_context_save cpu_context; /* cpu context */ member
105 ((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
107 ((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
109 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
Dsuspend.h21 struct cpu_context_save cpu_context; /* cpu context */ member
/linux-4.1.27/arch/unicore32/kernel/
Dprocess.c237 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); in copy_thread()
238 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
240 thread->cpu_context.pc = (unsigned long)ret_from_kernel_thread; in copy_thread()
241 thread->cpu_context.r4 = stack_start; in copy_thread()
242 thread->cpu_context.r5 = stk_sz; in copy_thread()
245 thread->cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
Dasm-offsets.c46 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context)); in main()
101 cpu_context)); in main()
/linux-4.1.27/arch/arm64/include/asm/
Dthread_info.h81 ((unsigned long)(tsk->thread.cpu_context.pc))
83 ((unsigned long)(tsk->thread.cpu_context.sp))
85 ((unsigned long)(tsk->thread.cpu_context.fp))
Dprocessor.h63 struct cpu_context { struct
80 struct cpu_context cpu_context; /* cpu context */ argument
/linux-4.1.27/arch/microblaze/include/asm/
Dthread_info.h31 struct cpu_context { struct
74 struct cpu_context cpu_context; argument
/linux-4.1.27/arch/mips/kernel/
Dsmp.c340 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_mm()
341 cpu_context(cpu, mm) = 0; in flush_tlb_mm()
379 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_range()
380 cpu_context(cpu, mm) = 0; in flush_tlb_range()
425 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm)) in flush_tlb_page()
426 cpu_context(cpu, vma->vm_mm) = 0; in flush_tlb_page()
/linux-4.1.27/arch/sh/kernel/
Dsmp.c368 cpu_context(i, mm) = 0; in flush_tlb_mm()
405 cpu_context(i, mm) = 0; in flush_tlb_range()
448 cpu_context(i, vma->vm_mm) = 0; in flush_tlb_page()
/linux-4.1.27/arch/mips/kvm/
Dtlb.c615 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in kvm_get_new_mmu_context()
687 cpu_context(cpu, current->mm)); in kvm_arch_vcpu_load()
760 if (((cpu_context(cpu, current->mm) ^ asid_cache(cpu)) & in kvm_arch_vcpu_put()
763 cpu_context(cpu, current->mm)); in kvm_arch_vcpu_put()