diff --git a/bsp/taihu/taihu.lds b/bsp/taihu/taihu.lds index 7b4eae28bde1c1b58264d8f90183f4034977592c..75e2cf762f7039c61cb562ab89997f27857146b7 100644 --- a/bsp/taihu/taihu.lds +++ b/bsp/taihu/taihu.lds @@ -36,7 +36,7 @@ SECTIONS .text : { - KEEP(build/libcpu/ppc/ppc405/start_gcc.o (.text)) + KEEP(build/kernel/libcpu/ppc/ppc405/start_gcc.o (.text)) *(.text) *(.fixup) diff --git a/src/mempool.c b/src/mempool.c index c9bcd7a45c6616c8af9d56fac7cde7c45ef90522..05904bfbc742427c0873420d2fc2221c199b52a7 100644 --- a/src/mempool.c +++ b/src/mempool.c @@ -356,6 +356,8 @@ void *rt_mp_alloc(rt_mp_t mp, rt_int32_t time) /* get current thread */ thread = rt_thread_self(); + thread->error = RT_EOK; + /* need suspend thread */ rt_thread_suspend(thread); rt_list_insert_after(&(mp->suspend_thread), &(thread->tlist));