Arm Seven exception source and exception processing flow (four steps and three steps)

Source: Internet
Author: User

Arm Seven exception sources and exception handling processes

2014-11-30 Haidian District, Beijing Zhang Junhao

arm Seven kinds of anomaly sources and their working modes                   &N Bsp                          ,         &NB Sp                          ,         &NB SP;

exception SOURCE                                   nbsp         

meaning                     

RE set  (reset)                                 

Reset exception source          

SVC Mode (Supervisor protected mode)

Sw I (software interrupt )               

soft interrupt exception source       

svc mode                       &NBS P              

Un Define (undefined instruction)

undefined directive exception source

und mode                       &NBS P              

Pr Efetch abort                            / 

abort mode                                    

Da Ta abort                               &NB Sp    

data anomaly source          

abort mode                                    

IR q  (interrupt request )               

External exception source          

IRQ mode                       &NBS P               

FIQ (Fast Interrupt Request)

Fast Interrupt Exception Source

Fiq mode



The entry process for ARM exception handling (processor handling of specific exception events) (Hardware AutoComplete):

Four Step ( Two backup two modifications) Three small steps:

(1) Copy CPSR (Current program status register )To Spsr_<mode> (Save current program status register Saved
(2) Set the appropriate CPSR bit:
To change the processor state into the ARM state (exception handling cannot be returned in thumb)
2--changing the processor mode into the appropriate exception mode m[4:0]
3--setting the interrupt stop bit disables the corresponding interrupt (if required)
(3) Save return address current PC to lr_<mode>
(4) Set the PC as the corresponding anomaly vector
Steps to return the exception:
(1) Recovering from spsr_<mode> CPSR

(2) Restore PC from lr_<mode>

Arm Seven exception source and exception processing flow (four steps and three steps)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.