ARM VERSION 1.2 Scheda Tecnica Pagina 164

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 276
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 163
The C and C++ Libraries
4-74 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
4.9.11 __rt_stack_postlongjmp()
This function sets sp and sl to correct values after a call to
longjmp()
. An incomplete
prototype implementation in assembler code is in
rt_memory.s
.
Implementation
This function is called with r0 containing the pre-
setjmp()
value for sl, and r1
containing the pre-
setjmp()
value for sp.
If your memory model is used only with non stack-checked ATPCS, you do not have to
implement this function.
Returns
The function must set sl and sp to valid post-
longjmp()
values. The registers must be set
atomically to avoid interrupt problems. So in the minimal implementation where the
memory model requires no special handling, you would push r0 and r1 on the stack and
then use
LDM
to load sl and sp atomically with the new values.
Vedere la pagina 163
1 2 ... 159 160 161 162 163 164 165 166 167 168 169 ... 275 276

Commenti su questo manuale

Nessun commento