Skip to content

Commit

Permalink
Merge pull request #781 from directhex/master
Browse files Browse the repository at this point in the history
SPARC build fixes
  • Loading branch information
vargaz committed Oct 18, 2013
2 parents 49017bc + 842b67d commit dc0bf73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions mono/metadata/sgen-archdep.h
Expand Up @@ -201,6 +201,10 @@
)
#endif

#ifndef REG_SP
#define REG_SP REG_O6
#endif

#define ARCH_SIGCTX_SP(ctx) (((ucontext_t *)(ctx))->uc_mcontext.gregs [REG_SP])
#define ARCH_SIGCTX_IP(ctx) (((ucontext_t *)(ctx))->uc_mcontext.gregs [REG_PC])
#define ARCH_COPY_SIGCTX_REGS(a,ctx) do { \
Expand Down
4 changes: 2 additions & 2 deletions mono/utils/mono-hwcap-sparc.c
Expand Up @@ -49,9 +49,9 @@ mono_hwcap_arch_init (void)
* in turn means a v9 or better.
*/
if (getpagesize () == 8192)
strcpy (buf, "sparcv9")
strcpy (buf, "sparcv9");
else
strcpy (buf, "sparcv8")
strcpy (buf, "sparcv8");
#endif

mono_hwcap_sparc_is_v9 = strstr (buf, "sparcv9");
Expand Down

0 comments on commit dc0bf73

Please sign in to comment.