aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-03-19 23:26:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-03-20 12:04:00 -0400
commit6de7617e8892666073a9a8f6ba7e2f7882f4cadc (patch)
tree6689525c681c1fd32e96ec243e53dce30bd81df0
parentee076e81fc14ca79334d02970cea66604f183a14 (diff)
sparc: get rid of memory_ordering(2) wrapper
use current_pt_regs() in it instead Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--arch/sparc/kernel/sys_sparc_64.c4
-rw-r--r--arch/sparc/kernel/syscalls.S3
-rw-r--r--arch/sparc/kernel/systbls.h3
3 files changed, 3 insertions, 7 deletions
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c
index c15765539f65..b929414fa9f2 100644
--- a/arch/sparc/kernel/sys_sparc_64.c
+++ b/arch/sparc/kernel/sys_sparc_64.c
@@ -606,9 +606,9 @@ SYSCALL_DEFINE5(utrap_install, utrap_entry_t, type,
606 return 0; 606 return 0;
607} 607}
608 608
609asmlinkage long sparc_memory_ordering(unsigned long model, 609SYSCALL_DEFINE1(memory_ordering, unsigned long, model)
610 struct pt_regs *regs)
611{ 610{
611 struct pt_regs *regs = current_pt_regs();
612 if (model >= 3) 612 if (model >= 3)
613 return -EINVAL; 613 return -EINVAL;
614 regs->tstate = (regs->tstate & ~TSTATE_MM) | (model << 14); 614 regs->tstate = (regs->tstate & ~TSTATE_MM) | (model << 14);
diff --git a/arch/sparc/kernel/syscalls.S b/arch/sparc/kernel/syscalls.S
index f4c8fa7a4b35..d7d86b95011a 100644
--- a/arch/sparc/kernel/syscalls.S
+++ b/arch/sparc/kernel/syscalls.S
@@ -30,9 +30,6 @@ sys32_execveat:
30sys_nis_syscall: 30sys_nis_syscall:
31 ba,pt %xcc, c_sys_nis_syscall 31 ba,pt %xcc, c_sys_nis_syscall
32 add %sp, PTREGS_OFF, %o0 32 add %sp, PTREGS_OFF, %o0
33sys_memory_ordering:
34 ba,pt %xcc, sparc_memory_ordering
35 add %sp, PTREGS_OFF, %o1
36#ifdef CONFIG_COMPAT 33#ifdef CONFIG_COMPAT
37sys32_sigstack: 34sys32_sigstack:
38 ba,pt %xcc, do_sys32_sigstack 35 ba,pt %xcc, do_sys32_sigstack
diff --git a/arch/sparc/kernel/systbls.h b/arch/sparc/kernel/systbls.h
index 432aa84ad009..3352dbac9d55 100644
--- a/arch/sparc/kernel/systbls.h
+++ b/arch/sparc/kernel/systbls.h
@@ -46,8 +46,7 @@ asmlinkage long sys_utrap_install(utrap_entry_t type,
46 utrap_handler_t new_d, 46 utrap_handler_t new_d,
47 utrap_handler_t __user *old_p, 47 utrap_handler_t __user *old_p,
48 utrap_handler_t __user *old_d); 48 utrap_handler_t __user *old_d);
49asmlinkage long sparc_memory_ordering(unsigned long model, 49asmlinkage long sys_memory_ordering(unsigned long model);
50 struct pt_regs *regs);
51asmlinkage void sparc64_set_context(struct pt_regs *regs); 50asmlinkage void sparc64_set_context(struct pt_regs *regs);
52asmlinkage void sparc64_get_context(struct pt_regs *regs); 51asmlinkage void sparc64_get_context(struct pt_regs *regs);
53asmlinkage long sys32_truncate64(const char __user * path, 52asmlinkage long sys32_truncate64(const char __user * path,