[ARM]AArch64異常

AArch64 異常

Synchronous

Asynchronous

- IRQ
- FIQ
- SError

Synchronous exceptions include

 - Service call: SVCs, SMCs and HVCs(covered later) 
 - Aborts from MMU 
 - SP and PC alignment checking 
 - Unallocated instructions

SError exceptions include

Asynchronous data abrots

Taking an exception

when an exception occurs:

 - SPSR_ELn updated 
 - PSTATE updated (EL stays the same OR gets higher)
 - Return address stared to ELR_ELn 
 - ESR_ELn updated with cause of exception 
 - Branches to the exception table

To return from an exception execute ERET instruction

 - Restores PSTATE from SPSR_ELn 
 - Restores PC from ELR_ELn
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章