From c371715132f0511a070ddbfe153d00d46587e505 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 18 Sep 2007 21:56:18 +0000 Subject: [PATCH] * include/cln/modules.h (CL_JUMP_TO): Use a pc relative jump on m68k. See . --- ChangeLog | 5 +++++ include/cln/modules.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e4d220a..21cda01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-18 Richard B. Kreckel + + * include/cln/modules.h (CL_JUMP_TO): Use a pc relative jump on m68k. + See . + 2007-09-16 Richard B. Kreckel * */*: Convert encoding from ISO 8859-1 to UTF-8. diff --git a/include/cln/modules.h b/include/cln/modules.h index befd60a..ad05e0b 100644 --- a/include/cln/modules.h +++ b/include/cln/modules.h @@ -136,7 +136,8 @@ #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp " ASM_UNDERSCORE_PREFIX #addr) #endif #if defined(__m68k__) - #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0@" : : "a" ((void*)(addr))) + //#define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0@" : : "a" ((void*)(addr))) + #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp (" ASM_UNDERSCORE_PREFIX #addr ",%pc)") #endif #if defined(__mips__) || defined(__mipsel__) //#define CL_JUMP_TO(addr) ASM_VOLATILE("%*j %0" : : "d" ((void*)(addr)))