From e2abb1463668f67a67dc44101902591bb94e1d18 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sun, 27 Jun 2004 19:54:39 +0000 Subject: [PATCH] * include/cln/modules.h (CL_JUMP_TO): Fix AMD64 brokenness. --- ChangeLog | 4 ++++ include/cln/modules.h | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 15e0e89..ca1545a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-06-27 Richard B. Kreckel + + * include/cln/modules.h (CL_JUMP_TO): Fix AMD64 brokenness. + 2004-06-23 Bruno Haible * configure.ac: Pretend ftime() is not available. Needed by diff --git a/include/cln/modules.h b/include/cln/modules.h index 26fc291..50f41a1 100644 --- a/include/cln/modules.h +++ b/include/cln/modules.h @@ -117,9 +117,12 @@ // except that the latter inhibits inlining of the function containing it // in gcc-2.95. For new CPUs, look for "jump" and "indirect_jump" in gcc's // machine description. - #if defined(__i386__) || defined(__x86_64__) + #if defined(__i386__) #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %*%0" : : "rm" ((void*)(addr))) #endif + #if defined(__x86_64__) + #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp " #addr) + #endif #if defined(__m68k__) #define CL_JUMP_TO(addr) ASM_VOLATILE("jmp %0@" : : "a" ((void*)(addr))) #endif