Reviewers: danno,
Message:
This is another Android specific change, which I had forgotten to upstream
to
you guys.
Can you please also merge this one to the 3.7 branch?
thanks,
paul
Description:
MIPS: Add signal context definitions for use with Android.
As with Arm, the kernel defines this stuff, but bionic lib does not.
BUG=
TEST=
Please review this at https://chromiumcodereview.appspot.com/9298003/
Affected files:
M src/platform-linux.cc
Index: src/platform-linux.cc
diff --git a/src/platform-linux.cc b/src/platform-linux.cc
index
6f64f2d31c4873d542fe448c00b386ba2e0f67ee..b8751fa2b38786e40825de0834a180f9a92e7c2e
100644
--- a/src/platform-linux.cc
+++ b/src/platform-linux.cc
@@ -944,6 +944,37 @@ typedef struct ucontext {
} ucontext_t;
enum ArmRegisters {R15 = 15, R13 = 13, R11 = 11};
+#elif !defined(__GLIBC__) && defined(__mips__)
+ struct sigcontext {
+ unsigned int regmask;
+ unsigned int status;
+ unsigned long long pc;
+ unsigned long long gregs[32];
+ unsigned long long fpregs[32];
+ unsigned int acx;
+ unsigned int fpc_csr;
+ unsigned int fpc_eir;
+ unsigned int used_math;
+ unsigned int dsp;
+ unsigned long long mdhi;
+ unsigned long long mdlo;
+ unsigned long hi1;
+ unsigned long lo1;
+ unsigned long hi2;
+ unsigned long lo2;
+ unsigned long hi3;
+ unsigned long lo3;
+ };
+ typedef uint32_t __sigset_t;
+ typedef struct sigcontext mcontext_t;
+ typedef struct ucontext {
+ uint32_t uc_flags;
+ struct ucontext* uc_link;
+ stack_t uc_stack;
+ mcontext_t uc_mcontext;
+ __sigset_t uc_sigmask;
+ } ucontext_t;
+
#endif
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev