vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / os / arch / x86_64 / get_stack_frame.S
blob0eaee36523293d88df9eada16831e06a16f3214a
1 /*
2  * Copyright 2012, Alex Smith, alex@alex-smith.me.uk.
3  * Distributed under the terms of the MIT License.
4 */
7 #include <asm_defs.h>
10 /* void* get_stack_frame(void) */
11 FUNCTION(get_stack_frame):
12         movq    %rbp, %rax
13         ret
14 FUNCTION_END(get_stack_frame)
17 /* void* __arch_get_caller(void); */
18 FUNCTION(__arch_get_caller):
19         movq    8(%rbp), %rax
20         ret
21 FUNCTION_END(__arch_get_caller)