Lab 3 QA
Q1
Change
svc
instruction tobrk
(breakpoint) instruction. See the difference in ELR_EL2(return address). Explain why there is a difference.
brk
會指向 instruction 的位置,svc
會指向下一個 instruction
Q2
Do you need to save floating point SIMD registers in ISRs? Why or why not.
只要確保 handler 裡面沒有用到 floating point 相關的 register 或 instruction 就不用存
Q3
What will happen if you don’t clear peripherals’ interrupt signal?
以 local timer 為例,counter 數到 0 並 reload 時會將 interrupt bit 設為 1,並且在下次 interrupt 觸發前沒有檢查機制,需要手動設定 IRQ clear & reload register。所以如果沒有清掉的話,會不斷觸發 interrupt