From b7a20c604d0def81d7380019c09e9ec0e55445c0 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 19 Jun 2024 13:13:03 +0000 Subject: [PATCH] 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 --- runtime/interp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2