Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update irq.c 解决K210 系统无法正常启动的问题 #9780

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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
@@ -150,7 +150,8 @@ RTM_EXPORT(rt_hw_interrupt_enable);

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