地址线使用下拉,app中也使用断言,线程栈默认填充0x23+pro,malloc失败直接进断言

This commit is contained in:
ranchuan
2023-12-02 11:36:38 +08:00
parent 4a4b37d3f1
commit c4a1d5c088
8 changed files with 39 additions and 16 deletions

View File

@@ -152,7 +152,7 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
thread->stack_size = stack_size;
/* init thread stack */
rt_memset(thread->stack_addr, '#', thread->stack_size);
rt_memset(thread->stack_addr, '#'+priority, thread->stack_size);
#ifdef ARCH_CPU_STACK_GROWS_UPWARD
thread->sp = (void *)rt_hw_stack_init(thread->entry, thread->parameter,
(void *)((char *)thread->stack_addr),