initial_process.h 638 B

12345678910111213141516171819202122
  1. // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/common_types.h"
  5. #include "common/literals.h"
  6. #include "core/hle/kernel/board/nintendo/nx/k_memory_layout.h"
  7. #include "core/hle/kernel/board/nintendo/nx/k_system_control.h"
  8. namespace Kernel {
  9. using namespace Common::Literals;
  10. constexpr std::size_t InitialProcessBinarySizeMax = 12_MiB;
  11. static inline PAddr GetInitialProcessBinaryPhysicalAddress() {
  12. return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress(
  13. MainMemoryAddress);
  14. }
  15. } // namespace Kernel