Home
last modified time | relevance | path

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

12

/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.c63 memset(&ti->cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
64 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
65 ti->cpu_context.r20 = (unsigned long)usp; /* fn */ in copy_thread()
66 ti->cpu_context.r19 = (unsigned long)arg; in copy_thread()
70 ti->cpu_context.msr = childregs->msr & ~MSR_IE; in copy_thread()
72 ti->cpu_context.r15 = (unsigned long)ret_from_kernel_thread - 8; in copy_thread()
79 memset(&ti->cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
80 ti->cpu_context.r1 = (unsigned long)childregs; in copy_thread()
82 ti->cpu_context.msr = (unsigned long)childregs->msr; in copy_thread()
102 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()
/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.h102 struct cpu_context { struct
118 struct cpu_context cpu_context; argument
124 .cpu_context = { \
146 #define thread_saved_pc(tsk) ((tsk)->thread.cpu_context.pc)
157 #define KSTK_EIP(tsk) ((tsk)->thread.cpu_context.pc)
158 #define KSTK_ESP(tsk) ((tsk)->thread.cpu_context.ksp)
/arch/mips/mm/
Dtlb-r3k.c71 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_mm()
73 printk("[tlbmm<%lu>]", (unsigned long)cpu_context(cpu, mm)); in local_flush_tlb_mm()
85 if (cpu_context(cpu, mm) != 0) { in local_flush_tlb_range()
90 cpu_context(cpu, mm) & ASID_MASK, start, end); in local_flush_tlb_range()
96 int newpid = cpu_context(cpu, mm) & ASID_MASK; in local_flush_tlb_range()
162 if (!vma || cpu_context(cpu, vma->vm_mm) != 0) { in local_flush_tlb_page()
167 printk("[tlbpage<%lu,0x%08lx>]", cpu_context(cpu, vma->vm_mm), page); in local_flush_tlb_page()
169 newpid = cpu_context(cpu, vma->vm_mm) & ASID_MASK; in local_flush_tlb_page()
203 if ((pid != (cpu_context(cpu, vma->vm_mm) & ASID_MASK)) || (cpu_context(cpu, vma->vm_mm) == 0)) { in __update_tlb()
205 (cpu_context(cpu, vma->vm_mm)), pid); in __update_tlb()
Dtlb-r8k.c58 if (cpu_context(cpu, mm) != 0) in local_flush_tlb_mm()
70 if (!cpu_context(cpu, mm)) in local_flush_tlb_range()
156 if (!cpu_context(cpu, vma->vm_mm)) in local_flush_tlb_page()
/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 = 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 …]
/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()
/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.c485 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); in copy_thread()
494 thread->cpu_context.r4 = stk_sz; in copy_thread()
495 thread->cpu_context.r5 = stack_start; in copy_thread()
498 thread->cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
499 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
/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()
/arch/unicore32/include/asm/
Dthread_info.h76 struct cpu_context_save cpu_context; /* cpu context */ member
112 ((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
114 ((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
116 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
Dsuspend.h21 struct cpu_context_save cpu_context; /* cpu context */ member
/arch/mips/include/asm/
Dmmu_context.h110 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) macro
111 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & ASID_MASK)
145 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_new_mmu_context()
164 cpu_context(i, mm) = 0; in init_new_context()
186 if ((cpu_context(cpu, next) ^ asid_cache(cpu)) & ASID_VERSION_MASK) in switch_mm()
327 cpu_context(cpu, mm) = 0; in drop_mmu_context()
335 cpu_context(i, mm) = 0; in drop_mmu_context()
/arch/arm64/include/asm/
Dthread_info.h88 ((unsigned long)(tsk->thread.cpu_context.pc))
90 ((unsigned long)(tsk->thread.cpu_context.sp))
92 ((unsigned long)(tsk->thread.cpu_context.fp))
Dprocessor.h61 struct cpu_context { struct
78 struct cpu_context cpu_context; /* cpu context */ argument
/arch/arm/include/asm/
Dthread_info.h58 struct cpu_context_save cpu_context; /* cpu context */ member
108 ((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
110 ((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
112 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
/arch/mips/kernel/
Dsmp.c292 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_mm()
293 cpu_context(cpu, mm) = 0; in flush_tlb_mm()
331 if (cpu != smp_processor_id() && cpu_context(cpu, mm)) in flush_tlb_range()
332 cpu_context(cpu, mm) = 0; in flush_tlb_range()
377 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm)) in flush_tlb_page()
378 cpu_context(cpu, vma->vm_mm) = 0; in flush_tlb_page()
/arch/unicore32/kernel/
Dprocess.c246 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); in copy_thread()
247 thread->cpu_context.sp = (unsigned long)childregs; in copy_thread()
249 thread->cpu_context.pc = (unsigned long)ret_from_kernel_thread; in copy_thread()
250 thread->cpu_context.r4 = stack_start; in copy_thread()
251 thread->cpu_context.r5 = stk_sz; in copy_thread()
254 thread->cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
/arch/arm64/kernel/
Dprocess.c297 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
327 p->thread.cpu_context.x19 = stack_start; in copy_thread()
328 p->thread.cpu_context.x20 = stk_sz; in copy_thread()
330 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
331 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
/arch/microblaze/include/asm/
Dthread_info.h31 struct cpu_context { struct
76 struct cpu_context cpu_context; argument

12