Skip to content
Browse files

Some updates for SPARC

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14731 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
1 parent c03e155 commit b691a28d155c53b4d435855e42dae9fbdf21bbf1 @xavierleroy xavierleroy committed May 3, 2014
Showing with 4 additions and 3 deletions.
  1. +1 −0 asmrun/signals_osdep.h
  2. +3 −3 testsuite/tests/asmcomp/sparc.S
View
1 asmrun/signals_osdep.h
@@ -288,6 +288,7 @@
#define CONTEXT_PC (context->uc_mcontext.gregs[REG_PC])
/* Local register number N is saved on the stack N words
after the stack pointer */
+ #define CONTEXT_SP (context->uc_mcontext.gregs[REG_SP])
#define SPARC_L_REG(n) ((long *)(context->uc_mcontext.gregs[REG_SP]))[n]
#define CONTEXT_EXCEPTION_POINTER (SPARC_L_REG(5))
#define CONTEXT_YOUNG_LIMIT (SPARC_L_REG(7))
View
6 testsuite/tests/asmcomp/sparc.S
@@ -11,11 +11,11 @@
/***********************************************************************/
#if defined(SYS_solaris) || defined(SYS_elf)
-#define Call_gen_code _call_gen_code
-#define Caml_c_call _caml_c_call
-#else
#define Call_gen_code call_gen_code
#define Caml_c_call caml_c_call
+#else
+#define Call_gen_code _call_gen_code
+#define Caml_c_call _caml_c_call
#endif
.global Call_gen_code

0 comments on commit b691a28

Please sign in to comment.
Something went wrong with that request. Please try again.