Newer
Older
Atmosphere / fusee / fusee-secondary / src / stage2.h
@Michael Scire Michael Scire on 5 Jan 2021 1 KB fusee: fixup extents for chainloader/stack
/*
 * Copyright (c) 2018-2020 Atmosphère-NX
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef FUSEE_STAGE2_H
#define FUSEE_STAGE2_H

#include "../../../fusee/common/log.h"
#include "utils.h"

/* TODO: Is there a more concise way to do this? */
#define STAGE2_ARGV_PROGRAM_PATH 0
#define STAGE2_ARGV_ARGUMENT_STRUCT 1
#define STAGE2_ARGC 2

#define BCTO_MAX_SIZE 0x5000

typedef struct {
    uint32_t version;
    ScreenLogLevel log_level;
    char bct0[BCTO_MAX_SIZE];
} stage2_args_t;

#endif