summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/compat_wrapper.c
diff options
context:
space:
mode:
authorAlexey Ishchuk <aishchuk@linux.vnet.ibm.com>2014-11-14 14:27:58 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2014-11-19 09:46:43 +0100
commit4eafad7febd482092b331ea72c37274d745956be (patch)
tree81df1dd45ee04b56180da2214fae5a3bfe66ea2a /arch/s390/kernel/compat_wrapper.c
parents390: fix ptrace of user area if the inferior uses vector registers (diff)
downloadlinux-4eafad7febd482092b331ea72c37274d745956be.tar.xz
linux-4eafad7febd482092b331ea72c37274d745956be.zip
s390/kernel: add system calls for PCI memory access
Add the new __NR_s390_pci_mmio_write and __NR_s390_pci_mmio_read system calls to allow user space applications to access device PCI I/O memory pages on s390x platform. [ Martin Schwidefsky: some code beautification ] Signed-off-by: Alexey Ishchuk <aishchuk@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/compat_wrapper.c')
-rw-r--r--arch/s390/kernel/compat_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/compat_wrapper.c b/arch/s390/kernel/compat_wrapper.c
index c4f7a3d655b8..d7fa2f0f1425 100644
--- a/arch/s390/kernel/compat_wrapper.c
+++ b/arch/s390/kernel/compat_wrapper.c
@@ -218,3 +218,5 @@ COMPAT_SYSCALL_WRAP3(seccomp, unsigned int, op, unsigned int, flags, const char
COMPAT_SYSCALL_WRAP3(getrandom, char __user *, buf, size_t, count, unsigned int, flags)
COMPAT_SYSCALL_WRAP2(memfd_create, const char __user *, uname, unsigned int, flags)
COMPAT_SYSCALL_WRAP3(bpf, int, cmd, union bpf_attr *, attr, unsigned int, size);
+COMPAT_SYSCALL_WRAP3(s390_pci_mmio_write, const unsigned long, mmio_addr, const void __user *, user_buffer, const size_t, length);
+COMPAT_SYSCALL_WRAP3(s390_pci_mmio_read, const unsigned long, mmio_addr, void __user *, user_buffer, const size_t, length);