2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2022-02-21 20:39:19 -05:00
|
|
|
|
|
|
|
#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;
|
|
|
|
|
2023-03-17 21:26:04 -04:00
|
|
|
static inline KPhysicalAddress GetInitialProcessBinaryPhysicalAddress() {
|
2022-02-21 20:39:19 -05:00
|
|
|
return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress(
|
|
|
|
MainMemoryAddress);
|
|
|
|
}
|
|
|
|
|
2023-10-11 09:44:49 -04:00
|
|
|
static inline size_t GetInitialProcessBinarySize() {
|
|
|
|
return InitialProcessBinarySizeMax;
|
|
|
|
}
|
|
|
|
|
2022-02-21 20:39:19 -05:00
|
|
|
} // namespace Kernel
|