Skip to content

Commit

Permalink
[MIPS] TLS: set_thread_area returns asmlinkage int not void.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Sep 27, 2006
1 parent 717736d commit 06be375
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/mips/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,16 @@ asmlinkage int sys_olduname(struct oldold_utsname __user * name)
return error;
}

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

ti->tp_value = addr;

/* If some future MIPS implementation has this register in hardware,
* we will need to update it here (and in context switches). */

return 0;
}

asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3)
Expand Down

0 comments on commit 06be375

Please sign in to comment.