projects
/
ocaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e43025f
)
Rework fixed register assignments on m68k.
author
Miod Vallat
<miod@tarides.com>
Wed, 19 Jun 2024 13:13:03 +0000
(13:13 +0000)
committer
Stéphane Glondu
<glondu@debian.org>
Wed, 7 Aug 2024 12:12:25 +0000
(14:12 +0200)
The use of %a5 conflicts with its internal usage as a GOT base by Glibc,
so shift assignments one register down.
Origin: https://github.com/ocaml/ocaml/pull/13252
Gbp-Pq: Name 0009-Rework-fixed-register-assignments-on-m68k.patch
runtime/interp.c
patch
|
blob
|
history
diff --git
a/runtime/interp.c
b/runtime/interp.c
index 66f012347e6d7c05b48f7089fe24f79c89b79df9..05c61e3051e3f1c5a5719868693cd3742b6fb445 100644
(file)
--- a/
runtime/interp.c
+++ b/
runtime/interp.c
@@
-209,7
+209,7
@@
Caml_inline void check_trap_barrier_for_effect
#define ACCU_REG asm("%r16")
#endif
#ifdef __mc68000__
-#define PC_REG asm("a
5
")
+#define PC_REG asm("a
3
")
#define SP_REG asm("a4")
#define ACCU_REG asm("d7")
#endif