pthreaddef.h 672 B

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