···14821482{14831483 struct pt_regs *child_regs;1484148414851485- child_regs = ia64_task_regs(child);14851485+ child_regs = task_pt_regs(child);14861486 switch (regno / sizeof(int)) {14871487 case PT_EBX: return child_regs->r11;14881488 case PT_ECX: return child_regs->r9;···15101510{15111511 struct pt_regs *child_regs;1512151215131513- child_regs = ia64_task_regs(child);15131513+ child_regs = task_pt_regs(child);15141514 switch (regno / sizeof(int)) {15151515 case PT_EBX: child_regs->r11 = value; break;15161516 case PT_ECX: child_regs->r9 = value; break;···16261626 * Stack frames start with 16-bytes of temp space16271627 */16281628 swp = (struct switch_stack *)(tsk->thread.ksp + 16);16291629- ptp = ia64_task_regs(tsk);16291629+ ptp = task_pt_regs(tsk);16301630 tos = (tsk->thread.fsr >> 11) & 7;16311631 for (i = 0; i < 8; i++)16321632 put_fpreg(i, &save->st_space[i], ptp, swp, tos);···16591659 * Stack frames start with 16-bytes of temp space16601660 */16611661 swp = (struct switch_stack *)(tsk->thread.ksp + 16);16621662- ptp = ia64_task_regs(tsk);16621662+ ptp = task_pt_regs(tsk);16631663 tos = (tsk->thread.fsr >> 11) & 7;16641664 for (i = 0; i < 8; i++)16651665 get_fpreg(i, &save->st_space[i], ptp, swp, tos);···16901690 * Stack frames start with 16-bytes of temp space16911691 */16921692 swp = (struct switch_stack *)(tsk->thread.ksp + 16);16931693- ptp = ia64_task_regs(tsk);16931693+ ptp = task_pt_regs(tsk);16941694 tos = (tsk->thread.fsr >> 11) & 7;16951695 for (i = 0; i < 8; i++)16961696 put_fpreg(i, (struct _fpreg_ia32 __user *)&save->st_space[4*i], ptp, swp, tos);···17341734 * Stack frames start with 16-bytes of temp space17351735 */17361736 swp = (struct switch_stack *)(tsk->thread.ksp + 16);17371737- ptp = ia64_task_regs(tsk);17371737+ ptp = task_pt_regs(tsk);17381738 tos = (tsk->thread.fsr >> 11) & 7;17391739 for (i = 0; i < 8; i++)17401740 get_fpreg(i, (struct _fpreg_ia32 __user *)&save->st_space[4*i], ptp, swp, tos);
+16-16
arch/ia64/kernel/perfmon.c
···17101710pfm_syswide_force_stop(void *info)17111711{17121712 pfm_context_t *ctx = (pfm_context_t *)info;17131713- struct pt_regs *regs = ia64_task_regs(current);17131713+ struct pt_regs *regs = task_pt_regs(current);17141714 struct task_struct *owner;17151715 unsigned long flags;17161716 int ret;···18151815 is_system = ctx->ctx_fl_system;1816181618171817 task = PFM_CTX_TASK(ctx);18181818- regs = ia64_task_regs(task);18181818+ regs = task_pt_regs(task);1819181918201820 DPRINT(("ctx_state=%d is_current=%d\n",18211821 state,···19451945 is_system = ctx->ctx_fl_system;1946194619471947 task = PFM_CTX_TASK(ctx);19481948- regs = ia64_task_regs(task);19481948+ regs = task_pt_regs(task);1949194919501950 DPRINT(("ctx_state=%d is_current=%d\n", 19511951 state,···40524052 */40534053 ia64_psr(regs)->up = 0;40544054 } else {40554055- tregs = ia64_task_regs(task);40554055+ tregs = task_pt_regs(task);4056405640574057 /*40584058 * stop monitoring at the user level···41344134 ia64_psr(regs)->up = 1;4135413541364136 } else {41374137- tregs = ia64_task_regs(ctx->ctx_task);41374137+ tregs = task_pt_regs(ctx->ctx_task);4138413841394139 /*41404140 * start monitoring at the kernel level the next···44044404 /*44054405 * when not current, task MUST be stopped, so this is safe44064406 */44074407- regs = ia64_task_regs(task);44074407+ regs = task_pt_regs(task);4408440844094409 /* force a full reload */44104410 ctx->ctx_last_activation = PFM_INVALID_ACTIVATION;···45304530 /*45314531 * per-task mode45324532 */45334533- tregs = task == current ? regs : ia64_task_regs(task);45334533+ tregs = task == current ? regs : task_pt_regs(task);4534453445354535 if (task == current) {45364536 /*···45934593{45944594 pfm_context_t *ctx;45954595 unsigned long flags;45964596- struct pt_regs *regs = ia64_task_regs(task);45964596+ struct pt_regs *regs = task_pt_regs(task);45974597 int ret, state;45984598 int free_ok = 0;45994599···49264926 if (unlikely(ret)) goto abort_locked;4927492749284928skip_fd:49294929- ret = (*func)(ctx, args_k, count, ia64_task_regs(current));49294929+ ret = (*func)(ctx, args_k, count, task_pt_regs(current));4930493049314931 call_made = 1;49324932···5050505050515051 pfm_clear_task_notify();5052505250535053- regs = ia64_task_regs(current);50535053+ regs = task_pt_regs(current);5054505450555055 /*50565056 * extract reason for being here and clear···57945794 * on every CPU, so we can rely on the pid to identify the idle task.57955795 */57965796 if ((info & PFM_CPUINFO_EXCL_IDLE) == 0 || task->pid) {57975797- regs = ia64_task_regs(task);57975797+ regs = task_pt_regs(task);57985798 ia64_psr(regs)->pp = is_ctxswin ? dcr_pp : 0;57995799 return;58005800 }···58775877 flags = pfm_protect_ctx_ctxsw(ctx);5878587858795879 if (ctx->ctx_state == PFM_CTX_ZOMBIE) {58805880- struct pt_regs *regs = ia64_task_regs(task);58805880+ struct pt_regs *regs = task_pt_regs(task);5881588158825882 pfm_clear_psr_up();58835883···60776077 BUG_ON(psr & IA64_PSR_I);6078607860796079 if (unlikely(ctx->ctx_state == PFM_CTX_ZOMBIE)) {60806080- struct pt_regs *regs = ia64_task_regs(task);60806080+ struct pt_regs *regs = task_pt_regs(task);6081608160826082 BUG_ON(ctx->ctx_smpl_hdr);60836083···64466446{64476447 struct pt_regs *regs;6448644864496449- regs = ia64_task_regs(current);64496449+ regs = task_pt_regs(current);6450645064516451 DPRINT(("called\n"));64526452···64726472{64736473 struct pt_regs *regs;6474647464756475- regs = ia64_task_regs(current);64756475+ regs = task_pt_regs(current);6476647664776477 DPRINT(("called\n"));64786478···67546754 local_irq_save(flags);6755675567566756 this_cpu = smp_processor_id();67576757- regs = ia64_task_regs(current);67576757+ regs = task_pt_regs(current);67586758 info = PFM_CPUINFO_GET();67596759 dcr = ia64_getreg(_IA64_REG_CR_DCR);67606760
+6-6
arch/ia64/kernel/process.c
···328328#endif329329330330#ifdef CONFIG_IA32_SUPPORT331331- if (IS_IA32_PROCESS(ia64_task_regs(task)))331331+ if (IS_IA32_PROCESS(task_pt_regs(task)))332332 ia32_save_state(task);333333#endif334334}···353353#endif354354355355#ifdef CONFIG_IA32_SUPPORT356356- if (IS_IA32_PROCESS(ia64_task_regs(task)))356356+ if (IS_IA32_PROCESS(task_pt_regs(task)))357357 ia32_load_state(task);358358#endif359359}···488488 * If we're cloning an IA32 task then save the IA32 extra489489 * state from the current task to the new task490490 */491491- if (IS_IA32_PROCESS(ia64_task_regs(current))) {491491+ if (IS_IA32_PROCESS(task_pt_regs(current))) {492492 ia32_save_state(p);493493 if (clone_flags & CLONE_SETTLS)494494 retval = ia32_clone_tls(p, child_ptregs);···701701kernel_thread_helper (int (*fn)(void *), void *arg)702702{703703#ifdef CONFIG_IA32_SUPPORT704704- if (IS_IA32_PROCESS(ia64_task_regs(current))) {704704+ if (IS_IA32_PROCESS(task_pt_regs(current))) {705705 /* A kernel thread is always a 64-bit process. */706706 current->thread.map_base = DEFAULT_MAP_BASE;707707 current->thread.task_size = DEFAULT_TASK_SIZE;···722722 current->thread.flags &= ~(IA64_THREAD_FPH_VALID | IA64_THREAD_DBG_VALID);723723 ia64_drop_fpu(current);724724#ifdef CONFIG_IA32_SUPPORT725725- if (IS_IA32_PROCESS(ia64_task_regs(current))) {725725+ if (IS_IA32_PROCESS(task_pt_regs(current))) {726726 ia32_drop_partial_page_list(current);727727 current->thread.task_size = IA32_PAGE_OFFSET;728728 set_fs(USER_DS);···755755 if (current->thread.flags & IA64_THREAD_DBG_VALID)756756 pfm_release_debug_registers(current);757757#endif758758- if (IS_IA32_PROCESS(ia64_task_regs(current)))758758+ if (IS_IA32_PROCESS(task_pt_regs(current)))759759 ia32_drop_partial_page_list(current);760760}761761