hle: kernel: Add initial_process.h header.
This commit is contained in:
parent
a6496deeed
commit
5d1a81520c
@ -165,6 +165,7 @@ add_library(core STATIC
|
|||||||
hle/kernel/hle_ipc.h
|
hle/kernel/hle_ipc.h
|
||||||
hle/kernel/init/init_slab_setup.cpp
|
hle/kernel/init/init_slab_setup.cpp
|
||||||
hle/kernel/init/init_slab_setup.h
|
hle/kernel/init/init_slab_setup.h
|
||||||
|
hle/kernel/initial_process.h
|
||||||
hle/kernel/k_address_arbiter.cpp
|
hle/kernel/k_address_arbiter.cpp
|
||||||
hle/kernel/k_address_arbiter.h
|
hle/kernel/k_address_arbiter.h
|
||||||
hle/kernel/k_address_space_info.cpp
|
hle/kernel/k_address_space_info.cpp
|
||||||
|
23
src/core/hle/kernel/initial_process.h
Normal file
23
src/core/hle/kernel/initial_process.h
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user