From: Crestez Dan Leonard <cdleonard@gmail.com>
To: systemtap@sourceware.org
Subject: [RFC 02/13] mips: Define TIF_32BIT if missing
Date: Thu, 31 Jul 2014 20:21:00 -0000 [thread overview]
Message-ID: <720568f04dc85fdb0b9e5b5765483e7ba4ef00b9.1406837921.git.cdleonard@gmail.com> (raw)
In-Reply-To: <cover.1406837921.git.cdleonard@gmail.com>
In-Reply-To: <cover.1406837921.git.cdleonard@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 44 bytes --]
This is a multi-part message in MIME format.
[-- Attachment #2: Type: text/plain, Size: 130 bytes --]
Signed-off-by: Crestez Dan Leonard <cdleonard@gmail.com>
---
runtime/compatdefs.h | 8 ++++++++
1 file changed, 8 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-mips-Define-TIF_32BIT-if-missing.patch --]
[-- Type: text/x-patch; name="0002-mips-Define-TIF_32BIT-if-missing.patch", Size: 538 bytes --]
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
next prev parent reply other threads:[~2014-07-31 20:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-31 20:21 [RFC 00/13] MIPS64 support Crestez Dan Leonard
2014-07-31 20:21 ` [RFC 03/13] mips: Read _stp_deref and _stp_store_deref support Crestez Dan Leonard
2014-07-31 20:21 ` [RFC 01/13] mips: Minimal build support Crestez Dan Leonard
2014-07-31 20:21 ` Crestez Dan Leonard [this message]
2014-07-31 20:22 ` [RFC 09/13] mips: dwflpp hack for struct fields being DW_OP_constu instead of DW_OP_plus_uconst Crestez Dan Leonard
2014-07-31 20:22 ` [RFC 04/13] mips: runtime and tapset code from cisco Crestez Dan Leonard
2014-07-31 20:22 ` [RFC 06/13] Force sign-extend statement addresses on mips64 -msym32 Crestez Dan Leonard
2014-07-31 20:22 ` [RFC 08/13] mips: Fix fetching params of type long on mips kernel Crestez Dan Leonard
2014-07-31 20:22 ` [RFC 10/13] Create debug_frame_hdr in target byte order Crestez Dan Leonard
2014-07-31 20:22 ` [RFC 11/13] mips64: Initial unwind support Crestez Dan Leonard
2014-07-31 20:22 ` [RFC 05/13] mips: Special get_cycles for cavium octeon Crestez Dan Leonard
2014-07-31 20:22 ` [RFC 07/13] loc2c: Add Dwarf pointer to location_context Crestez Dan Leonard
2014-07-31 20:23 ` [RFC 12/13] translator: Hack to interpret mips64 FDEs as 32bit for unwind Crestez Dan Leonard
2014-07-31 20:23 ` [RFC 13/13] runtime: " Crestez Dan Leonard
2014-08-01 11:16 ` [RFC 00/13] MIPS64 support Mark Wielaard
2014-08-01 12:02 ` Crestez Dan Leonard
2014-08-14 20:58 ` Josh Stone
2014-08-15 1:27 ` Victor Kamensky
2014-09-01 13:47 ` Crestez Dan Leonard
2014-09-02 18:05 ` Josh Stone
2014-09-02 19:10 ` Crestez Dan Leonard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=720568f04dc85fdb0b9e5b5765483e7ba4ef00b9.1406837921.git.cdleonard@gmail.com \
--to=cdleonard@gmail.com \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).