2021-02-19 03:38:23 +01:00
|
|
|
// Copyright 2021 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
namespace Kernel::Board::Nintendo::Nx {
|
|
|
|
|
|
|
|
class KSystemControl {
|
|
|
|
public:
|
|
|
|
class Init {
|
|
|
|
public:
|
2021-03-20 08:23:06 +01:00
|
|
|
// Initialization.
|
|
|
|
static std::size_t GetIntendedMemorySize();
|
|
|
|
static PAddr GetKernelPhysicalBaseAddress(u64 base_address);
|
2021-02-19 03:38:23 +01:00
|
|
|
static bool ShouldIncreaseThreadResourceLimit();
|
2021-03-20 08:23:06 +01:00
|
|
|
static std::size_t GetApplicationPoolSize();
|
|
|
|
static std::size_t GetAppletPoolSize();
|
|
|
|
static std::size_t GetMinimumNonSecureSystemPoolSize();
|
2021-02-19 03:38:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static u64 GenerateRandomRange(u64 min, u64 max);
|
|
|
|
static u64 GenerateRandomU64();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Kernel::Board::Nintendo::Nx
|