Interrupt control apparatus and method separately holding respective operation information of a processor preceding a normal or a break interrupt
First Claim
1. An interrupt control apparatus having a function of normal interrupt and a function of break-interrupt, said apparatus comprising:
- a first information holding section for holding, at the time of a normal interrupt, operation information of a processor before said normal interrupt;
a second information holding section for holding, at the time of a break-interrupt, operation information of said processor before said break-interrupt;
a return operation specifying section for specifying whether a return operation from a normal interrupt state or a return operation from a break-interrupt state is to be performed in returning from an interrupt operation; and
an interrupt return section for re-setting operation information held in said first information holding section or operation information held in said second information holding section in accordance with operation contents specified by said return operation specifying section, and thereby returning the state of said processor from an interrupt operation state to a state before the interrupt.
1 Assignment
0 Petitions
Accused Products
Abstract
When a normal interrupt occurs, data of processor operation before the normal interrupt are held in a normal return address register (452), a normal previous state register (453), and a normal factor register (454). When a break-interrupt occurs, data of processor operation before the break-interrupt is held in another break return address register (455). Hence, a break-interrupt can occur even within an interrupt inhibition period by a normal interrupt. Besides, when a break-interrupt occurs, the break-interrupt state is set in a flag register (456). By referring to the flag register (456) in executing an interrupt return instruction, the operation data before the break-interrupt or before the normal interrupt can accurately be restored.
-
Citations
13 Claims
-
1. An interrupt control apparatus having a function of normal interrupt and a function of break-interrupt, said apparatus comprising:
-
a first information holding section for holding, at the time of a normal interrupt, operation information of a processor before said normal interrupt;
a second information holding section for holding, at the time of a break-interrupt, operation information of said processor before said break-interrupt;
a return operation specifying section for specifying whether a return operation from a normal interrupt state or a return operation from a break-interrupt state is to be performed in returning from an interrupt operation; and
an interrupt return section for re-setting operation information held in said first information holding section or operation information held in said second information holding section in accordance with operation contents specified by said return operation specifying section, and thereby returning the state of said processor from an interrupt operation state to a state before the interrupt. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An interrupt control method comprising the steps of:
-
when a normal interrupt occurs, holding operation information of a processor before said normal interrupt in a first information holding section;
when a break-interrupt occurs, holding operation information of said processor before said break-interrupt in a second information holding section different from said first information holding section, and setting a flag for showing whether or not the break-interrupt state is set, to the break-interrupt state; and
in returning said processor from the interrupt state to a state before the interrupt, selecting and restoring one of operation information in said first information holding section and operation information in said second information holding section in accordance with a value of said flag.
-
-
10. An interrupt control method comprising the steps of:
-
when a normal interrupt occurs, holding operation information of a processor before said normal interrupt in a first information holding section;
when a break-interrupt occurs, holding operation information of said processor before said break-interrupt in a second information holding section different from said first information holding section; and
in returning said processor from the interrupt state to a state before the interrupt, selecting and restoring one of operation information in said first information holding section and operation information in said second information holding section in accordance with contents of an interrupt return instruction.
-
-
11. An interrupt control method for an interrupt control apparatus having a function of normal interrupt and a function of break-interrupt, said method comprising the steps of:
-
when a break-interrupt occurs, holding at least an instruction address before said break-interrupt, to which a processor is to return from a break-interrupt state, and setting a flag for representing whether or not said break-interrupt state is set, to said break-interrupt state; and
in returning said processor from said break-interrupt state to a state before said break-interrupt, canceling said flag for representing said break-interrupt state, and restoring said instruction address which has been held. - View Dependent Claims (12, 13)
when said break-interrupt occurs, holding not only said instruction address but also the processor state before said break-interrupt, and in returning said processor from said break-interrupt state to said state before said break-interrupt, restoring said processor state, which has been held.
-
-
13. A method according to claim 11, further comprising the step of:
when said break-interrupt occurs, holding not only said instruction address but also a factor of said break-interrupt.
Specification