This commit is contained in:
Max K 2018-05-05 14:33:47 +00:00 committed by GitHub
commit 17d1014bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;