1/* 2 * Copyright 2005-2008, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4*/ 5 6#include <asm_defs.h> 7 8 9/* void* get_stack_frame(void) */ 10FUNCTION(get_stack_frame): 11 mov %ebp, %eax 12 ret 13FUNCTION_END(get_stack_frame) 14 15 16/* void* __arch_get_caller(void); */ 17FUNCTION(__arch_get_caller): 18 mov 4(%ebp), %eax 19 ret 20FUNCTION_END(__arch_get_caller) 21 22