L4Re - L4 Runtime Environment
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
stack.h
1
12
/*
13
* (c) 2003-2009 Author(s)
14
* economic rights: Technische Universität Dresden (Germany)
15
* This file is part of TUD:OS and distributed under the terms of the
16
* GNU Lesser General Public License 2.1.
17
* Please see the COPYING-LGPL-2.1 file for details.
18
*/
19
20
#ifndef _L4UTIL_STACK_H
21
#define _L4UTIL_STACK_H
22
23
#include <l4/sys/types.h>
24
#include <l4/sys/compiler.h>
25
26
EXTERN_C_BEGIN
27
28
L4_INLINE
void
l4util_stack_push_mword(
l4_addr_t
*stack,
l4_mword_t
val);
29
30
/*****************************************************************************/
36
L4_INLINE
l4_addr_t
l4util_stack_get_sp(
void
);
37
38
/*
39
* Implementations.
40
*/
41
42
#include <l4/util/stack_impl.h>
43
44
L4_INLINE
void
45
l4util_stack_push_mword(
l4_addr_t
*stack,
l4_mword_t
val)
46
{
47
l4_mword_t
*esp = (
l4_mword_t
*)(*stack);
48
*--esp = val;
49
*stack = (
l4_addr_t
)esp;
50
}
51
52
EXTERN_C_END
53
54
#endif
L4Re - L4 Runtime Environment