pthreaddef.h 750 B

1234567891011121314151617181920212223242526
  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. /* Default stack size. */
  8. #define ARCH_STACK_DEFAULT_SIZE (2 * 1024 * 1024)
  9. /* Required stack pointer alignment at beginning. SSE requires 16
  10. bytes. */
  11. #define STACK_ALIGN 16
  12. /* Minimal stack size after allocating thread descriptor and guard size. */
  13. #define MINIMAL_REST_STACK 2048
  14. /* Alignment requirement for TCB. */
  15. #define TCB_ALIGNMENT 16
  16. /* Location of current stack frame. */
  17. #define CURRENT_STACK_FRAME __builtin_frame_address (0)
  18. /* XXX Until we have a better place keep the definitions here. */
  19. #define __exit_thread_inline(val) \
  20. INLINE_SYSCALL (exit, 1, (val))