summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-02-27 12:48:35 -0700
committerGravatar GitHub2021-02-27 12:48:35 -0700
commit09f7c355c6d7e3c7845ba96d9704489d2d5853f4 (patch)
treeb12127263c0e4999f0a6e9edfe7f8f25adef9d37 /src/core/hle/kernel/process.h
parentMerge pull request #5944 from Morph1984/gc-vibrations (diff)
parenthle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable. (diff)
downloadyuzu-09f7c355c6d7e3c7845ba96d9704489d2d5853f4.tar.gz
yuzu-09f7c355c6d7e3c7845ba96d9704489d2d5853f4.tar.xz
yuzu-09f7c355c6d7e3c7845ba96d9704489d2d5853f4.zip
Merge pull request #5953 from bunnei/memory-refactor-1
Kernel Rework: Memory updates and refactoring (Part 1)
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 320b0f347..45eefb90e 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -29,16 +29,13 @@ class ProgramMetadata;
29namespace Kernel { 29namespace Kernel {
30 30
31class KernelCore; 31class KernelCore;
32class KPageTable;
32class KResourceLimit; 33class KResourceLimit;
33class KThread; 34class KThread;
34class TLSPage; 35class TLSPage;
35 36
36struct CodeSet; 37struct CodeSet;
37 38
38namespace Memory {
39class PageTable;
40}
41
42enum class MemoryRegion : u16 { 39enum class MemoryRegion : u16 {
43 APPLICATION = 1, 40 APPLICATION = 1,
44 SYSTEM = 2, 41 SYSTEM = 2,
@@ -104,12 +101,12 @@ public:
104 } 101 }
105 102
106 /// Gets a reference to the process' page table. 103 /// Gets a reference to the process' page table.
107 Memory::PageTable& PageTable() { 104 KPageTable& PageTable() {
108 return *page_table; 105 return *page_table;
109 } 106 }
110 107
111 /// Gets const a reference to the process' page table. 108 /// Gets const a reference to the process' page table.
112 const Memory::PageTable& PageTable() const { 109 const KPageTable& PageTable() const {
113 return *page_table; 110 return *page_table;
114 } 111 }
115 112
@@ -385,7 +382,7 @@ private:
385 ResultCode AllocateMainThreadStack(std::size_t stack_size); 382 ResultCode AllocateMainThreadStack(std::size_t stack_size);
386 383
387 /// Memory manager for this process 384 /// Memory manager for this process
388 std::unique_ptr<Memory::PageTable> page_table; 385 std::unique_ptr<KPageTable> page_table;
389 386
390 /// Current status of the process 387 /// Current status of the process
391 ProcessStatus status{}; 388 ProcessStatus status{};