This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[RFC 02/13] mips: Define TIF_32BIT if missing
- From: Crestez Dan Leonard <cdleonard at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 31 Jul 2014 23:21:07 +0300
- Subject: [RFC 02/13] mips: Define TIF_32BIT if missing
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1406837921 dot git dot cdleonard at gmail dot com>
- References: <cover dot 1406837921 dot git dot cdleonard at gmail dot com>
Signed-off-by: Crestez Dan Leonard <cdleonard@gmail.com>
---
runtime/compatdefs.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/runtime/compatdefs.h b/runtime/compatdefs.h
index e256dcc..ba429b5 100644
--- a/runtime/compatdefs.h
+++ b/runtime/compatdefs.h
@@ -20,6 +20,14 @@
#if defined(__s390__) || defined(__s390x__)
#define TIF_32BIT TIF_31BIT
#endif
+#if defined (__mips__) && !defined(TIF_32BIT)
+ #ifdef CONFIG_MIPS32_O32
+ #define TIF_32BIT TIF_32BIT_REGS
+ #elif defined(CONFIG_MIPS32_N32)
+ #define TIF_32BIT TIF_32BIT_ADDR
+ #endif
+#endif
+
#if !defined(TIF_32BIT)
#error architecture not supported, no TIF_32BIT flag
#endif