kernel/process: Remove use of global system accessors

Now that we pass in a reference to the system instance, we can utilize
it to eliminate the global accessors in Process-related code.
This commit is contained in:
Lioncash 2019-03-12 19:03:26 -04:00
parent 3bfd199497
commit 6eddb60db0
2 changed files with 9 additions and 8 deletions

View file

@ -266,7 +266,7 @@ public:
void FreeTLSSlot(VAddr tls_address);
private:
explicit Process(Core::System& kernel);
explicit Process(Core::System& system);
~Process() override;
/// Checks if the specified thread should wait until this process is available.
@ -330,6 +330,10 @@ private:
/// Random values for svcGetInfo RandomEntropy
std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy;
/// System context
Core::System& system;
/// Name of this process
std::string name;
};