未验证 提交 7882e42c 编写于 作者: H hipeanut 提交者: GitHub

[bsp/raspi3-32] fix some bug of funtion '__rt_ffs' (#6187)

* [bsp/raspi3-32] fix some bug of funtion '__rt_ffs'

* Update trap.c
Co-authored-by: mysterywolf's avatarMan, Jianting (Meco) <920369182@qq.com>
上级 2a7da005
......@@ -133,7 +133,12 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
#ifdef RT_USING_CPU_FFS
int __rt_ffs(int value)
{
int num = 0;
if (!value)
{
return 0;
}
int num = 1;
if ((value & 0xffff) == 0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册