uClibc_arch_features.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifdef __CSKYABIV2__
  16. #undef __UCLIBC_SYSCALL_ALIGN_64BIT__
  17. #else
  18. #define __UCLIBC_SYSCALL_ALIGN_64BIT__
  19. #endif
  20. /* does your target have a broken create_module() ? */
  21. #define __UCLIBC_BROKEN_CREATE_MODULE__
  22. /* does your target have to worry about older [gs]etrlimit() ? */
  23. #define __UCLIBC_HANDLE_OLDER_RLIMIT__
  24. /* does your target have an asm .set ? */
  25. #define __UCLIBC_HAVE_ASM_SET_DIRECTIVE__
  26. /* define if target doesn't like .global */
  27. #undef __UCLIBC_ASM_GLOBAL_DIRECTIVE__
  28. /* define if target supports .weak */
  29. #define __UCLIBC_HAVE_ASM_WEAK_DIRECTIVE__
  30. /* define if target supports .weakext */
  31. #undef __UCLIBC_HAVE_ASM_WEAKEXT_DIRECTIVE__
  32. /* needed probably only for ppc64 */
  33. #undef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
  34. /* define if target supports IEEE signed zero floats */
  35. #define __UCLIBC_HAVE_SIGNED_ZERO__
  36. /* define if target supports CFI pseudo ops */
  37. #define __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__
  38. #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */