From 4e53d54fd7bd2bb32b1872f222a777f964432cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sat, 13 Oct 2012 17:42:09 +0000 Subject: [PATCH] still a few functions left to fix --- BaS_GNU/BaS_GNU/sources/sysinit.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/BaS_GNU/BaS_GNU/sources/sysinit.c b/BaS_GNU/BaS_GNU/sources/sysinit.c index 10ae0e2..16522df 100644 --- a/BaS_GNU/BaS_GNU/sources/sysinit.c +++ b/BaS_GNU/BaS_GNU/sources/sysinit.c @@ -296,7 +296,7 @@ void wait_pll(void) { do { wait1ms(); - } while (! * (uint16_t *) 0xf0000800); + } while (! * (volatile uint16_t *) 0xf0000800); } void init_pll(void) @@ -807,19 +807,19 @@ asm( "lea copy_start,A0\n\t" "lea BaS,A1\n\t" "sub.l A0,A1\n\t" - "move.l #__Bas_base,A2\n\t" - "move.l A2,A3\n\t" + "move.l #__Bas_base,A2\n\t" + "move.l A2,A3\n\t" "add.l A1,A3\n\t" "lea copy_end,A4\n\t" -"BaS_copy_loop: /* copy 16 bytes per turn */\n\t" - "move.l (A0)+,(A2)+\n\t" - "move.l (A0)+,(A2)+\n\t" - "move.l (A0)+,(A2)+\n\t" - "move.l (A0)+,(A2)+\n\t" +"BaS_copy_loop: /* copy 16 bytes per turn */\n\t" + "move.l (A0)+,(A2)+\n\t" + "move.l (A0)+,(A2)+\n\t" + "move.l (A0)+,(A2)+\n\t" + "move.l (A0)+,(A2)+\n\t" "cmp.l A4,A0\n\t" "blt BaS_copy_loop\n\t" "\n\t" - "intouch A3\n\t" /* we'd better update caches to contain the data we just copied */ + "intouch A3\n\t" /* FIXME: we'd better update caches to contain the data we just copied */ "jmp (A3)\n\t" "copy_start:\n\t" "nop\n\t"