summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index b9a9c778..6d8d9dc9 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -70,6 +70,13 @@ static struct
#define MAXSTRINGLEN 128
#endif
+#ifdef CONFIG_FRAME_POINTER
+/* Just because frame pointers are available does not mean we can trust them. */
+#if defined (__i386__) || defined (__arm__)
+#define STP_USE_FRAME_POINTER
+#endif
+#endif
+
#include "alloc.c"
#include "print.c"
#include "string.c"