freemyipod r289 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r288‎ | r289 | r290 >
Date:22:23, 27 November 2010
Author:theseven
Status:new
Tags:
Comment:
UMSboot: Wait for LCD update to complete before booting uploaded code
Modified paths:
  • /umsboot/main.c (modified) (history)

Diff [purge]

Index: umsboot/main.c
@@ -50,10 +50,10 @@
5151 "accidentally, just press and\n"
5252 "hold MENU+SELECT to reboot.\n";
5353
54 -static uint16_t swapmap[RAMDISK_SECTORS];
55 -static uint16_t swaprev[RAMDISK_SECTORS];
 54+static uint16_t swapmap[RAMDISK_SECTORS] IBSS_ATTR;
 55+static uint16_t swaprev[RAMDISK_SECTORS] IBSS_ATTR;
5656 static char swapbuf[RAMDISK_SECTORSIZE];
57 -static uint16_t newfat[RAMDISK_SECTORS];
 57+static uint16_t newfat[RAMDISK_SECTORS] IBSS_ATTR;
5858 static char newdir[RAMDISK_SECTORSIZE];
5959
6060
@@ -206,6 +206,7 @@
207207 memcpy(ramdisk[offset - fatsectors + 1], newfat, fatsectors * RAMDISK_SECTORSIZE);
208208 fat16_write_mbr(_ramdiskptr, totalclusters + fatsectors + 2);
209209 lcdconsole_puts("Booting...", 0, 0xffff);
 210+ displaylcd_sync();
210211 execfirmware(ramdisk[0]);
211212 }
212213