Skip to content

Conversation

@guisuanzi
Copy link

rt_weak rt_bool_t rt_hw_interrupt_is_disabled(void)

返回 return RT_FALSE;

会导致 void rt_sched_post_ctx_switch(struct rt_thread *thread) 无法通过判断造成RISC-V芯片K210产生错误,无法正确启动

rt_weak rt_bool_t rt_hw_interrupt_is_disabled(void) 返回  return RT_FALSE;
会导致 void rt_sched_post_ctx_switch(struct rt_thread *thread) 无法通过判断造成RISC-V芯片K210产生错误
@github-actions github-actions bot added the Kernel PR has src relate code label Dec 13, 2024
rt_weak rt_bool_t rt_hw_interrupt_is_disabled(void)
{
return RT_FALSE;
// return RT_FALSE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不应该是这样修改的,而是说由bsp或chip来实现这个rt_hw_interrupt_is_disabled函数,这里的实现只是一个例子,是weak弱符号方式的

@mysterywolf mysterywolf marked this pull request as draft December 13, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kernel PR has src relate code prototype

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants