summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-02-22 02:39:19 +0100
committerbunnei <bunneidev@gmail.com>2022-02-27 19:34:02 +0100
commit5d1a81520c979790dcebe5ee02c00f00e4c82739 (patch)
treed46125cdbd16f4f9af76a762dbc74fdd2ac9274f /src/core/hle
parenthle: kernel: board: nx: Add k_memory_layout.h header. (diff)
downloadyuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar.gz
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar.bz2
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar.lz
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar.xz
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.tar.zst
yuzu-5d1a81520c979790dcebe5ee02c00f00e4c82739.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/initial_process.h23
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 @@
+// 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