sys_cris.c 958 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* $Id: sys_cris.c,v 1.6 2004/03/11 11:38:40 starvik Exp $
  2. *
  3. * linux/arch/cris/kernel/sys_cris.c
  4. *
  5. * This file contains various random system calls that
  6. * have a non-standard calling sequence on some platforms.
  7. * Since we don't have to do any backwards compatibility, our
  8. * versions are done in the most "normal" way possible.
  9. *
  10. */
  11. #include <linux/errno.h>
  12. #include <linux/sched.h>
  13. #include <linux/syscalls.h>
  14. #include <linux/mm.h>
  15. #include <linux/fs.h>
  16. #include <linux/smp.h>
  17. #include <linux/sem.h>
  18. #include <linux/msg.h>
  19. #include <linux/shm.h>
  20. #include <linux/stat.h>
  21. #include <linux/mman.h>
  22. #include <linux/file.h>
  23. #include <linux/ipc.h>
  24. #include <asm/uaccess.h>
  25. #include <asm/segment.h>
  26. asmlinkage long
  27. sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
  28. unsigned long flags, unsigned long fd, unsigned long pgoff)
  29. {
  30. /* bug(?): 8Kb pages here */
  31. return sys_mmap_pgoff(addr, len, prot, flags, fd, pgoff);
  32. }