projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d562f82
)
Fix some warnings on mips32.
author
Alex Rønne Petersen
<alexrp@xamarin.com>
Wed, 19 Feb 2014 02:16:47 +0000
(
03:16
+0100)
committer
Alex Rønne Petersen
<alexrp@xamarin.com>
Wed, 19 Feb 2014 02:19:08 +0000
(
03:19
+0100)
mono/metadata/sgen-archdep.h
patch
|
blob
|
history
diff --git
a/mono/metadata/sgen-archdep.h
b/mono/metadata/sgen-archdep.h
index d0687b2bcaa0247e43892e863a7fec132444695a..5e7b5f8f1a3975641f76ea18f0fbafbad1659488 100755
(executable)
--- a/
mono/metadata/sgen-archdep.h
+++ b/
mono/metadata/sgen-archdep.h
@@
-135,8
+135,12
@@
#define USE_MONO_CTX
#define ARCH_NUM_REGS 32
-#define ARCH_SIGCTX_SP(ctx) (UCONTEXT_GREGS((ctx))[29])
-#define ARCH_SIGCTX_IP(ctx) (UCONTEXT_REG_PC((ctx)))
+/*
+ * These casts are necessary since glibc always makes the
+ * gregs 64-bit values in userland.
+ */
+#define ARCH_SIGCTX_SP(ctx) ((gsize) UCONTEXT_GREGS((ctx))[29])
+#define ARCH_SIGCTX_IP(ctx) ((gsize) UCONTEXT_REG_PC((ctx)))
#elif defined(__s390x__)