mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
powerpc/syscalls: switch rtas(2) to SYSCALL_DEFINE
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> [mpe: Update sys_ni.c for s/ppc_rtas/sys_rtas/] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
f3675644e1
commit
4c392e6591
@ -16,7 +16,7 @@ asmlinkage long sys_mmap2(unsigned long addr, size_t len,
|
||||
unsigned long prot, unsigned long flags,
|
||||
unsigned long fd, unsigned long pgoff);
|
||||
asmlinkage long ppc64_personality(unsigned long personality);
|
||||
asmlinkage int ppc_rtas(struct rtas_args __user *uargs);
|
||||
asmlinkage long sys_rtas(struct rtas_args __user *uargs);
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* __ASM_POWERPC_SYSCALLS_H */
|
||||
|
@ -260,7 +260,7 @@ COMPAT_SYS_SPU(utimes)
|
||||
COMPAT_SYS_SPU(statfs64)
|
||||
COMPAT_SYS_SPU(fstatfs64)
|
||||
SYSX(sys_ni_syscall,ppc_fadvise64_64,ppc_fadvise64_64)
|
||||
PPC_SYS_SPU(rtas)
|
||||
SYSCALL_SPU(rtas)
|
||||
OLDSYS(debug_setcontext)
|
||||
SYSCALL(ni_syscall)
|
||||
COMPAT_SYS(migrate_pages)
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <linux/memblock.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/reboot.h>
|
||||
#include <linux/syscalls.h>
|
||||
|
||||
#include <asm/prom.h>
|
||||
#include <asm/rtas.h>
|
||||
@ -1050,7 +1051,7 @@ struct pseries_errorlog *get_pseries_errorlog(struct rtas_error_log *log,
|
||||
}
|
||||
|
||||
/* We assume to be passed big endian arguments */
|
||||
asmlinkage int ppc_rtas(struct rtas_args __user *uargs)
|
||||
SYSCALL_DEFINE1(rtas, struct rtas_args __user *, uargs)
|
||||
{
|
||||
struct rtas_args args;
|
||||
unsigned long flags;
|
||||
|
@ -35,7 +35,6 @@
|
||||
#endif
|
||||
#define SYSCALL_SPU(func) SYSCALL(func)
|
||||
#define COMPAT_SYS_SPU(func) COMPAT_SYS(func)
|
||||
#define PPC_SYS_SPU(func) PPC_SYS(func)
|
||||
#define SYSX_SPU(f, f3264, f32) SYSX(f, f3264, f32)
|
||||
|
||||
.section .rodata,"a"
|
||||
|
@ -31,7 +31,6 @@
|
||||
|
||||
#define SYSCALL_SPU(func) SYSCALL(func)
|
||||
#define COMPAT_SYS_SPU(func) COMPAT_SYS(func)
|
||||
#define PPC_SYS_SPU(func) PPC_SYS(func)
|
||||
#define SYSX_SPU(f, f3264, f32) SYSX(f, f3264, f32)
|
||||
|
||||
/* Just insert a marker for ni_syscalls */
|
||||
|
@ -44,7 +44,6 @@ static void *spu_syscall_table[] = {
|
||||
|
||||
#define SYSCALL_SPU(func) sys_##func,
|
||||
#define COMPAT_SYS_SPU(func) sys_##func,
|
||||
#define PPC_SYS_SPU(func) ppc_##func,
|
||||
#define SYSX_SPU(f, f3264, f32) f,
|
||||
|
||||
#include <asm/systbl.h>
|
||||
|
@ -365,7 +365,7 @@ COND_SYSCALL(s390_pci_mmio_write);
|
||||
COND_SYSCALL_COMPAT(s390_ipc);
|
||||
|
||||
/* powerpc */
|
||||
cond_syscall(ppc_rtas);
|
||||
COND_SYSCALL(rtas);
|
||||
COND_SYSCALL(spu_run);
|
||||
COND_SYSCALL(spu_create);
|
||||
COND_SYSCALL(subpage_prot);
|
||||
|
Loading…
Reference in New Issue
Block a user