fusee: fix sd carry over from stage 1 to 2

This commit is contained in:
langerhans 2018-05-04 22:04:52 +02:00
parent 553cd236f2
commit de30047a24
3 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ static int mounted_sd = 0;
void save_sd_state(void **mmc, void **ff) {
*mmc = &sd_mmc;
*ff = &ff;
*ff = &sd_fs;
}
void resume_sd_state(void *mmc, void *ff) {
sd_mmc = *(struct mmc *)mmc;

View file

@ -30,11 +30,11 @@ int main(int argc, void **argv) {
generic_panic();
}
resume_sd_state((struct mmc *)args.sd_mmc, (FATFS *)args.sd_fs);
/* Copy the BCT0 from unsafe primary memory into our memory. */
strncpy(g_bct0, args.bct0, sizeof(g_bct0));
resume_sd_state((struct mmc *)args.sd_mmc, (FATFS *)args.sd_fs);
/* TODO: What other hardware init should we do here? */
/* Setup LFB. */

View file

@ -12,7 +12,7 @@ static int mounted_sd = 0;
void save_sd_state(void **mmc, void **ff) {
*mmc = &sd_mmc;
*ff = &ff;
*ff = &sd_fs;
}
void resume_sd_state(void *mmc, void *ff) {
sd_mmc = *(struct mmc *)mmc;