rt: Begin moving stack-building functions to rust_stack.cpp
This commit is contained in:
23
src/rt/rust_stack.h
Normal file
23
src/rt/rust_stack.h
Normal file
@@ -0,0 +1,23 @@
|
||||
struct stk_seg {
|
||||
stk_seg *prev;
|
||||
stk_seg *next;
|
||||
uintptr_t end;
|
||||
unsigned int valgrind_id;
|
||||
#ifndef _LP64
|
||||
uint32_t pad;
|
||||
#endif
|
||||
|
||||
uint8_t data[];
|
||||
};
|
||||
|
||||
void
|
||||
config_valgrind_stack(stk_seg *stk);
|
||||
|
||||
void
|
||||
unconfig_valgrind_stack(stk_seg *stk);
|
||||
|
||||
void
|
||||
add_stack_canary(stk_seg *stk);
|
||||
|
||||
void
|
||||
check_stack_canary(stk_seg *stk);
|
||||
Reference in New Issue
Block a user