uClibc_arch_features.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright (C) 2017 Hangzhou C-SKY Microsystems co.,ltd.
  3. *
  4. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB
  5. * in this tarball.
  6. */
  7. /*
  8. * Track misc arch-specific features that aren't config options
  9. */
  10. #ifndef _BITS_UCLIBC_ARCH_FEATURES_H
  11. #define _BITS_UCLIBC_ARCH_FEATURES_H
  12. # define __UCLIBC_ABORT_INSTRUCTION__ ".long 0xffffffff"
  13. /* can your target use syscall6() for mmap ? */
  14. #undef __UCLIBC_MMAP_HAS_6_ARGS__
  15. /* does your target use statx */
  16. #define __UCLIBC_HAVE_STATX__
  17. #ifdef __CSKYABIV2__
  18. #undef __UCLIBC_SYSCALL_ALIGN_64BIT__
  19. #else
  20. #define __UCLIBC_SYSCALL_ALIGN_64BIT__
  21. #endif
  22. /* does your target have a broken create_module() ? */
  23. #define __UCLIBC_BROKEN_CREATE_MODULE__
  24. /* does your target have to worry about older [gs]etrlimit() ? */
  25. #define __UCLIBC_HANDLE_OLDER_RLIMIT__
  26. /* does your target have an asm .set ? */
  27. #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
  28. /* define if target doesn't like .global */
  29. #undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
  30. /* define if target supports .weak */
  31. #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
  32. /* define if target supports .weakext */
  33. #undef __UCLIBC_HAVE_ASM_WEAKEXT_DIRECTIVE__
  34. /* needed probably only for ppc64 */
  35. #undef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
  36. /* define if target supports IEEE signed zero floats */
  37. #define __UCLIBC_HAVE_SIGNED_ZERO__
  38. /* define if target supports CFI pseudo ops */
  39. #define __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__
  40. #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */