From 8dd3e6cf4b90c4536c6ca34ccaf037e5c8d57dd3 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 30 Aug 2005 21:32:52 +0000 Subject: [PATCH] * include/cln/modules.h (CL_JUMP_TO): Fix mips* brokenness. --- ChangeLog | 4 ++++ include/cln/modules.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bde1149..1e56203 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-08-30 Richard B. Kreckel + + * include/cln/modules.h (CL_JUMP_TO): Fix mips* brokenness. + 2005-08-27 Bruno Haible * src/integer/bitwise/cl_I_ash_I.cc (ash): Avoid shifting a 32-bit diff --git a/include/cln/modules.h b/include/cln/modules.h index b1bf8ac..d01e65a 100644 --- a/include/cln/modules.h +++ b/include/cln/modules.h @@ -138,7 +138,8 @@ #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0@" : : "a" ((void*)(addr))) #endif #if defined(__mips__) || defined(__mipsel__) - #define CL_JUMP_TO(addr) ASM_VOLATILE("%*j %0" : : "d" ((void*)(addr))) + //#define CL_JUMP_TO(addr) ASM_VOLATILE("%*j %0" : : "d" ((void*)(addr))) + #define CL_JUMP_TO(addr) ASM_VOLATILE("b " ASM_UNDERSCORE_PREFIX #addr) #endif #if defined(__sparc__) || defined(__sparc64__) #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0\n\tnop" : : "r" ((void*)(addr)))