Searched hist:"05994 c760d5d792c6c9c98342ff4957425567953" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | thread.c | 05994c760d5d792c6c9c98342ff4957425567953 Wed Jan 22 13:19:42 UTC 2025 Jens Wiklander <jens.wiklander@linaro.org> core: thread: get stacks from recorded end-va
Each stack has its end-va or top recorded in either thread_core_local[] or threads[] as tmp_stack_va_end, abt_stack_va_end, or stack_va_end. This address together with the known size of the stack is enough to calculate all the other needed stack related addresses: - start and end canaries, - top and bottom of the stacks.
Add and use new internal functions to calculate these addresses and remove the now unused macros. This is needed in later patches where the stacks aren't statically allocated.
INIT_CANARY(), GET_START_CANARY(), and GET_END_CANARY() are kept for now to see that the addresses for the canaries are calculated correctly in the new functions.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
|