pthreaddef.h 695 B

1234567891011121314151617181920212223
  1. /*
  2. * This file is subject to the terms and conditions of the LGPL V2.1
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2019 Kalray Inc.
  7. */
  8. /* Required stack pointer alignment at beginning. */
  9. #define STACK_ALIGN 32
  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 32
  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))