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