Pass screen status and mmc struct from stage1 to 2

This commit is contained in:
TuxSH 2018-06-04 19:17:23 +02:00
parent 116eb6c67c
commit b2139ed182
13 changed files with 139 additions and 30 deletions

View file

@ -23,14 +23,14 @@ static bool g_do_nxboot;
static void setup_env(void) {
/* Set the console up. */
if (console_init() == -1) {
if (console_init(g_stage2_args->display_initialized) == -1) {
generic_panic();
}
/* Set up exception handlers. */
setup_exception_handlers();
if(switchfs_mount_all() == -1) {
if(switchfs_import_mmc_structs(&g_stage2_args->sd_mmc, NULL) == -1 || switchfs_mount_all() == -1) {
fatal_error("Failed to mount at least one parition: %s\n", strerror(errno));
}