nobody wrote on Tuesday, January 18, 2005:
Dear All,
I am not able to compile the assembly code in port.c file for mcf5272 port. I am compiling using Codewarrior C Compiler. Can anyone guide me as to what can be done.
Some of the code i am listing below.
asm volatile ( "move.l %%d1,-8(%%sp) \n\t"
"clr.l %%d1 \n\t"
"move.w %%sr,%%d1 \n\t"
"ori.l %0,%%d1 \n\t"
"andi.l %1,%%d1 \n\t"
"move.l %%d1,%%sp@- \n\t"
"move.l -4(%%sp),%%d1 \n\t"
: /* no output */
: "n" (EXSF_FORMAT(4) | EXSF_VECTOR(VECTOR_TMR0)),
"n" (~STATUS_I(7)) );
asm volatile ( "move.l %d0,%sp@- \n\t"
"move.l %d1,%sp@- \n\t"
"move.l %d2,%sp@- \n\t"
"move.l %d3,%sp@- \n\t"
"move.l %d4,%sp@- \n\t"
"move.l %d5,%sp@- \n\t"
"move.l %d6,%sp@- \n\t"
"move.l %d7,%sp@- \n\t"
"move.l %a0,%sp@- \n\t"
"move.l %a1,%sp@- \n\t"
"move.l %a2,%sp@- \n\t"
"move.l %a3,%sp@- \n\t"
"move.l %a4,%sp@- \n\t"
"move.l %a5,%sp@- \n\t"
"move.l %a6,%sp@- \n\t"
"move.l pxCurrentTCB,%a0 \n\t"
"move.l %sp,(%a0) \n\t" );
Regards
Vivek Agarwal