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)))