diff options
Diffstat (limited to 'src/core/hle/kernel')
| -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 000000000..25b27909c --- /dev/null +++ b/src/core/hle/kernel/initial_process.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | // Copyright 2022 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | #include "common/literals.h" | ||
| 9 | #include "core/hle/kernel/board/nintendo/nx/k_memory_layout.h" | ||
| 10 | #include "core/hle/kernel/board/nintendo/nx/k_system_control.h" | ||
| 11 | |||
| 12 | namespace Kernel { | ||
| 13 | |||
| 14 | using namespace Common::Literals; | ||
| 15 | |||
| 16 | constexpr std::size_t InitialProcessBinarySizeMax = 12_MiB; | ||
| 17 | |||
| 18 | static inline PAddr GetInitialProcessBinaryPhysicalAddress() { | ||
| 19 | return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress( | ||
| 20 | MainMemoryAddress); | ||
| 21 | } | ||
| 22 | |||
| 23 | } // namespace Kernel | ||