From: Miod Vallat Date: Wed, 19 Jun 2024 13:13:03 +0000 (+0000) Subject: Rework fixed register assignments on m68k. X-Git-Tag: archive/raspbian/5.2.0-3+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b7a20c604d0def81d7380019c09e9ec0e55445c0;p=ocaml.git Rework fixed register assignments on m68k. 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 --- diff --git a/runtime/interp.c b/runtime/interp.c index 66f01234..05c61e30 100644 --- 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("a5") +#define PC_REG asm("a3") #define SP_REG asm("a4") #define ACCU_REG asm("d7") #endif