Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18099
b: refs/heads/master
c: dc8f602
h: refs/heads/master
i:
  18097: 7ae9498
  18095: 0ce300a
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 5ee4897 commit eecf229
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40bc9c671a9f0a5189c07a2b4280aec9b40e30cd
refs/heads/master: dc8f6029cd51af1b148846a32e68d69013a5cc0f
2 changes: 1 addition & 1 deletion trunk/arch/mips/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
break;

case PTRACE_GET_THREAD_AREA:
ret = put_user(child->thread_info->tp_value,
ret = put_user(task_thread_info(child)->tp_value,
(unsigned long __user *) data);
break;

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/kernel/ptrace32.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data)
break;

case PTRACE_GET_THREAD_AREA:
ret = put_user(child->thread_info->tp_value,
ret = put_user(task_thread_info(child)->tp_value,
(unsigned int __user *) (unsigned long) data);
break;

Expand All @@ -389,7 +389,7 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data)
break;

case PTRACE_GET_THREAD_AREA_3264:
ret = put_user(child->thread_info->tp_value,
ret = put_user(task_thread_info(child)->tp_value,
(unsigned long __user *) (unsigned long) data);
break;

Expand Down
7 changes: 3 additions & 4 deletions trunk/arch/mips/kernel/smp_mt.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ void prom_prepare_cpus(unsigned int max_cpus)
*/
void prom_boot_secondary(int cpu, struct task_struct *idle)
{
struct thread_info *gp = task_thread_info(idle);
dvpe();
set_c0_mvpcontrol(MVPCONTROL_VPC);

Expand All @@ -307,11 +308,9 @@ void prom_boot_secondary(int cpu, struct task_struct *idle)
write_tc_gpr_sp( __KSTK_TOS(idle));

/* global pointer */
write_tc_gpr_gp((unsigned long)idle->thread_info);
write_tc_gpr_gp((unsigned long)gp);

flush_icache_range((unsigned long)idle->thread_info,
(unsigned long)idle->thread_info +
sizeof(struct thread_info));
flush_icache_range((unsigned long)gp, (unsigned long)(gp + 1));

/* finally out of configuration and into chaos */
clear_c0_mvpcontrol(MVPCONTROL_VPC);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ asmlinkage int sys_olduname(struct oldold_utsname * name)

void sys_set_thread_area(unsigned long addr)
{
struct thread_info *ti = current->thread_info;
struct thread_info *ti = task_thread_info(current);

ti->tp_value = addr;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ static inline int simulate_llsc(struct pt_regs *regs)
*/
static inline int simulate_rdhwr(struct pt_regs *regs)
{
struct thread_info *ti = current->thread_info;
struct thread_info *ti = task_thread_info(current);
unsigned int opcode;

if (unlikely(get_insn_opcode(regs, &opcode)))
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/pmc-sierra/yosemite/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ void __init prom_prepare_cpus(unsigned int max_cpus)
*/
void prom_boot_secondary(int cpu, struct task_struct *idle)
{
unsigned long gp = (unsigned long) idle->thread_info;
unsigned long sp = gp + THREAD_SIZE - 32;
unsigned long gp = (unsigned long) task_thread_info(idle);
unsigned long sp = __KSTK_TOP(idle);

secondary_sp = sp;
secondary_gp = gp;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/sgi-ip27/ip27-smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ void __init prom_prepare_cpus(unsigned int max_cpus)
*/
void __init prom_boot_secondary(int cpu, struct task_struct *idle)
{
unsigned long gp = (unsigned long) idle->thread_info;
unsigned long sp = gp + THREAD_SIZE - 32;
unsigned long gp = (unsigned long)task_thread_info(idle);
unsigned long sp = __KSTK_TOS(idle);

LAUNCH_SLAVE(cputonasid(cpu),cputoslice(cpu),
(launch_proc_t)MAPPED_KERN_RW_TO_K0(smp_bootstrap),
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/sibyte/cfe/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void prom_boot_secondary(int cpu, struct task_struct *idle)

retval = cfe_cpu_start(cpu_logical_map(cpu), &smp_bootstrap,
__KSTK_TOS(idle),
(unsigned long)idle->thread_info, 0);
(unsigned long)task_thread_info(idle), 0);
if (retval != 0)
printk("cfe_start_cpu(%i) returned %i\n" , cpu, retval);
}
Expand Down

0 comments on commit eecf229

Please sign in to comment.