Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for responding and stopping response of host computer and processing peripheral interrupt

A host and host service technology, applied in the field of computer systems, can solve buffer overflow and other problems, achieve the effect of simplifying difficulty and solving buffer overflow

Inactive Publication Date: 2009-02-25
VIMICRO CORP
View PDF0 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method is not ideal for those situations where the interrupt service routine takes a long time, because the peripheral device will not respond to the host's command until the interrupt is over, so if the host loops through the communication port at this time to send commands to test this memory , the peripheral device will store the instructions of the host in a cache, if the interruption time is long, the host will continue to send commands to the peripheral, which will cause buffer overflow and cause serious consequences

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for responding and stopping response of host computer and processing peripheral interrupt
  • Method for responding and stopping response of host computer and processing peripheral interrupt

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The technical solution of the present invention will be described in more detail below with reference to the drawings and embodiments.

[0043] Such as figure 1 As shown, in general, the host needs to communicate and set up with the peripheral device through a specific communication port (such as USB, serial port, etc.) under the premise of following a certain communication protocol.

[0044] When the peripheral device generates an interrupt, it will call the corresponding interrupt service subroutine to realize the function. If the host computer wants to implement an interrupt response application, it must know that the interrupt has been generated after the peripheral device generates an interrupt and before calling the corresponding interrupt service subroutine, and execute the corresponding interrupt response accordingly.

[0045] Such as figure 2 As shown, according to the above idea, after the peripheral device generates an interrupt and before calling the corr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method of a host computer processing peripheral interrupt comprises the steps as follows: storing interrupt type identification of responsive interrupt of each type in the host computer; outputting information to a communication port between an interrupt subprogram and a host computer after the peripheral generates the interrupt and before the corresponding interrupt subprogram is dispatched to conduct implementing functions, or after the interrupt is ended; the information contains an interrupt type identification and a status indication identification of the interrupt, and the value of the status indication identification correspondingly shows that the interrupt is generated or ended; when the host computer detects information received by the communication port, if the generation of the interrupt is judged according to the value of the status indication identification, whether the interrupt type identification carried in the information is stored in the local area is judged; if yes, the interrupt responded; if the ending status of the peripheral interrupt is judged according to the value of the status indication identification, whether the interrupt type identification carried in the information is stored in the local area is judged; if yes, the response interrupt is stopped. The invention solves the problem of buffer overflow caused by too long peripheral interrupt time.

Description

technical field [0001] The invention relates to a computer system, in particular to a method for a host computer to respond, stop responding and process peripheral interrupts. Background technique [0002] In the synchronous debugging and application of the peripheral hardware and the host (host) side, the host responds to the interrupt generated by the peripheral has always been a relatively difficult bottleneck. This is because the interrupts generated by the general peripherals can only be detected by themselves, and the functions are realized by responding to the interrupt service subroutine, but the host cannot directly know when the peripherals generate interrupts, and when they are interrupted. When to end the interruption. [0003] When performing synchronous debugging, the existing method for the host to detect the end of the peripheral interrupt is to let the peripheral update the flag bit in its own memory after the interrupt service is completed, and the host se...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/46
Inventor 蒋亚诚谢韬
Owner VIMICRO CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products