1. Field of the Invention
This invention relates generally to data processing systems and, more particularly, to the handling of software interrupt instructions. A technique for expedited handling of software interrupt instructions is described.
2. Background of the Invention
During the execution of a program by a central processing unit, a change in the program flow may be required. This change in the program execution is performed by an instruction referred to as an interrupt instruction. The execution apparatus in the central processing unit will process the interrupt instruction as an ordinary instruction. The interrupt instruction responds by identifying the new procedure and initiating the new procedure. The interrupt instruction will cause the central processing unit to branch to a specific table or vector table. The table contains a branch instruction to the exception handler or the address of the exception handler. The exception handler will generally identify the source of the software exception and then branch to the exception sub-routine.
Referring to
The presence of the pipelined execution unit 101 results in a delay of the execution of the interrupt pipelined instruction and the initiation of the new procedure.
A need has therefore been felt for apparatus and an associated method having the feature of being able to provide to expedite the execution of the software interrupt instruction. It would be yet another feature of the apparatus and associated method to identify an interrupt software instruction. It would be a still further feature of the apparatus and associated method to identify the software interrupt instruction. It would be a more particular feature of the apparatus and associated method to identify the software interrupt instruction with a hardware component. It is a still further feature of the apparatus and associated method to use the identity of the software instruction to access the procedure in the interrupt handler related to the software interrupt instruction. It is a still more particular feature of the apparatus and associated method to have a dedicated port to the central processing unit through which the signals from the hardware component and signals to the hardware component can be transmitted. It would be a still further particular feature of the present invention to have dedicated conducting paths from the exception handler to the execution unit of the central processing unit.
The foregoing and other features are accomplished, according the present invention, by processing an interrupt instruction in an instruction stream in an expedited manner. The interrupt instruction is entered in the central processing unit for execution. In the central processing unit, the interrupt instruction execution unit identifies the interrupt instruction and signals the identity of the interrupt instruction to the interrupt handler, the storage unit containing the procedure to respond to the interrupt instruction, on a dedicated path. In response, the identified procedure is then transferred to the central processing unit by a dedicated path. In this manner the typical execution of the interrupt instruction is expedited because the interrupt does not have to be executed in the central processing unit pipeline.
Other features and advantages of present invention will be more clearly understood upon reading of the following description and the accompanying drawings and the claims.
1. Detailed Description of the Figures
Referring now to
2. Operation of the Preferred Embodiment
As indicated in the foregoing description, the response to the interrupt instruction circumvents the execution delay resulting from the pipelined structure of the instruction in the central processing unit pipeline. Rather, the identification of the interrupt instruction by the (hardware-implemented) interrupt identification unit permits the immediate access to the exception handling unit. The transfer to the central processing unit of the responsive procedure expedites the response to interrupt condition. This procedure is expedited because the response to the presence of the presence of the interrupt instruction is immediate and not subject delay resulting from processing the instruction in the central processing unit pipeline. In addition, the dedicated port and the associated conducting paths further expedite the transfer of the procedure responsive to the interrupt instruction.
As will be clear to those skilled in the art, the memory unit 5 and the exception handling unit 15 can be the same storage device. It will also be clear that the maximum benefit from this device can be achieved when the interrupt identification unit is coupled to the first stage of the pipelined instruction unit, typically referred to a as the prefetch stage provides the
While the invention has been described with respect to the embodiments set forth above, the invention is not necessarily limited to these embodiments. Accordingly, other embodiments, variations, and improvements not described herein are not necessarily excluded from the scope of the invention, the scope of the invention being defined by the following claims.
This application claims priority under 35 USC §119(e)(1) of Provisional Application No. 60/544,368 (TI-37853PS) filed Feb. 13, 2004.
Number | Date | Country | |
---|---|---|---|
60544368 | Feb 2004 | US |