Re: RTX-51 Full reentrant stack problem




"Bruce" <sourcebug@xxxxxxxxx> wrote in message
news:1146078213.001717.90240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Has anyone had a problem with the RTX-51 reentrant stack? I am using
the "compact reentrant" declaration for my reentrant functions. The
stack is located in PDATA (< 0x100), yet during a task switch,
RTX-51thinks the stack is located near the task control block in XDATA
and is not saved or restored.

Any help would be appreciated.



Not used rtx for a while, but if I recall, to use compact reentrant you will
have to have the compiler/linker set for LARGE model



.



Relevant Pages

  • Re: RTX-51 Full reentrant stack problem
    ... stack is located in PDATA, yet during a task switch, ... RTX-51thinks the stack is located near the task control block in XDATA ... Not used rtx for a while, but if I recall, to use compact reentrant you ...
    (comp.arch.embedded)
  • Re: Wanted: simple, safe x86 stack overflow detection
    ... relatively large unused holes so it might miss the canary completely ... Don't think it is worth it though. ... DMA on stack addresses. ...
    (Linux-Kernel)
  • Cant use stack below ESP.
    ... Without doing proper homework I have assumed that use of the stack below ESP ... and as a result of this interrupt the program flow ... switches to another code segment (including task switch) that is of equal ... have found that out during debugging session. ...
    (borland.public.delphi.language.basm)