summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/compat_wrapper.c
diff options
context:
space:
mode:
authorPhilipp Rudo2017-06-19 10:45:33 +0200
committerMartin Schwidefsky2018-04-16 09:10:22 +0200
commit71406883fd35794d573b3085433c41d0a3bf6c21 (patch)
tree757865f09f0b8a41357c2c1ec7b1df915b057cbf /arch/s390/kernel/compat_wrapper.c
parents390/kexec_file: Add purgatory (diff)
downloadkernel-qcow2-linux-71406883fd35794d573b3085433c41d0a3bf6c21.tar.gz
kernel-qcow2-linux-71406883fd35794d573b3085433c41d0a3bf6c21.tar.xz
kernel-qcow2-linux-71406883fd35794d573b3085433c41d0a3bf6c21.zip
s390/kexec_file: Add kexec_file_load system call
This patch adds the kexec_file_load system call to s390 as well as the arch specific functions common code requires to work. Loaders for the different file types will be added later. Signed-off-by: Philipp Rudo <prudo@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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kernel/compat_wrapper.c b/arch/s390/kernel/compat_wrapper.c
index 11e9d8b5c1b0..607c5e9fba3d 100644
--- a/arch/s390/kernel/compat_wrapper.c
+++ b/arch/s390/kernel/compat_wrapper.c
@@ -182,3 +182,4 @@ COMPAT_SYSCALL_WRAP6(copy_file_range, int, fd_in, loff_t __user *, off_in, int,
COMPAT_SYSCALL_WRAP2(s390_guarded_storage, int, command, struct gs_cb *, gs_cb);
COMPAT_SYSCALL_WRAP5(statx, int, dfd, const char __user *, path, unsigned, flags, unsigned, mask, struct statx __user *, buffer);
COMPAT_SYSCALL_WRAP4(s390_sthyi, unsigned long, code, void __user *, info, u64 __user *, rc, unsigned long, flags);
+COMPAT_SYSCALL_WRAP5(kexec_file_load, int, kernel_fd, int, initrd_fd, unsigned long, cmdline_len, const char __user *, cmdline_ptr, unsigned long, flags)