Invention Grant
- Patent Title: Stack underflow debug with sticky base
- Patent Title (中): 堆叠底池调试与粘性基地
-
Application No.: US11298155Application Date: 2005-12-09
-
Publication No.: US07752427B2Publication Date: 2010-07-06
- Inventor: Emil Lambrache , Benjamin F. Froemming
- Applicant: Emil Lambrache , Benjamin F. Froemming
- Applicant Address: US CA San Jose
- Assignee: Atmel Corporation
- Current Assignee: Atmel Corporation
- Current Assignee Address: US CA San Jose
- Agency: Schwegman, Lundberg & Woessner, P.A.
- Main IPC: G06F7/38
- IPC: G06F7/38

Abstract:
A stack pointer is copied to a stack pointer base to debug stack underflow. A move instruction, used to initialize the stack pointer, is modified to additionally copy the stack pointer to a stack pointer base register. During a course of execution in a single context, the stack pointer base sticks to the initial base value while the stack pointer is altered by a succession of PUSH and POP instructions. By monitoring for equivalence in the stack pointer and the stack pointer base values, a balanced number of PUSH and POP instructions is detected. If an equal number of PUSH and POP instructions is detected and an additional POP instruction is programmed, a stack underflow condition exists, an exception condition signaled, and exception flag produced. The exception condition allows the stack to be protected from an excessive POP instruction retrieving data out of context and subsequent loss of stack data.
Public/Granted literature
- US20070136565A1 Stack underflow debug with sticky base Public/Granted day:2007-06-14
Information query