pthreaddef.h 773 B

1234567891011121314151617181920212223242526
  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. /* Default stack size. */
  9. #define ARCH_STACK_DEFAULT_SIZE (2 * 1024 * 1024)
  10. /* Required stack pointer alignment at beginning. */
  11. #define STACK_ALIGN 32
  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 32
  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))