summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2022-02-21 17:39:19 -0800
committerGravatar bunnei2022-02-27 10:34:02 -0800
commit5d1a81520c979790dcebe5ee02c00f00e4c82739 (patch)
treed46125cdbd16f4f9af76a762dbc74fdd2ac9274f /src
parenthle: kernel: board: nx: Add k_memory_layout.h header. (diff)
downloadyuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar.gz
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar.xz
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.zip
hle: kernel: Add initial_process.h header.
Diffstat (limited to 'src')
-rw-r--r--src/core/CMakeLists.txt1
-rw-r--r--src/core/hle/kernel/initial_process.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index ce5886f22..5db6a1b3a 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -165,6 +165,7 @@ add_library(core STATIC
165 hle/kernel/hle_ipc.h 165 hle/kernel/hle_ipc.h
166 hle/kernel/init/init_slab_setup.cpp 166 hle/kernel/init/init_slab_setup.cpp
167 hle/kernel/init/init_slab_setup.h 167 hle/kernel/init/init_slab_setup.h
168 hle/kernel/initial_process.h
168 hle/kernel/k_address_arbiter.cpp 169 hle/kernel/k_address_arbiter.cpp
169 hle/kernel/k_address_arbiter.h 170 hle/kernel/k_address_arbiter.h
170 hle/kernel/k_address_space_info.cpp 171 hle/kernel/k_address_space_info.cpp
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
12namespace Kernel {
13
14using namespace Common::Literals;
15
16constexpr std::size_t InitialProcessBinarySizeMax = 12_MiB;
17
18static inline PAddr GetInitialProcessBinaryPhysicalAddress() {
19 return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress(
20 MainMemoryAddress);
21}
22
23} // namespace Kernel