diff options
| author | bunnei <bunneidev@gmail.com> | 2022-02-21 17:39:19 -0800 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2022-02-27 10:34:02 -0800 |
| commit | 8ef7b10f92e281c8843ab09e7fb2274d9c5b7647 (patch) | |
| tree | d46125cdbd16f4f9af76a762dbc74fdd2ac9274f /src/core/hle/kernel/initial_process.h | |
| parent | 75b111b6de3853d20ab520a1005eb95dac4a16fd (diff) | |
hle: kernel: Add initial_process.h header.
Diffstat (limited to 'src/core/hle/kernel/initial_process.h')
| -rw-r--r-- | src/core/hle/kernel/initial_process.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/core/hle/kernel/initial_process.h b/src/core/hle/kernel/initial_process.h new file mode 100644 index 0000000000..25b27909cf --- /dev/null +++ b/src/core/hle/kernel/initial_process.h @@ -0,0 +1,23 @@ +// Copyright 2022 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#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 PAddr GetInitialProcessBinaryPhysicalAddress() { + return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress( + MainMemoryAddress); +} + +} // namespace Kernel |
