Searched hist:a7a0664ef7f2dc86135b4f4253e9d16c6a4eb9f5 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | thread.c | a7a0664ef7f2dc86135b4f4253e9d16c6a4eb9f5 Fri Apr 14 06:53:52 UTC 2023 Jerome Forissier <jerome.forissier@linaro.org> core: mark thread_init_core_local_stacks() as __nostackcheck
As its name implies, thread_init_core_local_stacks() performs stack initializations therefore it should not invoke the stack-checking hooks which are enabled when CFG_CORE_DEBUG_CHECK_STACKS=y. This is done by adding the __nostackcheck qualifier to the function. Without it, the boot hangs early and nothing is printed on the secure console.
Note that this also fixes similar symptoms with syscall profiling (CFG_FTRACE_SUPPORT=y CFG_SYSCALL_FTRACE=y) because the _mcount()/ __gnu_mcount_nc() hooks need the stack. Both __nostackcheck and __noprof expand to __attribute__((no_instrument_function)).
Fixes: ca8258906949 ("core: split core/arch/arm/kernel/thread.c") Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
|