xref: /haiku/src/system/libroot/os/arch/x86_64/get_stack_frame.S (revision 2b76973fa2401f7a5edf68e6470f3d3210cbcff3)
1/*
2 * Copyright 2012, Alex Smith, alex@alex-smith.me.uk.
3 * Distributed under the terms of the MIT License.
4*/
5
6
7#include <asm_defs.h>
8
9
10/* void* get_stack_frame(void) */
11FUNCTION(get_stack_frame):
12	movq	%rbp, %rax
13	ret
14FUNCTION_END(get_stack_frame)
15
16
17/* void* __arch_get_caller(void); */
18FUNCTION(__arch_get_caller):
19	movq	8(%rbp), %rax
20	ret
21FUNCTION_END(__arch_get_caller)
22
23