Interrupt control method, interrupt control apparatus and interrupt control medium
AssigneeFujitsu Limited
InventorKoutarou Sasage
Life of this patent
Estimating the term…
Abstract
Once accepting an interrupt, the control is such as to not accept any interrupt including that highest priority within the group to which the interrupt about to be processed belongs by referring to the interrupt management table. Then the vector number for the highest priority in the group from among the received interrupts is selected. Then the processing of a handler for the selected vector number is executed. The priority of the executed interrupt processing is reset to the lowest priority in the group.
Claims5
An interrupt control method, for making a computer execute a plurality of interrupts which are defined by a different priority, comprising:
- dividing the plurality of interrupts defined by different priorities into a plurality of groups and making a storage unit store information for identifying each of the interrupts, priority information for indicating the priority of each of the interrupts, and information for indicating the group to which each of the interrupts belongs;
- when receiving an interrupt, accepting the received interrupt and beginning processing of the accepted interrupt while inhibiting acceptance of any other interrupts, including other interrupts having a higher priority in a same group of the interrupt that has begun to be processed;
- obtaining, from the storage unit, information for the accepted interrupt;
- and
- executing the accepted interrupt and resetting the priority of the executed interrupt to a lowest priory in the group to which the executed interrupt belongs, wherein
- when one or more interrupts belonging to a same group are received simultaneously, the one or more simultaneously received interrupts are accepted for processing and information for each of the one or more accepted interrupts is obtained from the storage unit and an interrupt having a highest priority among the interrupts in the group to which the one or more accepted interrupts belongs is selected for execution and the executed interrupt is reset to a lowest priory in the group to which the one or more accepted interrupts belongs.
An interrupt control apparatus, comprising:
- a registration unit registering a plurality of interrupts with different priorities by dividing the interrupts into groups;
- a storage unit storing information to identify each of the interrupts divided into the groups by the registration unit, priority information to indicate a priority of each of the interrupts, and information to indicate the group to which each of the interrupts belongs;
- and
- an interrupt control unit performing the functions of:
- receiving an interrupt, accepting the received interrupt and indicating that the accepted interrupt is ready for processing, while inhibiting acceptance of any other interrupts, including other interrupts having a higher priority in a same group of the interrupt that has indicated as ready for processing,
- obtaining, from the storage unit, information for the accepted interrupt, and
- after execution of the accepted interrupt, resetting the priority of the executed interrupt to a lowest priory in the group to which the executed interrupt belongs, wherein
- when one or more interrupts belonging to a same group are received by the interrupt control unit simultaneously, the one or more simultaneously received interrupts are accepted for processing and information for each of the one or more accepted interrupts is obtained from the storage unit and an interrupt having a highest priority among the interrupts in the group to which the one or more accepted interrupts belongs is selected for execution and the executed interrupt is reset to a lowest priory in the group to which the one or more accepted interrupts belongs.
A computer readable storage medium encoded with a computer program for performing interrupts with different priorities, the program being executed by a computer to perform a method, comprising:
- registering a plurality of interrupts with different priorities by dividing the interrupts into groups;
- storing information to identify each of the interrupts divided into the groups, priority information to indicate a priority of each of the interrupts, and information to indicate the group to which each of the interrupts belongs;
- receiving an interrupt, accepting the received interrupt and beginning processing of the accepted interrupt while inhibiting acceptance of any other interrupts, including other interrupts having a higher priority in a same group of the interrupt that has begun to be processed;
- obtaining, from the stored information, information for the accepted interrupt;
- and
- executing the accepted interrupt and resetting the priority of the executed interrupt to a lowest priory in the group to which the executed interrupt belongs, wherein
- when one or more interrupts belonging to a same group are received simultaneously, the one or more simultaneously received interrupts are accepted for processing and information for each of the one or more accepted interrupts is obtained from the storage unit and an interrupt having a highest priority among the interrupts in the group to which the one or more accepted interrupts belongs is selected for execution and the executed interrupt is reset to a lowest priory in the group to which the one or more accepted interrupts belongs.
Dependencies are inferred from the claim text.