ARM VERSION 1.2 Datasheet Page 164

  • Download
  • Add to my manuals
  • Print
  • Page
    / 276
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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.
Page view 163
1 2 ... 159 160 161 162 163 164 165 166 167 168 169 ... 275 276

Comments to this Manuals

No comments