diff options
| author | 2022-06-13 18:36:30 -0400 | |
|---|---|---|
| committer | 2022-06-14 10:04:11 -0400 | |
| commit | 888f499188cb869dc8f8f1597c46add65c005324 (patch) | |
| tree | 2abcaaf69fcb2c15352c99add7a97c9eea567486 /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #8461 from Morph1984/msvc-narrow-conv (diff) | |
| download | yuzu-888f499188cb869dc8f8f1597c46add65c005324.tar.gz yuzu-888f499188cb869dc8f8f1597c46add65c005324.tar.xz yuzu-888f499188cb869dc8f8f1597c46add65c005324.zip | |
kernel: implement KProcess suspension
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 926e14c6f..4e7beab0e 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -184,6 +184,8 @@ public: | |||
| 184 | 184 | ||
| 185 | const std::array<Core::CPUInterruptHandler, Core::Hardware::NUM_CPU_CORES>& Interrupts() const; | 185 | const std::array<Core::CPUInterruptHandler, Core::Hardware::NUM_CPU_CORES>& Interrupts() const; |
| 186 | 186 | ||
| 187 | void InterruptAllPhysicalCores(); | ||
| 188 | |||
| 187 | void InvalidateAllInstructionCaches(); | 189 | void InvalidateAllInstructionCaches(); |
| 188 | 190 | ||
| 189 | void InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size); | 191 | void InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size); |
| @@ -269,12 +271,15 @@ public: | |||
| 269 | /// Gets the shared memory object for HIDBus services. | 271 | /// Gets the shared memory object for HIDBus services. |
| 270 | const Kernel::KSharedMemory& GetHidBusSharedMem() const; | 272 | const Kernel::KSharedMemory& GetHidBusSharedMem() const; |
| 271 | 273 | ||
| 272 | /// Suspend/unsuspend the OS. | 274 | /// Suspend/unsuspend all processes. |
| 273 | void Suspend(bool in_suspention); | 275 | void Suspend(bool suspend); |
| 274 | 276 | ||
| 275 | /// Exceptional exit the OS. | 277 | /// Exceptional exit all processes. |
| 276 | void ExceptionalExit(); | 278 | void ExceptionalExit(); |
| 277 | 279 | ||
| 280 | /// Notify emulated CPU cores to shut down. | ||
| 281 | void ShutdownCores(); | ||
| 282 | |||
| 278 | bool IsMulticore() const; | 283 | bool IsMulticore() const; |
| 279 | 284 | ||
| 280 | bool IsShuttingDown() const; | 285 | bool IsShuttingDown() const; |