[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] PUSH_SP
I have a small problem with this macro.
It is defined in mint/arch/asm_misc.h:
#define PUSH_SP(regs,size) \
"movml " regs ",sp@-\n\t"
It is used e.g. in module.c:
static void *
module_init(void *initfunc, struct kerinfo *k)
{
register void *ret __asm__("d0");
__asm__ volatile
(
PUSH_SP("d3-d7/a3-a6", 36)
But the file mint/arch/asm_misc.h is never included in module.c.
I have produced a preprocessor-output with this command:
m68k-atari-mint-gcc -E -I.. -D__KERNEL__ -DLANG_ENGLISH -DVERBOSE_BOOT
-DWITH_MMU_SUPPORT -DWITH_SINGLE_TASK_SUPPORT -DSOFT_UNITABLE -DARANYM
-DDEBUG_INFO -DM68040 -DWITH_HOSTFS -DBOOTSTRAPABLE -DC_ONLY -m68020-60
-mshort -g -O2 -fomit-frame-pointer -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wcast-qual -Werror -c ../module.c -o module.i
Though the output never contains asm_misc.h the macro is correctly
inserted. I just don't understand why it works (using gcc4).
gcc2 does not find the macro.
--
Helmut Karlowski