Added get_stack_frame().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10929 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-01-21 15:03:08 +00:00
parent 56bead3235
commit 61a9031bd0
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@ SubDir OBOS_TOP src kernel libroot os arch x86 ;
KernelMergeObject os_arch_$(OBOS_ARCH).o :
atomic.S
byteorder.S
get_stack_frame.S
system_info.c
system_time.S
thread.c

View File

@ -0,0 +1,11 @@
/*
* Copyright 2003, Ingo Weinhold, bonefish@users.sf.net. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#define FUNCTION(x) .global x; .type x,@function; x
/* void *get_stack_frame() */
FUNCTION(get_stack_frame):
mov %ebp,%eax
ret