当前位置:网站首页>Interrupt processing
Interrupt processing
2022-06-13 05:48:00 【A mouse crossing the street】
The whole process of interrupt refers to the process starting from the interrupt request sent by the interrupt source ,CPU In response to this request , The current program was interrupted , Go to interrupt service program , Until the interrupt service program is executed ,CPU Return to the original program and continue the whole process .
step
- Request interrupt → In response to interrupt → Turn off interrupt
- Keep breakpoints
- Bring out interrupt service program
- Protection site
- Open interrupt
- Execute interrupt service procedure
- Turn off interrupt
- Restore the scene
- Turn on interrupt
- Interrupt return

2. Save breakpoints : Ensure that after the interrupt program is executed, it can return to continue to execute the following program , In fact, the program counter is saved
3. Bring out interrupt service program : In fact, it is to read the address of the program we want to execute , In order to carry out
4. Save the scene : Save the data in the register , So that the data can be recovered when it is executed . In order that the interrupt handler does not destroy the contents of the register in the main program , The contents of each register at the breakpoint shall be pushed into the stack for protection , Re entry interrupt processing .
On interrupt and off interrupt : Lock
take CPU Do not respond to higher level interrupt requests
When entering the interrupt service program , CPU Ben has been automatically disabled CPU Interrupt response on , because CPU It cannot be assumed that an interrupt service routine is reentrant .
If it is interrupted while saving the register value , Then another operation is likely to rewrite the register , Site cannot be recovered
10. Interrupt return
An interrupt return instruction shall be arranged at the end of the interrupt service subroutine IRET, Execute the command , The system automatically saves the stored in the stack IP/EIP and CS Value pop-up , So as to restore the address value at the breakpoint of the main program , It also automatically restores the flag register FR or EFR The content of , send CPU Go to the interrupted program to continue execution
边栏推荐
- How to Algorithm Evaluation Methods
- Misunderstanding of tongweb due to ease of use
- System performance monitoring system
- 19 calling subprocess (callactivity) of a flowable task
- About Evaluation Metrics
- Error: unmapped character encoding GBK
- 9. Errorstartevent and errorboundaryevent of error events
- How slow is the application system on tongweb? How dead is it?
- MySQL advanced query
- About the solution of pychart that cannot be opened by double clicking
猜你喜欢

MySQL table data modification

Sentinel series introduction to service flow restriction

Django uses redis to store sessions starting from 0

How to Algorithm Evaluation Methods

A simple recursion problem of linked list

Source code analysis of ArrayList

Automatic database backup (using Navicat)

Sentinel series hot spot current limiting

MySQL fuzzy query and sorting by matching degree

2 first experience of drools
随机推荐
Building a stand-alone version of Nacos series
Tongweb card, tongweb card, tongweb card
Nacos series registry principle and source code analysis
Web site learning and sorting
MySQL installation in Linux Environment
Getclassloader() returns null, getclassloader() gets null
Integer tips
Hump naming and underlining
SPI primary key generation strategy for shardingsphere JDBC
powershell优化之一:提示符美化
A fast week
Etcd understanding of microservice architecture
Celery understands
2021.9.29 learning log MIME type
Basic operations of MySQL auto correlation query
Sentinel series hot spot current limiting
Explanation of service registration and discovery API of Nacos series
MySQL table data modification
= = relation between int and integer
Sentinel series introduction to service flow restriction