diff options
| author | 2021-02-27 12:48:35 -0700 | |
|---|---|---|
| committer | 2021-02-27 12:48:35 -0700 | |
| commit | 09f7c355c6d7e3c7845ba96d9704489d2d5853f4 (patch) | |
| tree | b12127263c0e4999f0a6e9edfe7f8f25adef9d37 /src/core/hle/kernel/process.h | |
| parent | Merge pull request #5944 from Morph1984/gc-vibrations (diff) | |
| parent | hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable. (diff) | |
| download | yuzu-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.h | 11 |
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; | |||
| 29 | namespace Kernel { | 29 | namespace Kernel { |
| 30 | 30 | ||
| 31 | class KernelCore; | 31 | class KernelCore; |
| 32 | class KPageTable; | ||
| 32 | class KResourceLimit; | 33 | class KResourceLimit; |
| 33 | class KThread; | 34 | class KThread; |
| 34 | class TLSPage; | 35 | class TLSPage; |
| 35 | 36 | ||
| 36 | struct CodeSet; | 37 | struct CodeSet; |
| 37 | 38 | ||
| 38 | namespace Memory { | ||
| 39 | class PageTable; | ||
| 40 | } | ||
| 41 | |||
| 42 | enum class MemoryRegion : u16 { | 39 | enum 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{}; |