summaryrefslogblamecommitdiffstats
path: root/src/core/hle/kernel/initial_process.h
blob: 2c95269fc5890abc000d1415bdecff83fd5e6669 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

                                                               













                                                               
                                                                         



                                                                                           



                                                    
                     
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "common/common_types.h"
#include "common/literals.h"
#include "core/hle/kernel/board/nintendo/nx/k_memory_layout.h"
#include "core/hle/kernel/board/nintendo/nx/k_system_control.h"

namespace Kernel {

using namespace Common::Literals;

constexpr std::size_t InitialProcessBinarySizeMax = 12_MiB;

static inline KPhysicalAddress GetInitialProcessBinaryPhysicalAddress() {
    return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress(
        MainMemoryAddress);
}

static inline size_t GetInitialProcessBinarySize() {
    return InitialProcessBinarySizeMax;
}

} // namespace Kernel