Build error handing
2015-07-10 09:39
239 查看
1 initialization makes pointer from integer without
a cast
-> 该error多半是在做类型强转时操作不当引起,譬如将某一地址赋值给指针变量时,如果按如下操作,则会引发该error
uint8_t *pBase = 0xf0053000
正确的写法应当是
uint8_t *pBase =(uint8_t
*)0xf0053000
2 "BUG:
scheduling while atomic"和"bad: scheduling from the idle
thread"
linux内核打印错误的时候,通常是在中断处理函数中调用了可以休眠的函数,如semaphore,mutex,sleep之类的可休眠的函数,
而linux内核要求在中断处理的时候,不允许系统调度,不允许抢占,要等到中断处理完成才能做其他事情。因此,要充分考虑
中断处理的时间,一定不能太久。
a cast
-> 该error多半是在做类型强转时操作不当引起,譬如将某一地址赋值给指针变量时,如果按如下操作,则会引发该error
uint8_t *pBase = 0xf0053000
正确的写法应当是
uint8_t *pBase =(uint8_t
*)0xf0053000
2 "BUG:
scheduling while atomic"和"bad: scheduling from the idle
thread"
linux内核打印错误的时候,通常是在中断处理函数中调用了可以休眠的函数,如semaphore,mutex,sleep之类的可休眠的函数,
而linux内核要求在中断处理的时候,不允许系统调度,不允许抢占,要等到中断处理完成才能做其他事情。因此,要充分考虑
中断处理的时间,一定不能太久。
相关文章推荐
- codeforce 3D. Least Cost Bracket Sequence(贪心)
- [视频]Win10 Build 10166串流Xbox One游戏演示:赞的没话说
- webpack: require.ensure与require AMD的区别
- Errors occurred during the build
- 使用UIButton
- 使用UIButton
- UGUI 实现界面 渐隐渐现 FadeIn/Out 效果
- 使用UIAlertView
- 使用UIAlertView
- 使用UIActionSheet
- 使用UIActionSheet
- 如何判断NGUI的ScrollView是否正在移动
- Win10 Build 10166 加入Wi-Fi购买 随时随地连Wi-Fi、不断网
- could not build module ‘Foundation’, could not build module ‘UIKit’……23个错误
- could not build module ‘Foundation’, could not build module ‘UIKit’……23个错误
- Windows 10 Build 10166正式推送 允许购买wifi
- Windows 10 Build 10166发布 Groove品牌正式上线
- pkg: cached package *:size mismatch, cannot continue
- iOS中UILabel 多行显示
- druid连接池配置