尝试修复其他芯片的编译

This commit is contained in:
zhangzheng
2024-04-10 15:19:02 +00:00
parent 1cca0dc8de
commit 780d4db78d
22 changed files with 114 additions and 33 deletions

View File

@@ -126,11 +126,17 @@ typedef struct thread
static inline void thread_set_msg_buf(thread_t *th, void *msg, void *umsg)
{
th->msg.msg = msg;
#if IS_ENABLED(CONFIG_MMU)
th->msg.umsg = umsg;
#endif
}
static inline void *thread_get_msg_buf(thread_t *th)
{
#if IS_ENABLED(CONFIG_MMU)
return th->msg.umsg;
#else
return th->msg.msg;
#endif
}
static inline void *thread_get_kmsg_buf(thread_t *th)
{