about summary refs log tree commit diff
path: root/src/rt/rust_stack.h
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-08 15:28:25 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-09 19:00:15 -0800
commite0d5b92b84424b5b1dbd2dec7d32e92e1550832b (patch)
tree82e9a9ba272b53b0c87871503ec8fb649cca12ee /src/rt/rust_stack.h
parent2983e77383edd852bb30a022e4599e7c42670ac5 (diff)
downloadrust-e0d5b92b84424b5b1dbd2dec7d32e92e1550832b.tar.gz
rust-e0d5b92b84424b5b1dbd2dec7d32e92e1550832b.zip
rt: Begin moving stack-building functions to rust_stack.cpp
Diffstat (limited to 'src/rt/rust_stack.h')
-rw-r--r--src/rt/rust_stack.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/rt/rust_stack.h b/src/rt/rust_stack.h
new file mode 100644
index 00000000000..d665b4fa2c1
--- /dev/null
+++ b/src/rt/rust_stack.h
@@ -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);