From 5a836c6ca74d6b11a6df5deacc746b64e8611c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 22 Apr 2014 10:47:36 +0000 Subject: [PATCH] reformatted assembly --- sys/cache.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/sys/cache.c b/sys/cache.c index 69326ea..15810a7 100644 --- a/sys/cache.c +++ b/sys/cache.c @@ -44,24 +44,24 @@ uint32_t cacr_get(void) void flush_and_invalidate_caches(void) { - __asm__ ( - " clr.l d0\n\t" - " clr.l d1\n\t" - " move.l d0,a0\n\t" - "cfa_setloop:\n\t" - " cpushl bc,(a0) | flush\n\t" - " lea 0x10(a0),a0 | index+1\n\t" - " addq.l #1,d1 | index+1\n\t" - " cmpi.w #512,d1 | all sets?\n\t" - " bne.s cfa_setloop | no->\n\t" - " clr.l d1\n\t" - " addq.l #1,d0\n\t" - " move.l d0,a0\n\t" - " cmpi.w #4,d0 | all ways?\n\t" - " bne.s cfa_setloop | no->\n\t" - /* input */ : - /* output */ : - /* clobber */ : "d0", "d1", "a0" + __asm__ __volatile__( + " clr.l d0 \n\t" + " clr.l d1 \n\t" + " move.l d0,a0 \n\t" + "cfa_setloop: \n\t" + " cpushl bc,(a0) | flush\n\t" + " lea 0x10(a0),a0 | index+1\n\t" + " addq.l #1,d1 | index+1\n\t" + " cmpi.w #512,d1 | all sets?\n\t" + " bne.s cfa_setloop | no->\n\t" + " clr.l d1 \n\t" + " addq.l #1,d0 \n\t" + " move.l d0,a0 \n\t" + " cmpi.w #4,d0 | all ways?\n\t" + " bne.s cfa_setloop | no->\n\t" + /* input */ : + /* output */ : + /* clobber */ : "d0", "d1", "a0" ); }