-
Notifications
You must be signed in to change notification settings - Fork 661
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
BL 和 BLx 指令在判断的时候减去的长度好像存在问题 #58
Comments
你好,可否有时间验证一下呢 |
BL 相关的汇编代码: 从这里地址偏差上看BL 是4字节的,BLX register 是2字节的,(对于 BLX label 又是4字节的,这个我还没有遇到) |
可以触发一下断言或 Hardfault 正好测试一下有没有效果哈 |
对于HardFault_Handler 以汇编的形式给出,这个不太好移植,怎么在C语言环境下的 HardFault_Handler 中获取 LR 的值 用来进行硬件状态判断,请指导一下 |
参考一下 demo 文件下的示例吧 |
disassembly_ins_is_bl_blx(pc - sizeof(size_t)) && (depth < size)) 这里的减4 应该只适用于BL 指令,在指向BL或者BLX 之前会把当前地址加上一个指令大小,BLx 指令应该是减去2吧?这里仅仅是我个人的看法,还没去验证,如果有错误,还请指导一下
The text was updated successfully, but these errors were encountered: