From 91e0e27e4a8a2eb0b39d0c48b2b873692fa784a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 31 Oct 2012 20:35:39 +0000 Subject: [PATCH] now really fixed hang in dvi_on() --- BaS_GNU/BaS_GNU/sources/sysinit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BaS_GNU/BaS_GNU/sources/sysinit.c b/BaS_GNU/BaS_GNU/sources/sysinit.c index d06bfde..b5aff50 100644 --- a/BaS_GNU/BaS_GNU/sources/sysinit.c +++ b/BaS_GNU/BaS_GNU/sources/sysinit.c @@ -632,8 +632,8 @@ void dvi_on(void) { MCF_I2C_I2CR = 0x80; // stop dummyByte = MCF_I2C_I2DR; // dummy read - - } while (receivedByte != 0xbf && num_tries++ < 10); + num_tries++; + } while ((receivedByte != 0xbf) && (num_tries < 10)); if (num_tries >= 10) { xprintf("FAILED!\r\n"); @@ -813,7 +813,7 @@ void initialize_hardware(void) { } while (src < end); /* we have copied a code area, so flush the caches */ - flush_and_invalidate_caches(); + //flush_and_invalidate_caches(); /* jump into the BaS in RAM */ extern void BaS(void);