Searched refs:cpu_context (Results 1 - 25 of 32) sorted by path

12

/linux-master/arch/sh/mm/
H A Dtlbflush_32.c19 if (vma->vm_mm && cpu_context(cpu, vma->vm_mm) != NO_CONTEXT) {
45 if (cpu_context(cpu, mm) != NO_CONTEXT) {
52 cpu_context(cpu, mm) = NO_CONTEXT;
112 if (cpu_context(cpu, mm) != NO_CONTEXT) {
116 cpu_context(cpu, mm) = NO_CONTEXT;
/linux-master/arch/arm/include/asm/
H A Dthread_info.h61 * __switch_to() assumes cpu_context follows immediately after cpu_domain.
68 struct cpu_context_save cpu_context; /* cpu context */ member in struct:thread_info
90 ((unsigned long)(task_thread_info(tsk)->cpu_context.pc))
92 ((unsigned long)(task_thread_info(tsk)->cpu_context.sp))
96 ((unsigned long)(task_thread_info(tsk)->cpu_context.fp))
99 ((unsigned long)(task_thread_info(tsk)->cpu_context.r7))
/linux-master/arch/arm/kernel/
H A Dasm-offsets.c50 DEFINE(TI_CPU_SAVE, offsetof(struct thread_info, cpu_context));
H A Dkgdb.c91 gdb_regs[_R4] = ti->cpu_context.r4;
92 gdb_regs[_R5] = ti->cpu_context.r5;
93 gdb_regs[_R6] = ti->cpu_context.r6;
94 gdb_regs[_R7] = ti->cpu_context.r7;
95 gdb_regs[_R8] = ti->cpu_context.r8;
96 gdb_regs[_R9] = ti->cpu_context.r9;
97 gdb_regs[_R10] = ti->cpu_context.sl;
98 gdb_regs[_FP] = ti->cpu_context.fp;
99 gdb_regs[_SPT] = ti->cpu_context.sp;
100 gdb_regs[_PC] = ti->cpu_context
[all...]
H A Dprocess.c243 memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save));
262 thread->cpu_context.r4 = (unsigned long)args->fn_arg;
263 thread->cpu_context.r5 = (unsigned long)args->fn;
266 thread->cpu_context.pc = (unsigned long)ret_from_fork;
267 thread->cpu_context.sp = (unsigned long)childregs;
H A Dxscale-cp0.c39 thread->cpu_context.extra[0] = 0;
40 thread->cpu_context.extra[1] = 0;
44 dsp_save_state(current_thread_info()->cpu_context.extra);
45 dsp_load_state(thread->cpu_context.extra);
/linux-master/arch/arm64/include/asm/
H A Dprocessor.h131 struct cpu_context { struct
148 struct cpu_context cpu_context; /* cpu context */ member in struct:thread_struct
H A 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))
/linux-master/arch/arm64/kernel/
H A Dasm-offsets.c48 DEFINE(THREAD_CPU_CONTEXT, offsetof(struct task_struct, thread.cpu_context));
H A Dkgdb.c131 struct cpu_context *cpu_context = &task->thread.cpu_context; local
136 gdb_regs[19] = cpu_context->x19;
137 gdb_regs[20] = cpu_context->x20;
138 gdb_regs[21] = cpu_context->x21;
139 gdb_regs[22] = cpu_context->x22;
140 gdb_regs[23] = cpu_context->x23;
141 gdb_regs[24] = cpu_context->x24;
142 gdb_regs[25] = cpu_context
[all...]
H A Dprocess.c349 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context));
400 p->thread.cpu_context.x19 = (unsigned long)args->fn;
401 p->thread.cpu_context.x20 = (unsigned long)args->fn_arg;
403 p->thread.cpu_context.pc = (unsigned long)ret_from_fork;
404 p->thread.cpu_context.sp = (unsigned long)childregs;
409 p->thread.cpu_context.fp = (unsigned long)childregs->stackframe;
/linux-master/arch/loongarch/include/asm/
H A Dmmu_context.h34 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) macro
36 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu]))
40 if ((cpu_context(cpu, mm) ^ asid_cache(cpu)) & asid_version_mask(cpu))
59 cpu_context(cpu, mm) = asid_cache(cpu) = asid;
72 cpu_context(i, mm) = 0;
146 cpu_context(cpu, mm) = 0;
/linux-master/arch/loongarch/kernel/
H A Dsmp.c626 if (cpu != smp_processor_id() && cpu_context(cpu, mm))
627 cpu_context(cpu, mm) = 0;
665 if (cpu != smp_processor_id() && cpu_context(cpu, mm))
666 cpu_context(cpu, mm) = 0;
711 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm))
712 cpu_context(cpu, vma->vm_mm) = 0;
/linux-master/arch/microblaze/include/asm/
H A Dthread_info.h28 struct cpu_context { struct
66 struct cpu_context cpu_context; member in struct:thread_info
/linux-master/arch/microblaze/kernel/
H A Dasm-offsets.c89 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context));
93 /* struct cpu_context */
94 DEFINE(CC_R1, offsetof(struct cpu_context, r1)); /* r1 */
95 DEFINE(CC_R2, offsetof(struct cpu_context, r2));
97 DEFINE(CC_R13, offsetof(struct cpu_context, r13));
98 DEFINE(CC_R14, offsetof(struct cpu_context, r14));
99 DEFINE(CC_R15, offsetof(struct cpu_context, r15));
100 DEFINE(CC_R16, offsetof(struct cpu_context, r16));
101 DEFINE(CC_R17, offsetof(struct cpu_context, r17));
102 DEFINE(CC_R18, offsetof(struct cpu_context, r1
[all...]
H A Dprocess.c67 memset(&ti->cpu_context, 0, sizeof(struct cpu_context));
68 ti->cpu_context.r1 = (unsigned long)childregs;
69 ti->cpu_context.r20 = (unsigned long)args->fn;
70 ti->cpu_context.r19 = (unsigned long)args->fn_arg;
73 ti->cpu_context.msr = childregs->msr & ~MSR_IE;
74 ti->cpu_context.r15 = (unsigned long)ret_from_kernel_thread - 8;
81 memset(&ti->cpu_context, 0, sizeof(struct cpu_context));
82 ti->cpu_context
[all...]
H A Dtraps.c43 (task->stack))->cpu_context.r1;
H A Dunwind.c284 const struct cpu_context *cpu_context = local
285 &thread_info->cpu_context;
289 cpu_context->r1,
290 cpu_context->r15,
/linux-master/arch/mips/include/asm/
H A Dmmu_context.h106 static inline u64 cpu_context(unsigned int cpu, const struct mm_struct *mm) function
125 (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu]))
197 ctx = cpu_context(cpu, mm);
/linux-master/arch/mips/kernel/
H A Dsmp.c561 if (cpu != smp_processor_id() && cpu_context(cpu, mm))
625 if (cpu != smp_processor_id() && cpu_context(cpu, mm))
691 if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm))
/linux-master/arch/mips/mm/
H A Dc-r3k.c246 cpu_context(smp_processor_id(), mm), addr);
249 if (cpu_context(smp_processor_id(), mm) == 0)
H A Dc-r4k.c438 return cpu_context(0, mm) != 0;
451 if (cpu_context(i, mm))
H A Dcontext.c59 if (!asid_versions_eq(cpu, cpu_context(cpu, mm), asid_cache(cpu)))
129 mmid = cpu_context(0, mm);
209 ctx = cpu_context(cpu, mm);
216 ctx = cpu_context(cpu, mm);
H A Dtlb-r3k.c74 if (cpu_context(cpu, mm) != 0) {
79 cpu_context(cpu, mm) & asid_mask, start, end);
85 int newpid = cpu_context(cpu, mm) & asid_mask;
152 if (cpu_context(cpu, vma->vm_mm) != 0) {
157 printk("[tlbpage<%lu,0x%08lx>]", cpu_context(cpu, vma->vm_mm), page);
159 newpid = cpu_context(cpu, vma->vm_mm) & asid_mask;
194 if ((pid != (cpu_context(cpu, vma->vm_mm) & asid_mask)) || (cpu_context(cpu, vma->vm_mm) == 0)) {
196 (cpu_context(cpu, vma->vm_mm)), pid);
H A Dtlb-r4k.c112 if (cpu_context(cpu, mm) != 0) {
215 if (cpu_context(cpu, vma->vm_mm) != 0) {

Completed in 300 milliseconds

12