initial_process.h 745 B

1234567891011121314151617181920212223242526
  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 KPhysicalAddress GetInitialProcessBinaryPhysicalAddress() {
  12. return Kernel::Board::Nintendo::Nx::KSystemControl::Init::GetKernelPhysicalBaseAddress(
  13. MainMemoryAddress);
  14. }
  15. static inline size_t GetInitialProcessBinarySize() {
  16. return InitialProcessBinarySizeMax;
  17. }
  18. } // namespace Kernel