00001 #ifndef __L4UTIL__INCLUDE__ARCH_ARM__STACK_IMPL_H__ 00002 #define __L4UTIL__INCLUDE__ARCH_ARM__STACK_IMPL_H__ 00003 00004 #include <l4/sys/compiler.h> 00005 00006 EXTERN_C_BEGIN 00007 00008 #ifndef _L4UTIL_STACK_H 00009 #error Do not include stack_impl.h directly, use stack.h instead 00010 #endif 00011 00012 L4_INLINE l4_addr_t l4util_stack_get_sp(void) 00013 { 00014 register l4_addr_t sp asm ("sp"); 00015 return sp; 00016 } 00017 00018 EXTERN_C_END 00019 00020 #endif /* ! __L4UTIL__INCLUDE__ARCH_ARM__STACK_IMPL_H__ */