mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-23 21:14:49 +00:00
fusee: fix sd carry over from stage 1 to 2
This commit is contained in:
parent
553cd236f2
commit
de30047a24
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue