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

Apparatus and method for handling exception events

a technology of exception events and apparatus, applied in the field of data processing, can solve problems such as system crash, memory abort, and stack exceeding its allocated memory space, and achieve the effect of reducing the risk of exception event entry

Active Publication Date: 2014-05-01
ARM LTD
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

The patent describes an apparatus for handling exception events in a computer program. The apparatus has multiple stack data stores for storing temporary variables and performs processing based on the status of the program. By using a base level stack data store for temporary variables and a further level stack data store for more general processing, the apparatus reduces the risk of stack overflow and ensures correct handling of exception events. The apparatus also provides selection circuitry to select between the two stack pointers and control the processing circuitry to use the currently selected stack pointer to access one of the stack data stores. Overall, the apparatus improves the efficiency and safety of exception handling in computer programs.

Problems solved by technology

If too much data is stored on the stack, then the stack may exceed its allocated memory space.
The stack may overrun a page boundary and may not have the access rights for accessing the next page in memory, thus triggering a memory abort.
Also, if the processor tries to store on the stack a variable that is larger than the remaining space in the stack, then this can cause an error.
If the stack overflows, then this could prevent the exception handling routine being executed properly, since the stack overflow may itself trigger an exception event which causes another exception handling routine to try to push variables onto the stack, causing another stack overflow exception event.
This can result in an endless loop of exception events each trying to load variables onto the stack and each triggering a further exception event due to the stack overflow, and can cause the system to crash due to such recursive exception entry.

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
  • Apparatus and method for handling exception events
  • Apparatus and method for handling exception events
  • Apparatus and method for handling exception events

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0078]FIG. 1 illustrates a data processing apparatus 2 having exception handling resources. The data processing apparatus 2 comprises a processing pipeline 4 for processing data stored in registers 6 or a memory system 8 under control of instructions loaded from the memory system 8. The processing pipeline 4 may comprise various pipeline stages, such as a fetch pipeline stage 10 for fetching instructions from the memory system 8; a decode pipeline stage 12 for decoding the fetched instructions, an issue stage 14 for issuing instructions for execution (the issue stage 14 may issue one instruction or multiple instructions per processing cycle, and may issue instructions in order or out of order); an execution stage 16 for executing the issued instructions; and a write back stage 18 for writing back processing results to the registers 6. The processing pipeline 4 is not limited to these stages and may include other stages, for example, a rename stage for renaming register specifiers sp...

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

Processing circuitry 4 has a plurality of exception states EL0-EL3 for handling exception events, the exception states including a base level exception state EL0 and at least one further level exception state EL1-EL3. Each exception state has a corresponding stack pointer indicating the location within the memory of a corresponding stack data store 35. When the processing circuitry is in the base level exception state EL0, stack pointer selection circuitry 40 selects the base level stack pointer as a current stack pointer indicating a current stack data store for use by the processing circuitry 4. When the processing circuitry 4 is a further exception state, the stack pointer selection circuitry 40 selects either the base level stack pointer or the further level stack pointer corresponding to the current further level exception state as a current stack pointer.

Description

[0001]This application is a Continuation of U.S. patent application Ser. No. 13 / 064,108, filed Mar. 7, 2011, which claims priority to GB Application No. 1004303.2 filed 15 Mar. 2010. The entire contents of these applications are incorporated herein by reference.BACKGROUND OF THE INVENTION[0002]1. Field of the Invention[0003]The present invention relates to the field of data processing. More particularly, the invention relates to an apparatus and method for handling exception events.[0004]2. Description of the Prior Art[0005]While data processing is being carried out, an exception event may occur, indicating that the data processing should be interrupted so that an exception handling routine can be performed. Exception events can indicate, for example, that a processing result is undefined, that a processing resource has overflowed, or that an exception signal has been received from an external device. It is possible to process exception events in multiple exception states. Each exce...

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
Patent Type & Authority Applications(United States)
IPC IPC(8): G06F9/38
CPCG06F9/3861G06F9/30101G06F9/30189G06F9/30181G06F9/461G06F9/4812G06F12/1491G06F9/30134
Inventor GRISENTHWAITE, RICHARD ROY
Owner ARM LTD
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