This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC 02/13] mips: Define TIF_32BIT if missing


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]