sys_parisc32.c 993 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * sys_parisc32.c: Conversion between 32bit and 64bit native syscalls.
  3. *
  4. * Copyright (C) 2000-2001 Hewlett Packard Company
  5. * Copyright (C) 2000 John Marvin
  6. * Copyright (C) 2001 Matthew Wilcox
  7. * Copyright (C) 2014 Helge Deller <deller@gmx.de>
  8. *
  9. * These routines maintain argument size conversion between 32bit and 64bit
  10. * environment. Based heavily on sys_ia32.c and sys_sparc32.c.
  11. */
  12. #include <linux/compat.h>
  13. #include <linux/kernel.h>
  14. #include <linux/syscalls.h>
  15. asmlinkage long sys32_unimplemented(int r26, int r25, int r24, int r23,
  16. int r22, int r21, int r20)
  17. {
  18. printk(KERN_ERR "%s(%d): Unimplemented 32 on 64 syscall #%d!\n",
  19. current->comm, current->pid, r20);
  20. return -ENOSYS;
  21. }
  22. asmlinkage long sys32_fanotify_mark(compat_int_t fanotify_fd, compat_uint_t flags,
  23. compat_uint_t mask0, compat_uint_t mask1, compat_int_t dfd,
  24. const char __user * pathname)
  25. {
  26. return sys_fanotify_mark(fanotify_fd, flags,
  27. ((__u64)mask1 << 32) | mask0,
  28. dfd, pathname);
  29. }