Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * sys_parisc32.c: Conversion between 32bit and 64bit native syscalls. |
| 4 | * |
| 5 | * Copyright (C) 2000-2001 Hewlett Packard Company |
| 6 | * Copyright (C) 2000 John Marvin |
| 7 | * Copyright (C) 2001 Matthew Wilcox |
Helge Deller | ab8a261 | 2014-07-10 18:07:17 +0200 | [diff] [blame] | 8 | * Copyright (C) 2014 Helge Deller <deller@gmx.de> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * |
| 10 | * These routines maintain argument size conversion between 32bit and 64bit |
| 11 | * environment. Based heavily on sys_ia32.c and sys_sparc32.c. |
| 12 | */ |
| 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #include <linux/compat.h> |
| 15 | #include <linux/kernel.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #include <linux/syscalls.h> |
| 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | asmlinkage long sys32_unimplemented(int r26, int r25, int r24, int r23, |
| 20 | int r22, int r21, int r20) |
| 21 | { |
| 22 | printk(KERN_ERR "%s(%d): Unimplemented 32 on 64 syscall #%d!\n", |
| 23 | current->comm, current->pid, r20); |
| 24 | return -ENOSYS; |
| 25 | } |
Helge Deller | ab8a261 | 2014-07-10 18:07:17 +0200 | [diff] [blame] | 26 | |
| 27 | asmlinkage long sys32_fanotify_mark(compat_int_t fanotify_fd, compat_uint_t flags, |
| 28 | compat_uint_t mask0, compat_uint_t mask1, compat_int_t dfd, |
| 29 | const char __user * pathname) |
| 30 | { |
| 31 | return sys_fanotify_mark(fanotify_fd, flags, |
| 32 | ((__u64)mask1 << 32) | mask0, |
| 33 | dfd, pathname); |
| 34 | } |