fixed (hopefully) SD-card busy-wait loops

This commit is contained in:
Markus Fröschle
2013-07-14 17:36:46 +00:00
parent af1fe581f6
commit 9539cf0c32
6 changed files with 128 additions and 103 deletions

View File

@@ -855,12 +855,12 @@ void initialize_hardware(void) {
//video_1280_1024();
init_ac97();
#ifdef _NOT_USED_
/* copy the BaS code contained in flash to its final location */
src = (uint32_t *)BAS_LMA;
end = (uint32_t *)(BAS_LMA + BAS_SIZE);
dst = (uint32_t *)BAS_IN_RAM;
/* copy the BaS .data and .bss contained in flash to its final location */
src = (uint32_t *) BAS_LMA;
end = (uint32_t *) (BAS_LMA + BAS_SIZE);
dst = (uint32_t *) BAS_IN_RAM;
xprintf("copying BaS data (%p - %p) to RAM (%p)\r\n", src, end, dst);
/* The linker script will ensure that the Bas size
* is a multiple of the following.
*/
@@ -871,12 +871,13 @@ void initialize_hardware(void) {
*dst++ = *src++;
*dst++ = *src++;
}
xprintf("finished.\r\n");
/* we have copied a code area, so flush the caches */
flush_and_invalidate_caches();
/* jump into the BaS in RAM */
#endif /* _NOT_USED_ */
extern void BaS(void);
BaS();
}