[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] PUSH_SP
Helmut Karlowski wrote:
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"
For memory, this macro produces a movem instruction which is compatible with
both 680x0 and ColdFire.
But the file mint/arch/asm_misc.h is never included in module.c.
You are right, it has been forgotten.
Though the output never contains asm_misc.h the macro is correctly inserted.
I just don't understand why it works (using gcc4).
This is because the same macro is present in the MiNTLib's <compiler.h>,
which is included from mint/kcompiler.h.
gcc2 does not find the macro.
Because you use an older MiNTLib.
You may add the following:
#include "mint/asm.h"
into:
sys/module.c
sys/xdd/mfp/mfp.c
And maybe something similar into:
xaaes/src.km/adiload.c
xaaes/src.km/draw_obj.c
--
Vincent Rivière