[kernel] Add get_caller function

Added a function to get the callsite of the current function invocation.
This commit is contained in:
2020-08-22 16:34:58 -07:00
parent 4819920b4e
commit d63a30728c
2 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
extern "C" {
uintptr_t get_rsp();
uintptr_t get_rip();
uintptr_t get_caller();
uintptr_t get_frame(int frame);
uintptr_t get_gsbase();
void _halt();