reformatted assembly

This commit is contained in:
Markus Fröschle
2014-04-22 10:47:36 +00:00
parent 05dd6f78ff
commit fce807c0d9

View File

@@ -44,24 +44,24 @@ uint32_t cacr_get(void)
void flush_and_invalidate_caches(void) void flush_and_invalidate_caches(void)
{ {
__asm__ ( __asm__ __volatile__(
" clr.l d0\n\t" " clr.l d0 \n\t"
" clr.l d1\n\t" " clr.l d1 \n\t"
" move.l d0,a0\n\t" " move.l d0,a0 \n\t"
"cfa_setloop:\n\t" "cfa_setloop: \n\t"
" cpushl bc,(a0) | flush\n\t" " cpushl bc,(a0) | flush\n\t"
" lea 0x10(a0),a0 | index+1\n\t" " lea 0x10(a0),a0 | index+1\n\t"
" addq.l #1,d1 | index+1\n\t" " addq.l #1,d1 | index+1\n\t"
" cmpi.w #512,d1 | all sets?\n\t" " cmpi.w #512,d1 | all sets?\n\t"
" bne.s cfa_setloop | no->\n\t" " bne.s cfa_setloop | no->\n\t"
" clr.l d1\n\t" " clr.l d1 \n\t"
" addq.l #1,d0\n\t" " addq.l #1,d0 \n\t"
" move.l d0,a0\n\t" " move.l d0,a0 \n\t"
" cmpi.w #4,d0 | all ways?\n\t" " cmpi.w #4,d0 | all ways?\n\t"
" bne.s cfa_setloop | no->\n\t" " bne.s cfa_setloop | no->\n\t"
/* input */ : /* input */ :
/* output */ : /* output */ :
/* clobber */ : "d0", "d1", "a0" /* clobber */ : "d0", "d1", "a0"
); );
} }