L4Re - L4 Runtime Environment
stack.h File Reference

Some helper functions for stack manipulation. More...

#include <l4/sys/types.h>
#include <l4/sys/compiler.h>
#include <l4/util/stack_impl.h>
+ Include dependency graph for stack.h:

Go to the source code of this file.

Functions

l4_addr_t l4util_stack_get_sp (void)
 Get current stack pointer. More...
 

Detailed Description

Some helper functions for stack manipulation.

Newer versions of gcc forbid to cast the lvalue of an expression resulting that the following expression is invalid:

*–((l4_threadid_t)esp) = tid

Date
03/2004
Author
Frank Mehnert fm3@o.nosp@m.s.in.nosp@m.f.tu-.nosp@m.dres.nosp@m.den.d.nosp@m.e

Definition in file stack.h.

Function Documentation

◆ l4util_stack_get_sp()

l4_addr_t l4util_stack_get_sp ( void  )
inline

Get current stack pointer.

Returns
stack pointer.

Definition at line 23 of file stack_impl.h.

References EXTERN_C_END.