Browse Source

* include/cln/modules.h (CL_JUMP_TO): Use a pc relative jump on m68k.

See <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388000>.
master
Richard Kreckel 17 years ago
parent
commit
c371715132
  1. 5
      ChangeLog
  2. 3
      include/cln/modules.h

5
ChangeLog

@ -1,3 +1,8 @@
2007-09-18 Richard B. Kreckel <kreckel@ginac.de>
* include/cln/modules.h (CL_JUMP_TO): Use a pc relative jump on m68k.
See <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388000>.
2007-09-16 Richard B. Kreckel <kreckel@ginac.de>
* */*: Convert encoding from ISO 8859-1 to UTF-8.

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

Loading…
Cancel
Save