Main Page   File List  

stack.h File Reference

Some helper functions for stack manipulation. More...

Go to the source code of this file.

Functions

void l4util_stack_push_mword (l4_addr_t *stack, l4_mword_t val)
void l4util_stack_push_threadid (l4_addr_t *stack, l4_threadid_t val)
l4_addr_t l4util_stack_get_sp (void)
 Get current stack pointer.


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@os.inf.tu-dresden.de>

Definition in file stack.h.


Function Documentation

l4_addr_t l4util_stack_get_sp ( void   )  [inline]

Get current stack pointer.

Returns:
stack pointer.

Definition at line 10 of file ARCH-amd64/stack_impl.h.


L4 Utilities, part of DROPS  © 2000-2003