diff --git a/arch/x86_64/src/common/x86_64_allocateheap.c b/arch/x86_64/src/common/x86_64_allocateheap.c index 762be0ad461..f75aa4c6494 100644 --- a/arch/x86_64/src/common/x86_64_allocateheap.c +++ b/arch/x86_64/src/common/x86_64_allocateheap.c @@ -56,7 +56,7 @@ ****************************************************************************/ const uintptr_t g_idle_topstack = (uintptr_t)_ebss + - (uintptr_t)CONFIG_IDLETHREAD_STACKSIZE * (CONFIG_SMP_NCPUS + 1) - 16; + CONFIG_IDLETHREAD_STACKSIZE - 16; /**************************************************************************** * Name: up_allocate_heap