From 1adcfe3ab5fbf4bd3d708dab1487dfc22e50c173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 15 Oct 2012 06:20:12 +0000 Subject: [PATCH] calculation of BaS copy target adress and final jump was wrong. --- BaS_GNU/sources/sysinit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BaS_GNU/sources/sysinit.c b/BaS_GNU/sources/sysinit.c index 51c5adb..b8582a4 100644 --- a/BaS_GNU/sources/sysinit.c +++ b/BaS_GNU/sources/sysinit.c @@ -336,7 +336,7 @@ void init_pll(void) * INIT VIDEO DDR RAM */ -#define NOP() asm("nop\n\t") +#define NOP() __asm__ __volatile__("nop\n\t" : : : "memory") void init_video_ddr(void) { * (uint16_t *) 0xf0000400 = 0xb; /* set cke = 1, cs=1, config = 1 */ @@ -765,11 +765,12 @@ void initialize_hardware(void) { uint32_t *dst; uint32_t jmp; -asm( + __asm__ __volatile__( "move.l #0x000C8120,D0\n\t" "move.l D0,_rt_cacr\n\t" "movec D0,CACR\n\t" "nop\n\t" + : : : "d0", "memory" ); init_gpio();