Microprocessor stack management method for saving context data
The microprocessor has a CPU with registers containing a contextual data and a pointer of stack (SP, SPH, SPL). A memory (MEM2) has a stack (STK) for backup of the contextual data. The CPU is arranged to backup the contextual data contained in a variable number of registers according to a flag value...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | English French German |
Published |
18.08.2004
|
Edition | 7 |
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The microprocessor has a CPU with registers containing a contextual data and a pointer of stack (SP, SPH, SPL). A memory (MEM2) has a stack (STK) for backup of the contextual data. The CPU is arranged to backup the contextual data contained in a variable number of registers according to a flag value stored in a register (CCR, CR) to backup, at a time of shifting from one program to another. An independent claim is also included for a process of management of stack of microprocessor.
La présente invention concerne un procédé de gestion de la pile (STK) d'un microprocesseur (MP2) comprenant une unité centrale (CPU) et un plan mémoire (MEM2), l'unité centrale comprenant des registres (CCR-PCL) contenant dès données contextuelles (CTX) et un pointeur de pile (SPH, SPL), la pile (STK) étant une zone du plan mémoire utilisée pour la sauvegarde de données contextuelles lors d'un basculement d'un premier à un second programme. Selon l'invention, le procédé comprend la sauvegarde de données contextuelles contenues dans un nombre variable de registres qui est fonction de la valeur d'au moins un drapeau (IEA) stocké dans un registre (CCR) à sauvegarder. Avantages : optimisation du remplissage de la pile et du nombre de sous-programmes pouvant être imbriqués. |
---|---|
Bibliography: | Application Number: EP20040000574 |