unistd.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * arch/arm/include/asm/unistd.h
  3. *
  4. * Copyright (C) 2001-2005 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. *
  10. * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
  11. * no matter what the change is. Thanks!
  12. */
  13. #ifndef __ASM_ARM_UNISTD_H
  14. #define __ASM_ARM_UNISTD_H
  15. #define __NR_OABI_SYSCALL_BASE 0x900000
  16. #if defined(__thumb__) || defined(__ARM_EABI__)
  17. #define __NR_SYSCALL_BASE 0
  18. #include <asm/unistd-eabi.h>
  19. #else
  20. #define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
  21. #include <asm/unistd-oabi.h>
  22. #endif
  23. #include <asm/unistd-common.h>
  24. #define __NR_sync_file_range2 __NR_arm_sync_file_range
  25. /*
  26. * The following SWIs are ARM private.
  27. */
  28. #define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
  29. #define __ARM_NR_breakpoint (__ARM_NR_BASE+1)
  30. #define __ARM_NR_cacheflush (__ARM_NR_BASE+2)
  31. #define __ARM_NR_usr26 (__ARM_NR_BASE+3)
  32. #define __ARM_NR_usr32 (__ARM_NR_BASE+4)
  33. #define __ARM_NR_set_tls (__ARM_NR_BASE+5)
  34. #endif /* __ASM_ARM_UNISTD_H */