This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit b1373857b7c08d43a830278f6ae89849d212f1a6 Author: liwenxiang1 <[email protected]> AuthorDate: Tue Jan 7 15:26:47 2025 +0800 arch/x86_64: Resolve the issue of abnormal stack check display. Resolve the issue of abnormal stack check display Signed-off-by: liwenxiang1 <[email protected]> --- arch/x86_64/src/intel64/intel64_checkstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86_64/src/intel64/intel64_checkstack.c b/arch/x86_64/src/intel64/intel64_checkstack.c index 01ce8123f22..27d94d36123 100644 --- a/arch/x86_64/src/intel64/intel64_checkstack.c +++ b/arch/x86_64/src/intel64/intel64_checkstack.c @@ -72,7 +72,7 @@ size_t x86_64_stack_check(void *stackbase, size_t nbytes) /* Take extra care that we do not check outside the stack boundaries */ - start = STACK_ALIGN_UP((uintptr_t)stackbase); + start = STACK_ALIGN_UP((uintptr_t)stackbase + X86_64_RED_ZONE); end = STACK_ALIGN_DOWN((uintptr_t)stackbase + nbytes); /* Get the adjusted size based on the top and bottom of the stack */
