Armv7 Exception Return Address

ExceptionReturn InstructionInstruction returned toWhy(Find in TRM)
SVCMOVS PC, R14Next InstructionTakeSVCException:R14 = PC - 4the program counter is not updated when the exception is taken, so lr point the next instruction
UndefMOVS PC, R14Next InstructionTakeUndefInstrException:R14 = PC - 4same as SVC
Prefetch AbortSUBS PC, R14, #4Aborting instructionTakePrefetchAbortException: R14 = PC - 4save as SVC,the difference is returning to the aborting instruction, not the next instruction
Data abortSUBS PC, R14, #8Aborting instruction if preciseTakeDataAbortException : R14 = PCsave as Prefetch Abort , but lr = PC not PC - 4
FIQSUBS PC, R14, #4Next InstructionTakeIRQException : R14 = PC - 4IRQ or FIQ exceptions are generated only after the program counter has been updated, so lr point two instructions beyond where the exception occurred, execution must continue from the instruction prior to the one pointed to by lr
IRQSUBS PC, R14, #4Next InstructionTakeFIQException : R14 = PC - 4same as FIQ
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值